Esempio n. 1
0
 @Override
 public int getAttribLocation(final ShaderProgram program, final String name) {
   checkOpenGLThread();
   return GLES20.glGetAttribLocation(program.getProgram(), name);
 }
Esempio n. 2
0
 @Override
 public IGLUniformID getUniformLocation(final ShaderProgram program, final String name) {
   checkOpenGLThread();
   final int id = GLES20.glGetUniformLocation(program.getProgram(), name);
   return new GLUniformID_Android(id);
 }
Esempio n. 3
0
 @Override
 public void useProgram(final ShaderProgram program) {
   checkOpenGLThread();
   GLES20.glUseProgram(program.getProgram());
 }