Class GlShader
- java.lang.Object
-
- com.zego.zegoavkit2.screencapture.ve_gl.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, 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.
-
getUniformLocation
public int getUniformLocation(java.lang.String label)
-
useProgram
public void useProgram()
-
release
public void release()
-
-