Class Util
Inheritance
java.lang.Object
Util
Syntax
Methods
createByteBuffer(int capacity)
Allocates a direct native-orderedByteBuffer
</code> with the specified capacity.</p>
Declaration
public static ByteBuffer createByteBuffer(int capacity)
Parameters
Type |
Name |
Description |
int |
capacity |
the capacity, in bytes
|
Returns
Type |
Description |
ByteBuffer |
aByteBuffer
</code></p>
|
createFlippedBuffer(ArrayList<Vector2f> values)
Declaration
public static FloatBuffer createFlippedBuffer(ArrayList<Vector2f> values)
Parameters
Type |
Name |
Description |
ArrayList<Vector2f> |
values |
|
Returns
Type |
Description |
FloatBuffer |
|
createFlippedBuffer(int... values)
Declaration
public static IntBuffer createFlippedBuffer(int... values)
Parameters
Type |
Name |
Description |
int... |
values |
|
Returns
Type |
Description |
IntBuffer |
|
createFlippedBuffer(List<Vector3f> values)
Declaration
public static FloatBuffer createFlippedBuffer(List<Vector3f> values)
Parameters
Type |
Name |
Description |
List<Vector3f> |
values |
|
Returns
Type |
Description |
FloatBuffer |
|
createFlippedBuffer(Matrix value)
Declaration
public static FloatBuffer createFlippedBuffer(Matrix value)
Parameters
Type |
Name |
Description |
Matrix |
value |
|
Returns
Type |
Description |
FloatBuffer |
|
createFlippedBuffer(Matrix4f value)
Declaration
public static FloatBuffer createFlippedBuffer(Matrix4f value)
Parameters
Returns
Type |
Description |
FloatBuffer |
|
createFlippedBuffer(Vector3f[][] values)
Declaration
public static FloatBuffer createFlippedBuffer(Vector3f[][] values)
Parameters
Returns
Type |
Description |
FloatBuffer |
|
createFlippedBuffer(Vertex[] vertices)
Declaration
public static FloatBuffer createFlippedBuffer(Vertex[] vertices)
Parameters
Type |
Name |
Description |
Vertex [] |
vertices |
|
Returns
Type |
Description |
FloatBuffer |
|
createFloatBuffer(int size)
Declaration
public static FloatBuffer createFloatBuffer(int size)
Parameters
Type |
Name |
Description |
int |
size |
|
Returns
Type |
Description |
FloatBuffer |
|
createIntBuffer(int size)
Declaration
public static IntBuffer createIntBuffer(int size)
Parameters
Type |
Name |
Description |
int |
size |
|
Returns
Type |
Description |
IntBuffer |
|
createIntBuffer(List<Integer> val)
Declaration
public static IntBuffer createIntBuffer(List<Integer> val)
Parameters
Type |
Name |
Description |
List<Integer> |
val |
|
Returns
Type |
Description |
IntBuffer |
|
listIntToArray(List<Integer> list)
Declaration
public static int [] listIntToArray(List<Integer> list)
Parameters
Type |
Name |
Description |
List<Integer> |
list |
|
Returns
removeEmptyStrings(String[] data)
Declaration
public static String [] removeEmptyStrings(String[] data)
Parameters
Type |
Name |
Description |
String [] |
data |
|
Returns
Type |
Description |
String [] |
|
sizeof(Class dataType)
Java method to return size of primitive data type based on hard coded values valid but provided by developer
Declaration
public static int sizeof(Class dataType)
Parameters
Type |
Name |
Description |
Class |
dataType |
|
Returns
sizeOf(Class dataType)
A perfect way of creating confusing method name, sizeof and sizeOf this method take advantage of SIZE constant from wrapper class
Declaration
public static int sizeOf(Class dataType)
Parameters
Type |
Name |
Description |
Class |
dataType |
|
Returns
toIntArray(Integer[] array)
Declaration
public static int [] toIntArray(Integer[] array)
Parameters
Type |
Name |
Description |
Integer [] |
array |
|
Returns
toVertexArray(ArrayList<Vector3f> positions, ArrayList<Vector3f> normals, ArrayList<Vector2f> texCoords, ArrayList<Vector3f> tangents)
Declaration
public static Vertex [] toVertexArray(ArrayList<Vector3f> positions, ArrayList<Vector3f> normals, ArrayList<Vector2f> texCoords, ArrayList<Vector3f> tangents)
Parameters
Returns