Package tvi.webrtc

Class GlShader

java.lang.Object
tvi.webrtc.GlShader

public class GlShader extends Object
  • Constructor Details

    • GlShader

      public GlShader(String vertexSource, String fragmentSource)
  • Method Details

    • getAttribLocation

      public int getAttribLocation(String label)
    • setVertexAttribArray

      public void setVertexAttribArray(String label, int dimension, 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(String label, int dimension, int stride, 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(String label)
    • useProgram

      public void useProgram()
    • release

      public void release()