public final class BufferStructureBuilder
extends java.lang.Object
BufferStructure instances.
| Constructor and Description |
|---|
BufferStructureBuilder()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
BufferStructure |
build()
Return the
BufferStructure instance that was created with
this builder. |
void |
createAccessorModel(java.lang.String id,
float[] data,
java.lang.String type)
Create an
AccessorModel in the BufferStructure that
is currently being built. |
void |
createAccessorModel(java.lang.String id,
int componentType,
java.lang.String type,
java.nio.ByteBuffer byteBuffer)
Create an
AccessorModel in the BufferStructure that
is currently being built. |
void |
createAccessorModel(java.lang.String id,
short[] data,
java.lang.String type)
Create an
AccessorModel in the BufferStructure that
is currently being built. |
void |
createArrayBufferViewModel(java.lang.String id)
Create a
BufferViewModel in the BufferStructure that
is currently being built. |
void |
createArrayElementBufferViewModel(java.lang.String id)
Create a
BufferViewModel in the BufferStructure that
is currently being built. |
void |
createBufferModel(java.lang.String id,
java.lang.String uri)
Create a
BufferModel in the BufferStructure that
is currently being built. |
void |
createBufferViewModel(java.lang.String id,
java.lang.Integer target)
Create a
BufferViewModel in the BufferStructure that
is currently being built. |
int |
getNumAccessorModels()
Returns the number of
AccessorModel instances that have
been created until now |
int |
getNumBufferModels()
Returns the number of
BufferModel instances that have
been created until now |
int |
getNumBufferViewModels()
Returns the number of
BufferViewModel instances that have
been created until now |
public int getNumAccessorModels()
AccessorModel instances that have
been created until nowAccessorModel instancespublic int getNumBufferViewModels()
BufferViewModel instances that have
been created until nowBufferViewModel instancespublic int getNumBufferModels()
BufferModel instances that have
been created until nowBufferModel instancespublic void createAccessorModel(java.lang.String id,
float[] data,
java.lang.String type)
AccessorModel in the BufferStructure that
is currently being built.id - The ID of the AccessorModeldata - The actual datatype - The type of the data, as a string corresponding to
the ElementType of the accessorpublic void createAccessorModel(java.lang.String id,
short[] data,
java.lang.String type)
AccessorModel in the BufferStructure that
is currently being built.id - The ID for the AccessorModeldata - The actual datatype - The type of the data, as a string corresponding to
the ElementType of the accessorpublic void createAccessorModel(java.lang.String id,
int componentType,
java.lang.String type,
java.nio.ByteBuffer byteBuffer)
AccessorModel in the BufferStructure that
is currently being built.id - The ID of the AccessorModelcomponentType - The component type, as a GL constanttype - The type of the data, as a string corresponding to
the ElementType of the accessorbyteBuffer - The actual datapublic void createArrayBufferViewModel(java.lang.String id)
BufferViewModel in the BufferStructure that
is currently being built. The target will be the GL constant for GL_ARRAY_BUFFER.id - The ID for the BufferViewModelpublic void createArrayElementBufferViewModel(java.lang.String id)
BufferViewModel in the BufferStructure that
is currently being built. The target will be the GL constant for GL_ELEMENT_ARRAY_BUFFER.id - The ID for the BufferViewModelpublic void createBufferViewModel(java.lang.String id,
java.lang.Integer target)
BufferViewModel in the BufferStructure that
is currently being built.id - The ID for the BufferViewModeltarget - The BufferViewModel.getTarget()public void createBufferModel(java.lang.String id,
java.lang.String uri)
BufferModel in the BufferStructure that
is currently being built.id - The ID for the BufferModeluri - The BufferModel.getUri()public BufferStructure build()
BufferStructure instance that was created with
this builder.BufferStructureCopyright © 2022. All Rights Reserved.