public class PositionColorShaderProgram extends ShaderProgram
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FRAGMENTSHADER |
static int |
sUniformModelViewPositionMatrixLocation |
static java.lang.String |
VERTEXSHADER |
mAttributeLocations, mCompiled, mFragmentShaderSource, mProgramID, mUniformLocations, mVertexShaderSource| Modifier and Type | Method and Description |
|---|---|
void |
bind(GLState pGLState,
VertexBufferObjectAttributes pVertexBufferObjectAttributes) |
static PositionColorShaderProgram |
getInstance() |
protected void |
link(GLState pGLState) |
void |
unbind(GLState pGLState) |
compile, delete, getAttributeLocation, getAttributeLocationOptional, getUniformLocation, getUniformLocationOptional, isCompiled, setCompiled, setTexture, setTextureOptional, setUniform, setUniform, setUniform, setUniform, setUniform, setUniformOptional, setUniformOptional, setUniformOptional, setUniformOptional, setUniformOptionalpublic static final java.lang.String VERTEXSHADER
public static final java.lang.String FRAGMENTSHADER
public static int sUniformModelViewPositionMatrixLocation
public static PositionColorShaderProgram getInstance()
protected void link(GLState pGLState) throws ShaderProgramLinkException
link in class ShaderProgramShaderProgramLinkExceptionpublic void bind(GLState pGLState, VertexBufferObjectAttributes pVertexBufferObjectAttributes)
bind in class ShaderProgrampublic void unbind(GLState pGLState)
unbind in class ShaderProgram