java.lang.Object
public static final float IDENTITY_MATRIX
Creates a new program from the supplied vertex and fragment shaders.
public static int createProgram(String vertexSource,String fragmentSource)
Compiles the provided shader source.
public static int loadShader(int shaderType,String source)
Checks to see if a GLES error has been raised.
public static void checkGlError(String op)
Checks to see if the location we obtained is valid. GLES returns -1 if a label could not be found, but does not set the GL error.
Throws a RuntimeException if the location is invalid.
public static void checkLocation(int location,String label)
Creates a texture from raw data.
public static int createImageTexture(ByteBuffer data,int width,int height,int format)
Allocates a direct float buffer, and populates it with the float array data.
public static java.nio.FloatBuffer createFloatBuffer(float[] coords)
Writes GL version info to the log.
public static void logVersionInfo()
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |