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, setValidcalculateNameGroupHashCode, equals, getControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, isActive, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatMode, triggerValueChangedEvent, valueChangedgetClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetControl, getControlClass, getControlType, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, isActive, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatModevalueChangedpublic 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 GLResourceUniformControlpublic void setLoaded(boolean loaded)
setLoaded in class GLResourceUniformControlpublic int getUnit()
public void setUnit(int unit)
public void load(javax.media.opengl.GL gl)
throws org.synthclipse.core.SynthclipseException
load in class GLResourceUniformControlorg.synthclipse.core.SynthclipseExceptionpublic 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 GLResourceUniformControlpublic File resolveFile(String path) throws FileNotFoundException
FileNotFoundExceptionpublic boolean isMipmap()
public void setMipmap(boolean mipmap)
public org.synthclipse.core.gl.texture.ITexture getTexture()
public String toGLSLVariableDefinition()
IGLUniformControlpublic Object getPresetValue()
org.synthclipse.core.uniform.preset.IPresetValuepublic void setPresetValue(Object value)
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)org.synthclipse.core.parser.ParsingExceptionpublic Object getPresetDefaultValue()
org.synthclipse.core.uniform.preset.IPresetValue