public static class Shader.ShaderSource extends NativeObject
handleRef, id, INVALID_ID, objectManager, OBJTYPE_AUDIOBUFFER, OBJTYPE_AUDIOSTREAM, OBJTYPE_BO, OBJTYPE_FILTER, OBJTYPE_FRAMEBUFFER, OBJTYPE_SHADER, OBJTYPE_SHADERSOURCE, OBJTYPE_TEXTURE, OBJTYPE_VERTEXBUFFER, updateNeeded
Modifier | Constructor and Description |
---|---|
|
ShaderSource() |
protected |
ShaderSource(Shader.ShaderSource ss) |
|
ShaderSource(Shader.ShaderType type) |
Modifier and Type | Method and Description |
---|---|
NativeObject |
createDestructableClone()
Creates a shallow clone of this GL Object.
|
void |
deleteObject(java.lang.Object rendererObject)
Deletes the GL object from the GPU when it is no longer used.
|
java.lang.String |
getDefines() |
java.lang.String |
getLanguage() |
java.lang.String |
getName() |
java.lang.String |
getSource() |
Shader.ShaderType |
getType() |
long |
getUniqueId()
Returns a unique ID for this NativeObject.
|
void |
resetObject()
Called when the GL context is restarted to reset all IDs.
|
void |
setDefines(java.lang.String defines) |
void |
setLanguage(java.lang.String language) |
void |
setName(java.lang.String name) |
void |
setSource(java.lang.String source) |
java.lang.String |
toString() |
clearUpdateNeeded, clone, deleteNativeBuffers, dispose, getId, isUpdateNeeded, setId, setUpdateNeeded
public ShaderSource(Shader.ShaderType type)
protected ShaderSource(Shader.ShaderSource ss)
public ShaderSource()
public void setName(java.lang.String name)
public java.lang.String getName()
public Shader.ShaderType getType()
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
public void setSource(java.lang.String source)
public void setDefines(java.lang.String defines)
public java.lang.String getSource()
public java.lang.String getDefines()
public long getUniqueId()
NativeObject
getUniqueId
in class NativeObject
public java.lang.String toString()
toString
in class NativeObject
public void resetObject()
NativeObject
resetObject
in class NativeObject
public void deleteObject(java.lang.Object rendererObject)
NativeObject
deleteObject
in class NativeObject
rendererObject
- The renderer to be used to delete the objectpublic NativeObject createDestructableClone()
NativeObject
createDestructableClone
in class NativeObject