public class UBuffer extends Object
| Constructor and Description |
|---|
UBuffer() |
| Modifier and Type | Method and Description |
|---|---|
static IntBuffer |
create(int... integers)
Create IntBuffer from integers (or int array)
|
static FloatBuffer |
create(Matrix4f matrix)
Creates a float buffer from
Matrix4f;
compatible with LWJGL OpenGL binding. |
static FloatBuffer |
create(Vertex[] vertices)
Creates a float buffer from
Vertex array;
compatible with LWJGL OpenGL binding. |
static ByteBuffer |
createByteBuffer(int size)
Create a simple ByteBuffer.
|
static FloatBuffer |
createFloatBuffer(int size)
Create an float buffer.
|
static IntBuffer |
createIntBuffer(int size)
Create an integer buffer.
|
public static FloatBuffer create(Vertex[] vertices)
Vertex array;
compatible with LWJGL OpenGL binding.vertices - The vertices to bufferpublic static IntBuffer create(int... integers)
integers - the integers to bufferpublic static FloatBuffer create(Matrix4f matrix)
Matrix4f;
compatible with LWJGL OpenGL binding.matrix - The matrix to bufferpublic static IntBuffer createIntBuffer(int size)
size - the size of the buffer (amount of integers!)public static FloatBuffer createFloatBuffer(int size)
size - the size of the buffer (amount of integers!)public static ByteBuffer createByteBuffer(int size)
size - The size of the bufferCopyright © 2014. All rights reserved.