public void setIntParameter(GL2 gl, String parameter, int value) { int loc = gl.glGetUniformLocationARB(id, parameter); gl.glUniform1iARB(loc, value); }
public void setVec4Parameter(GL2 gl, String parameter, Color stop) { int loc = gl.glGetUniformLocationARB(id, parameter); gl.glUniform4f(loc, (float) stop.r, (float) stop.g, (float) stop.b, (float) stop.a); }
public void setVec4Parameter(GL2 gl, String parameter, float r, float g, float b, float a) { int loc = gl.glGetUniformLocationARB(id, parameter); gl.glUniform4fARB(loc, r, g, b, a); }
public void setVec2Parameter(GL2 gl, String parameter, Point pt) { int loc = gl.glGetUniformLocationARB(id, parameter); gl.glUniform2fARB(loc, (float) pt.x, (float) pt.y); }
public void setVec2Parameter(GL2 gl, String parameter, float value, float value2) { int loc = gl.glGetUniformLocationARB(id, parameter); gl.glUniform2fARB(loc, value, value2); }