예제 #1
0
 @Override
 public void uniform2f(final IGLUniformID loc, final float x, final float y) {
   checkOpenGLThread();
   GLES20.glUniform2f(((GLUniformID_Android) loc).getID(), x, y);
 }
예제 #2
0
 @Override
 public void glUniform2f(int location, float x, float y) {
   GLES20.glUniform2f(location, x, y);
 }
예제 #3
0
 static void setSizeUniform(int program, float width, float height) {
   int sizeHandle = GLES20.glGetUniformLocation(program, "windowSize");
   GLES20.glUseProgram(program);
   GLES20.glUniform2f(sizeHandle, width, height);
 }