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