Package com.jme3.shader
Class ShaderBufferBlock
java.lang.Object
com.jme3.shader.ShaderVariable
com.jme3.shader.ShaderBufferBlock
Implementation of shader's buffer block.
-
Field Summary
Fields inherited from class com.jme3.shader.ShaderVariable
LOC_NOT_DEFINED, LOC_UNKNOWN, location, name, updateNeeded
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the flagisUpdateNeeded()
.Get the current storage data.boolean
Return true if need to update this storage block.void
reset()
Reset this storage block.void
setBufferObject
(BufferObject bufferObject) Set the new buffer object.Methods inherited from class com.jme3.shader.ShaderVariable
getLocation, getName, setLocation, setName
-
Field Details
-
bufferObject
Current used buffer object.
-
-
Constructor Details
-
ShaderBufferBlock
public ShaderBufferBlock()
-
-
Method Details
-
setBufferObject
Set the new buffer object.- Parameters:
bufferObject
- the new buffer object.
-
isUpdateNeeded
public boolean isUpdateNeeded()Return true if need to update this storage block.- Returns:
- true if need to update this storage block.
-
clearUpdateNeeded
public void clearUpdateNeeded()Clear the flagisUpdateNeeded()
. -
reset
public void reset()Reset this storage block. -
getBufferObject
Get the current storage data.- Returns:
- the current storage data.
-