예제 #1
0
 @Override
 public int getAttribLocation(final ShaderProgram program, final String name) {
   checkOpenGLThread();
   return GLES20.glGetAttribLocation(program.getProgram(), name);
 }
예제 #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);
 }
예제 #3
0
 @Override
 public void useProgram(final ShaderProgram program) {
   checkOpenGLThread();
   GLES20.glUseProgram(program.getProgram());
 }