Package com.jme3.util.struct
Class StructStd140BufferObject
java.lang.Object
com.jme3.util.NativeObject
com.jme3.shader.bufferobject.BufferObject
com.jme3.util.struct.StructStd140BufferObject
A BufferObject containing a struct serialized with Std140 layout.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.shader.bufferobject.BufferObject
BufferObject.AccessHint, BufferObject.NatureHint
-
Field Summary
Fields inherited from class com.jme3.shader.bufferobject.BufferObject
data, dirtyRegionsIterator, regions
Fields inherited from class com.jme3.util.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
-
Constructor Summary
ConstructorDescriptionCreate an empty Struct bufferStructStd140BufferObject
(int id) Internal onlyCreate a Struct buffer from a Struct -
Method Summary
Modifier and TypeMethodDescriptionclone()
This should create a deep clone.void
read
(JmeImporter im) void
Update data and layout (when needed) using a Struct class.void
write
(JmeExporter ex) Methods inherited from class com.jme3.shader.bufferobject.BufferObject
createDestructableClone, deleteNativeBuffers, deleteObject, getAccessHint, getBinding, getData, getDirtyRegions, getName, getNatureHint, getRegion, getUniqueId, getWeakRef, initializeEmpty, markAllRegionsDirty, resetObject, setAccessHint, setBinding, setData, setName, setNatureHint, setRegions, setUpdateNeeded, setUpdateNeeded, toString, unsetRegions
Methods inherited from class com.jme3.util.NativeObject
clearUpdateNeeded, dispose, getId, isUpdateNeeded, setId
-
Constructor Details
-
StructStd140BufferObject
public StructStd140BufferObject()Create an empty Struct buffer- Parameters:
str
-
-
StructStd140BufferObject
public StructStd140BufferObject(int id) Internal only -
StructStd140BufferObject
Create a Struct buffer from a Struct- Parameters:
str
- the source struct
-
-
Method Details
-
update
Update data and layout (when needed) using a Struct class.- Parameters:
struct
-
-
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classBufferObject
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classBufferObject
- Throws:
IOException
-
clone
Description copied from class:NativeObject
This should create a deep clone. For a shallow clone, use createDestructableClone().- Overrides:
clone
in classBufferObject
-