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