public abstract class GLAbstractTextureUC extends GLResourceUniformControl
GROUP_CAMERA, GROUP_DEFAULT, QUALIFIED_SEPARATOR
Constructor and Description |
---|
GLAbstractTextureUC(int target,
String name,
org.synthclipse.core.parser.Control control,
String typeString) |
GLAbstractTextureUC(int target,
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) |
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.
|
ArrayList<org.synthclipse.core.gl.parser.TexParam> |
getTexParamList() |
org.synthclipse.core.gl.texture.ITexture |
getTexture() |
int |
getUnit() |
boolean |
isLoaded() |
boolean |
isMipmap() |
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 |
setMipmap(boolean mipmap) |
void |
setPath(String path) |
void |
setPresetValue(Object value)
Sets a value that is displayed in an editor of the Uniform Control.
|
static void |
setShadertoyChannelResolution(org.synthclipse.core.gl.GLSLProgram program,
javax.media.opengl.GL gl,
int channel,
float width,
float height) |
void |
setTexParamList(ArrayList<org.synthclipse.core.gl.parser.TexParam> texParamList) |
void |
setTexture(int texId) |
void |
setUniformValue(Object value) |
void |
setUnit(int unit) |
String |
toGLSLVariableDefinition()
Converts UniformControl to GLSL variable definition,
without "uniform" qualifier at the beginning.
|
getGLSLType, getProgram, getProgramName, getUniform, isValid, reset, setProgram, setUniform, setValid
calculateNameGroupHashCode, equals, getControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, isActive, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatMode, triggerValueChangedEvent, valueChanged
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getControl, getControlClass, getControlType, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, isActive, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatMode
valueChanged
public GLAbstractTextureUC(int target, 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 void setUniformValue(Object value)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public ArrayList<org.synthclipse.core.gl.parser.TexParam> getTexParamList()
public void setTexParamList(ArrayList<org.synthclipse.core.gl.parser.TexParam> texParamList)
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 load(javax.media.opengl.GL gl) throws org.synthclipse.core.SynthclipseException
load
in class GLResourceUniformControl
org.synthclipse.core.SynthclipseException
public void setTexture(int texId)
public static void setShadertoyChannelResolution(org.synthclipse.core.gl.GLSLProgram program, javax.media.opengl.GL gl, int channel, float width, float height)
public void dispose(javax.media.opengl.GL gl)
dispose
in class GLResourceUniformControl
public File resolveFile(String path) throws FileNotFoundException
FileNotFoundException
public boolean isMipmap()
public void setMipmap(boolean mipmap)
public org.synthclipse.core.gl.texture.ITexture getTexture()
public String toGLSLVariableDefinition()
IGLUniformControl
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