763764765766767768769770
throw new GdxRuntimeException("not implemented"); } @Override public int glGetUniformLocation (int program, String name) { WebGLUniformLocation location = gl.getUniformLocation(programs.get(program), name); return allocateUniformLocationId(program, location); }
881882883884885886887888
gl.texParameterf(target, pname, params.get()); } @Override public void glUniform1f (int location, float x) { WebGLUniformLocation loc = getUniformLocation(location); gl.uniform1f(loc, x); }
887888889890891892893894
gl.uniform1f(loc, x); } @Override public void glUniform1fv (int location, int count, FloatBuffer v) { WebGLUniformLocation loc = getUniformLocation(location); gl.uniform1fv(loc, copy(v)); }
893894895896897898899900
gl.uniform1fv(loc, copy(v)); } @Override public void glUniform1i (int location, int x) { WebGLUniformLocation loc = getUniformLocation(location); gl.uniform1i(loc, x); }
899900901902903904905906
gl.uniform1i(loc, x); } @Override public void glUniform1iv (int location, int count, IntBuffer v) { WebGLUniformLocation loc = getUniformLocation(location); gl.uniform1iv(loc, copy(v)); }
905906907908909910911912
gl.uniform1iv(loc, copy(v)); } @Override public void glUniform2f (int location, float x, float y) { WebGLUniformLocation loc = getUniformLocation(location); gl.uniform2f(loc, x, y); }
911912913914915916917918
gl.uniform2f(loc, x, y); } @Override public void glUniform2fv (int location, int count, FloatBuffer v) { WebGLUniformLocation loc = getUniformLocation(location); gl.uniform2fv(loc, copy(v)); }
917918919920921922923924
gl.uniform2fv(loc, copy(v)); } @Override public void glUniform2i (int location, int x, int y) { WebGLUniformLocation loc = getUniformLocation(location); gl.uniform2i(loc, x, y); }
923924925926927928929930
gl.uniform2i(loc, x, y); } @Override public void glUniform2iv (int location, int count, IntBuffer v) { WebGLUniformLocation loc = getUniformLocation(location); gl.uniform2iv(loc, copy(v)); }
929930931932933934935936
gl.uniform2iv(loc, copy(v)); } @Override public void glUniform3f (int location, float x, float y, float z) { WebGLUniformLocation loc = getUniformLocation(location); gl.uniform3f(loc, x, y, z); }