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, valueChangedgetClass, hashCode, notify, notifyAll, wait, wait, waitgetControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, isValid, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatModevalueChangedpublic void applyUniformValue()
applyUniformValue in interface IUniformControlpublic void updateTextureParameters(javax.media.opengl.GL gl)
public void loadAllDefaults()
loadAllDefaults in interface IUniformControlpublic void loadDefaultValue()
loadDefaultValue in interface org.synthclipse.core.uniform.preset.IPresetValuepublic String getInputName()
public void setInputName(String inputName)
public String toGLSLVariableDefinition()
toGLSLVariableDefinition in interface IGLUniformControlpublic void setUniformValue(Object value)
setUniformValue in interface IUniformControlpublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
public ControlType getControlType()
getControlType in interface IUniformControlpublic Class<GLBufferUC> getControlClass()
getControlClass in interface IUniformControlpublic boolean isActive()
isActive in interface IUniformControlisActive in class AbstractUniformControlpublic org.synthclipse.core.gl.GLSLUniform getUniform()
getUniform in interface IGLUniformControlpublic void setUniform(org.synthclipse.core.gl.GLSLUniform uniform)
setUniform in interface IGLUniformControlpublic org.synthclipse.core.gl.GLSLProgram getProgram()
getProgram in interface IGLUniformControlpublic void setProgram(org.synthclipse.core.gl.GLSLProgram program)
setProgram in interface IGLUniformControlpublic String getGLSLType()
getGLSLType in interface IGLUniformControlpublic String getProgramName()
getProgramName in interface IUniformControlgetProgramName in class AbstractUniformControlpublic 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.IPresetValuegetPresetValue in interface org.synthclipse.core.uniform.preset.IPresetValuepublic void setPresetValue(Object value)
org.synthclipse.core.uniform.preset.IPresetValuesetPresetValue in interface org.synthclipse.core.uniform.preset.IPresetValuepublic Object parsePresetValue(String text) throws org.synthclipse.core.parser.ParsingException
org.synthclipse.core.uniform.preset.IPresetValuetext 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.IPresetValueorg.synthclipse.core.parser.ParsingExceptionpublic Object getPresetDefaultValue()
org.synthclipse.core.uniform.preset.IPresetValuegetPresetDefaultValue in interface org.synthclipse.core.uniform.preset.IPresetValue