Package tvi.webrtc
Class GlShader
- java.lang.Object
-
- tvi.webrtc.GlShader
-
public class GlShader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GlShader(java.lang.String vertexSource, java.lang.String fragmentSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAttribLocation(java.lang.String label)
int
getUniformLocation(java.lang.String label)
void
release()
void
setVertexAttribArray(java.lang.String label, int dimension, int stride, java.nio.FloatBuffer buffer)
Enable and upload a vertex array for attribute `label`.void
setVertexAttribArray(java.lang.String label, int dimension, java.nio.FloatBuffer buffer)
Enable and upload a vertex array for attribute `label`.void
useProgram()
-
-
-
Method Detail
-
getAttribLocation
public int getAttribLocation(java.lang.String label)
-
setVertexAttribArray
public void setVertexAttribArray(java.lang.String label, int dimension, java.nio.FloatBuffer buffer)
Enable and upload a vertex array for attribute `label`. The vertex data is specified in `buffer` with `dimension` number of components per vertex.
-
setVertexAttribArray
public void setVertexAttribArray(java.lang.String label, int dimension, int stride, java.nio.FloatBuffer buffer)
Enable and upload a vertex array for attribute `label`. The vertex data is specified in `buffer` with `dimension` number of components per vertex and specified `stride`.
-
getUniformLocation
public int getUniformLocation(java.lang.String label)
-
useProgram
public void useProgram()
-
release
public void release()
-
-