public final class BufferUtils
extends java.lang.Object
BufferUtils is a helper class for generating nio buffers from
jME data classes such as Vectors.| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteBuffer |
createByteBuffer(int size)
Create a new ByteBuffer of the specified size.
|
static java.nio.FloatBuffer |
createFloatBuffer(float... data)
Generate a new FloatBuffer using the given array of float primitives.
|
static java.nio.FloatBuffer |
createFloatBuffer(int size)
Create a new FloatBuffer of the specified size.
|
static java.nio.FloatBuffer |
createFloatBuffer(Vector3f... data)
Generate a new FloatBuffer using the given array of Vector3f objects.
|
static java.nio.IntBuffer |
createIntBuffer(int... data)
Generate a new IntBuffer using the given array of ints.
|
static java.nio.IntBuffer |
createIntBuffer(int size)
Create a new IntBuffer of the specified size.
|
static java.nio.ShortBuffer |
createShortBuffer(int size)
Create a new ShortBuffer of the specified size.
|
public static java.nio.FloatBuffer createFloatBuffer(Vector3f... data)
data - array of Vector3f objects to place into a new FloatBufferpublic static java.nio.FloatBuffer createFloatBuffer(float... data)
data - array of float primitives to place into a new FloatBufferpublic static java.nio.IntBuffer createIntBuffer(int... data)
data - array of ints to place into a new IntBufferpublic static java.nio.FloatBuffer createFloatBuffer(int size)
size - required number of floats to store.public static java.nio.IntBuffer createIntBuffer(int size)
size - required number of ints to store.public static java.nio.ByteBuffer createByteBuffer(int size)
size - required number of ints to store.public static java.nio.ShortBuffer createShortBuffer(int size)
size - required number of shorts to store.