public class Utilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BYTES_PER_FLOAT |
static int |
BYTES_PER_SHORT |
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
static int |
createProgram(int vertexShaderHandle,
int fragmentShaderHandle,
AttribVariable[] variables) |
static int |
loadShader(int type,
java.lang.String shaderCode) |
static java.nio.FloatBuffer |
newFloatBuffer(float[] verticesData) |
public static final int BYTES_PER_FLOAT
public static final int BYTES_PER_SHORT
public static int createProgram(int vertexShaderHandle, int fragmentShaderHandle, AttribVariable[] variables)
public static int loadShader(int type, java.lang.String shaderCode)
public static java.nio.FloatBuffer newFloatBuffer(float[] verticesData)