Package com.jme3.shader
Class Shader.ShaderSource
java.lang.Object
com.jme3.util.NativeObject
com.jme3.shader.Shader.ShaderSource
- All Implemented Interfaces:
- Cloneable
- Enclosing class:
- Shader
Shader source describes a shader object in OpenGL. Each shader source
 is assigned a certain pipeline which it controls (described by its type).
- 
Field SummaryFields inherited from class com.jme3.util.NativeObjecthandleRef, id, INVALID_ID, objectManager, OBJTYPE_AUDIOBUFFER, OBJTYPE_AUDIOSTREAM, OBJTYPE_BO, OBJTYPE_FILTER, OBJTYPE_FRAMEBUFFER, OBJTYPE_SHADER, OBJTYPE_SHADERSOURCE, OBJTYPE_TEXTURE, OBJTYPE_VERTEXBUFFER, updateNeeded
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotected
- 
Method SummaryModifier and TypeMethodDescriptionCreates a shallow clone of this GL Object.voiddeleteObject(Object rendererObject) Deletes the GL object from the GPU when it is no longer used.getName()getType()longReturns a unique ID for this NativeObject.voidCalled when the GL context is restarted to reset all IDs.voidsetDefines(String defines) voidsetLanguage(String language) voidvoidtoString()Methods inherited from class com.jme3.util.NativeObjectclearUpdateNeeded, clone, deleteNativeBuffers, dispose, getId, getWeakRef, isUpdateNeeded, setId, setUpdateNeeded
- 
Constructor Details- 
ShaderSource
- 
ShaderSource
- 
ShaderSourcepublic ShaderSource()
 
- 
- 
Method Details- 
setName
- 
getName
- 
getType
- 
getLanguage
- 
setLanguage
- 
setSource
- 
setDefines
- 
getSource
- 
getDefines
- 
getUniqueIdpublic long getUniqueId()Description copied from class:NativeObjectReturns a unique ID for this NativeObject. No other NativeObject shall have the same ID.- Specified by:
- getUniqueIdin class- NativeObject
- Returns:
- unique ID for this NativeObject.
 
- 
toString- Overrides:
- toStringin class- NativeObject
 
- 
resetObjectpublic void resetObject()Description copied from class:NativeObjectCalled when the GL context is restarted to reset all IDs. Prevents "white textures" on display restart.- Specified by:
- resetObjectin class- NativeObject
 
- 
deleteObjectDescription copied from class:NativeObjectDeletes the GL object from the GPU when it is no longer used. Called automatically by the GL object manager.- Specified by:
- deleteObjectin class- NativeObject
- Parameters:
- rendererObject- The renderer to be used to delete the object
 
- 
createDestructableCloneDescription copied from class:NativeObjectCreates a shallow clone of this GL Object. The deleteObject method should be functional for this object.- Specified by:
- createDestructableClonein class- NativeObject
- Returns:
- a new instance
 
 
-