public class GLMusicUC extends GLResourceUniformControl
Modifier and Type | Field and Description |
---|---|
static String |
SUPPORTED_EXTENSIONS |
GROUP_CAMERA, GROUP_DEFAULT, QUALIFIED_SEPARATOR
Constructor and Description |
---|
GLMusicUC(String name,
org.synthclipse.core.parser.Control control,
String typeString) |
GLMusicUC(String name,
org.synthclipse.core.parser.Control control,
String typeString,
String path) |
Modifier and Type | Method and Description |
---|---|
void |
applyUniformValue() |
void |
dispose(javax.media.opengl.GL gl) |
Class<GLMusicUC> |
getControlClass() |
ControlType |
getControlType() |
String |
getDefaultValue() |
String |
getPath() |
Object |
getPresetDefaultValue()
Gets a default value that is displayed in an editor of the Uniform Control.
|
Object |
getPresetValue()
Gets a value that is displayed in an editor of the Uniform Control.
|
int |
getUnit() |
boolean |
isActive() |
boolean |
isLoaded() |
void |
load(javax.media.opengl.GL gl) |
void |
loadAllDefaults() |
void |
loadDefaultValue() |
Object |
parsePresetValue(String text)
Parses String
text to a value that is displayed in an editor of the Uniform Control. |
File |
resolveFile(String path) |
void |
setDefaultValue(String defaultValue) |
void |
setLoaded(boolean loaded) |
void |
setMusicTextureID(int texId) |
void |
setPath(String path) |
void |
setPresetValue(Object value)
Sets a value that is displayed in an editor of the Uniform Control.
|
void |
setUniformValue(Object value) |
void |
setUnit(int unit) |
String |
toGLSLVariableDefinition()
Converts UniformControl to GLSL variable definition,
without "uniform" qualifier at the beginning.
|
String |
toString() |
getGLSLType, getProgram, getProgramName, getUniform, isValid, reset, setProgram, setUniform, setValid
calculateNameGroupHashCode, equals, getControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatMode, triggerValueChangedEvent, valueChanged
getClass, hashCode, notify, notifyAll, wait, wait, wait
getControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatMode
valueChanged
public static final String SUPPORTED_EXTENSIONS
public GLMusicUC(String name, org.synthclipse.core.parser.Control control, String typeString)
public void applyUniformValue()
public void loadAllDefaults()
public void loadDefaultValue()
public String getPath()
public void setPath(String path)
public String toGLSLVariableDefinition()
public void setUniformValue(Object value)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public boolean isLoaded()
isLoaded
in class GLResourceUniformControl
public void setLoaded(boolean loaded)
setLoaded
in class GLResourceUniformControl
public int getUnit()
public void setUnit(int unit)
public void setMusicTextureID(int texId)
public void load(javax.media.opengl.GL gl) throws org.synthclipse.core.SynthclipseException
load
in class GLResourceUniformControl
org.synthclipse.core.SynthclipseException
public void dispose(javax.media.opengl.GL gl)
dispose
in class GLResourceUniformControl
public ControlType getControlType()
public boolean isActive()
isActive
in interface IUniformControl
isActive
in class AbstractUniformControl
public File resolveFile(String path) throws FileNotFoundException
FileNotFoundException
public Object getPresetValue()
org.synthclipse.core.uniform.preset.IPresetValue
public void setPresetValue(Object value)
org.synthclipse.core.uniform.preset.IPresetValue
public Object parsePresetValue(String text) throws org.synthclipse.core.parser.ParsingException
org.synthclipse.core.uniform.preset.IPresetValue
text
to a value that is displayed in an editor of the Uniform Control.
(e.g. float, Vector3, String)org.synthclipse.core.parser.ParsingException
public Object getPresetDefaultValue()
org.synthclipse.core.uniform.preset.IPresetValue