public interface AccessorData
component type:byte.class, the implementation is an
AccessorByteDatashort.class, the implementation is an
AccessorShortDataint.class, the implementation is an
AccessorIntDatafloat.class, the implementation is an
AccessorFloatData| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
createByteBuffer()
Creates a new, direct byte buffer (with native byte order) that
contains the data for the accessor, in a compact form,
without any offset, and without any additional stride (that is,
all elements will be tightly packed).
|
java.lang.Class<?> |
getComponentType()
Returns the type of the components that this class provides access to.
|
int |
getNumComponentsPerElement()
Returns the number of components per element (for example, 3 if the
elements are 3D vectors)
|
int |
getNumElements()
Returns the number of elements in this data (for example, the number
of 3D vectors)
|
int |
getTotalNumComponents()
Returns the total number of components (that is, the number of elements
multiplied with the number of components per element)
|
java.lang.Class<?> getComponentType()
float.class
or short.class.int getNumElements()
int getNumComponentsPerElement()
int getTotalNumComponents()
java.nio.ByteBuffer createByteBuffer()
Copyright © 2022. All Rights Reserved.