public class GlShader
extends java.lang.Object
Constructor and Description |
---|
GlShader(java.lang.String vertexSource,
java.lang.String fragmentSource) |
Modifier and Type | Method and Description |
---|---|
int |
getAttribLocation(java.lang.String label) |
int |
getUniformLocation(java.lang.String label) |
void |
release() |
void |
setVertexAttribArray(java.lang.String label,
int dimension,
java.nio.FloatBuffer buffer)
Enable and upload a vertex array for attribute |label|.
|
void |
setVertexAttribArray(java.lang.String label,
int dimension,
int stride,
java.nio.FloatBuffer buffer)
Enable and upload a vertex array for attribute |label|.
|
void |
useProgram() |
public GlShader(java.lang.String vertexSource, java.lang.String fragmentSource)
public int getAttribLocation(java.lang.String label)
public void setVertexAttribArray(java.lang.String label, int dimension, java.nio.FloatBuffer buffer)
public void setVertexAttribArray(java.lang.String label, int dimension, int stride, java.nio.FloatBuffer buffer)
public int getUniformLocation(java.lang.String label)
public void useProgram()
public void release()
6.4.1