public class GLBufferUC extends AbstractUniformControl implements IGLUniformControl
GROUP_CAMERA, GROUP_DEFAULT, QUALIFIED_SEPARATOR
Constructor and Description |
---|
GLBufferUC(String name,
org.synthclipse.core.parser.Control control,
String type,
String inputName) |
Modifier and Type | Method and Description |
---|---|
void |
applyUniformValue() |
Class<GLBufferUC> |
getControlClass() |
ControlType |
getControlType() |
String |
getDefaultValue() |
org.synthclipse.core.gl.executor.FragxExecutor |
getFragxExecutor() |
String |
getGLSLType() |
String |
getInputName() |
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.
|
org.synthclipse.core.gl.GLSLProgram |
getProgram() |
String |
getProgramName() |
ArrayList<org.synthclipse.core.gl.parser.TexParam> |
getTexParamList() |
org.synthclipse.core.gl.GLSLUniform |
getUniform() |
boolean |
isActive() |
boolean |
isMipmap() |
boolean |
isShadertoy() |
void |
loadAllDefaults() |
void |
loadDefaultValue() |
Object |
parsePresetValue(String text)
Parses String
text to a value that is displayed in an editor of the Uniform Control. |
void |
setDefaultValue(String defaultValue) |
void |
setFragxExecutor(org.synthclipse.core.gl.executor.FragxExecutor fragxExecutor) |
void |
setInputName(String inputName) |
void |
setMipmap(boolean mipmap) |
void |
setPresetValue(Object value)
Sets a value that is displayed in an editor of the Uniform Control.
|
void |
setProgram(org.synthclipse.core.gl.GLSLProgram program) |
void |
setShadertoy(boolean shadertoy) |
void |
setTexParamList(ArrayList<org.synthclipse.core.gl.parser.TexParam> texParamList) |
void |
setUniform(org.synthclipse.core.gl.GLSLUniform uniform) |
void |
setUniformValue(Object value) |
String |
toGLSLVariableDefinition()
Converts UniformControl to GLSL variable definition,
without "uniform" qualifier at the beginning.
|
String |
toString() |
void |
updateTextureParameters(javax.media.opengl.GL gl) |
calculateNameGroupHashCode, equals, getControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, isValid, 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, isValid, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatMode
valueChanged
public void applyUniformValue()
applyUniformValue
in interface IUniformControl
public void updateTextureParameters(javax.media.opengl.GL gl)
public void loadAllDefaults()
loadAllDefaults
in interface IUniformControl
public void loadDefaultValue()
loadDefaultValue
in interface org.synthclipse.core.uniform.preset.IPresetValue
public String getInputName()
public void setInputName(String inputName)
public String toGLSLVariableDefinition()
toGLSLVariableDefinition
in interface IGLUniformControl
public void setUniformValue(Object value)
setUniformValue
in interface IUniformControl
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public ControlType getControlType()
getControlType
in interface IUniformControl
public Class<GLBufferUC> getControlClass()
getControlClass
in interface IUniformControl
public boolean isActive()
isActive
in interface IUniformControl
isActive
in class AbstractUniformControl
public org.synthclipse.core.gl.GLSLUniform getUniform()
getUniform
in interface IGLUniformControl
public void setUniform(org.synthclipse.core.gl.GLSLUniform uniform)
setUniform
in interface IGLUniformControl
public org.synthclipse.core.gl.GLSLProgram getProgram()
getProgram
in interface IGLUniformControl
public void setProgram(org.synthclipse.core.gl.GLSLProgram program)
setProgram
in interface IGLUniformControl
public String getGLSLType()
getGLSLType
in interface IGLUniformControl
public String getProgramName()
getProgramName
in interface IUniformControl
getProgramName
in class AbstractUniformControl
public org.synthclipse.core.gl.executor.FragxExecutor getFragxExecutor()
public void setFragxExecutor(org.synthclipse.core.gl.executor.FragxExecutor fragxExecutor)
public ArrayList<org.synthclipse.core.gl.parser.TexParam> getTexParamList()
public void setTexParamList(ArrayList<org.synthclipse.core.gl.parser.TexParam> texParamList)
public boolean isMipmap()
public void setMipmap(boolean mipmap)
public boolean isShadertoy()
public void setShadertoy(boolean shadertoy)
public Object getPresetValue()
org.synthclipse.core.uniform.preset.IPresetValue
getPresetValue
in interface org.synthclipse.core.uniform.preset.IPresetValue
public void setPresetValue(Object value)
org.synthclipse.core.uniform.preset.IPresetValue
setPresetValue
in interface 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)parsePresetValue
in interface org.synthclipse.core.uniform.preset.IPresetValue
org.synthclipse.core.parser.ParsingException
public Object getPresetDefaultValue()
org.synthclipse.core.uniform.preset.IPresetValue
getPresetDefaultValue
in interface org.synthclipse.core.uniform.preset.IPresetValue