public class WebGLProgram extends Object implements WebGLObject
Constructor and Description |
---|
WebGLProgram() |
Modifier and Type | Method and Description |
---|---|
WebGLUniformLocation |
getModelViewMatrixUniform() |
WebGLUniformLocation |
getProjectionMatrixUniform() |
int |
getVertexColorAttribute() |
int |
getVertexPositionAttribute() |
void |
setModelViewMatrixUniform(WebGLUniformLocation modelViewMatrixUniform) |
void |
setProjectionMatrixUniform(WebGLUniformLocation projectionMatrixUniform) |
void |
setVertexColorAttribute(int vertexColorAttribute) |
void |
setVertexPositionAttribute(int vertexPositionAttribute) |
public int getVertexPositionAttribute()
public void setVertexPositionAttribute(int vertexPositionAttribute)
vertexPositionAttribute
- the vertexPositionAttribute to setpublic int getVertexColorAttribute()
public void setVertexColorAttribute(int vertexColorAttribute)
vertexColorAttribute
- the vertexColorAttribute to setpublic WebGLUniformLocation getProjectionMatrixUniform()
public void setProjectionMatrixUniform(WebGLUniformLocation projectionMatrixUniform)
projectionMatrixUniform
- the projectionMatrixUniform to setpublic WebGLUniformLocation getModelViewMatrixUniform()
public void setModelViewMatrixUniform(WebGLUniformLocation modelViewMatrixUniform)
modelViewMatrixUniform
- the modelViewMatrixUniform to setCopyright © 2018 Xalys. All rights reserved.