GlShader

tee3.webrtc

## 类 GlShader

- java.lang.Object
- - tee3.webrtc.GlShader

-     public class GlShader
      extends java.lang.Object

- - ### 构造器概要

    构造器
    构造器和说明
    `GlShader(java.lang.String vertexSource, java.lang.String fragmentSource)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `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()`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### GlShader

          public GlShader(java.lang.String vertexSource,
                          java.lang.String fragmentSource)

  - ### 方法详细资料

    - #### 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()