BufferUtils
class BufferUtils
Class responsible for creating buffers("IntBuffer", "FloatBuffer", "Vector3Buffer", "Vector2Buffer", "Point3Buffer" and "ByteBuffer").
public class BufferUtils
— Static Methods (12) —
Name | Description |
---|---|
ByteBuffer createByteBuffer(int count) | Creates a new ByteBuffer with its amount defined to be "count" argument. |
ByteBuffer createByteBuffer(byte[] data) | Creates a new ByteBuffer with its amount defined in the byte array to be "data" argument. |
FloatBuffer createFloatBuffer(int count) | Creates a new FloatBuffer with its amount defined to be "count" argument. |
FloatBuffer createFloatBuffer(float[] data) | Creates a new FloatBuffer with its amount defined in the float array to be "data" argument. |
IntBuffer createIntBuffer(int count) | Creates a new IntBuffer with its amount defined to be "count" argument. |
IntBuffer createIntBuffer(int[] data) | Creates a new IntBuffer with its amount defined in the int array to be "data" argument. |
Vector3Buffer createVector3Buffer(int count) | Creates a new Vector3Buffer with its amount defined to be "count" argument. |
Vector3Buffer createVector3Buffer(Vector3[] data) | Creates a new Vector3Buffer with its amount defined in the Vector3 array to be "data" argument. |
Vector2Buffer createVector2Buffer(int count) | Creates a new Vector2Buffer with its amount defined to br "count" argument. |
Vector2Buffer createVector2Buffer(Vector2[] data) | Creates a new Vector2Buffer with its amount defined in the Vector2 array to be "data" argument. |
Point3Buffer createPoint3Buffer(int count) | Creates a new Point3Buffer with its amount defined to be "count" argument. |
Point3Buffer createPoint3Buffer(Point3[] data) | Creates a new Point3Buffer with its amount defined in the Point3 array to be "data" argument. |