/** Sets the uniform matrix with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param matrix the matrix * @param transpose whether the matrix should be transposed */ public void setUniformMatrix (String name, Matrix4 matrix, boolean transpose) { setUniformMatrix(fetchUniformLocation(name), matrix, transpose); }
/** Sets the uniform matrix with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param matrix the matrix * @param transpose whether the uniform matrix should be transposed */ public void setUniformMatrix (String name, Matrix3 matrix, boolean transpose) { setUniformMatrix(fetchUniformLocation(name), matrix, transpose); }
/** Sets the uniform matrix with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param matrix the matrix * @param transpose whether the uniform matrix should be transposed */ public void setUniformMatrix (String name, Matrix3 matrix, boolean transpose) { setUniformMatrix(fetchUniformLocation(name), matrix, transpose); }
/** Sets an array of uniform matrices with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param buffer buffer containing the matrix data * @param transpose whether the uniform matrix should be transposed */ public void setUniformMatrix3fv (String name, FloatBuffer buffer, int count, boolean transpose) { GL20 gl = Gdx.gl20; checkManaged(); buffer.position(0); int location = fetchUniformLocation(name); gl.glUniformMatrix3fv(location, count, transpose, buffer); }
/** Sets an array of uniform matrices with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param buffer buffer containing the matrix data * @param transpose whether the uniform matrix should be transposed */ public void setUniformMatrix4fv (String name, FloatBuffer buffer, int count, boolean transpose) { GL20 gl = Gdx.gl20; checkManaged(); buffer.position(0); int location = fetchUniformLocation(name); gl.glUniformMatrix4fv(location, count, transpose, buffer); }
/** Sets an array of uniform matrices with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param buffer buffer containing the matrix data * @param transpose whether the uniform matrix should be transposed */ public void setUniformMatrix4fv (String name, FloatBuffer buffer, int count, boolean transpose) { GL20 gl = Gdx.gl20; checkManaged(); buffer.position(0); int location = fetchUniformLocation(name); gl.glUniformMatrix4fv(location, count, transpose, buffer); }
/** Sets an array of uniform matrices with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param buffer buffer containing the matrix data * @param transpose whether the uniform matrix should be transposed */ public void setUniformMatrix3fv (String name, FloatBuffer buffer, int count, boolean transpose) { GL20 gl = Gdx.gl20; checkManaged(); buffer.position(0); int location = fetchUniformLocation(name); gl.glUniformMatrix3fv(location, count, transpose, buffer); }
/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param value the value */ public void setUniformi (String name, int value) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform1i(location, value); }
/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param value1 the first value * @param value2 the second value * @param value3 the third value */ public void setUniformi (String name, int value1, int value2, int value3) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform3i(location, value1, value2, value3); }
/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param value1 the first value * @param value2 the second value * @param value3 the third value */ public void setUniformi (String name, int value1, int value2, int value3) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform3i(location, value1, value2, value3); }
/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param value1 the first value * @param value2 the second value * @param value3 the third value */ public void setUniformf (String name, float value1, float value2, float value3) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform3f(location, value1, value2, value3); }
public void setUniform2fv (String name, float[] values, int offset, int length) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform2fv(location, length / 2, values, offset); }
public void setUniform4fv (String name, float[] values, int offset, int length) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform4fv(location, length / 4, values, offset); }
/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param value1 the first value * @param value2 the second value */ public void setUniformf (String name, float value1, float value2) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform2f(location, value1, value2); }
public void setUniform4fv (String name, float[] values, int offset, int length) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform4fv(location, length / 4, values, offset); }
/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param value1 the first value * @param value2 the second value */ public void setUniformi (String name, int value1, int value2) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform2i(location, value1, value2); }
/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param value the value */ public void setUniformf (String name, float value) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform1f(location, value); }
/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work. * * @param name the name of the uniform * @param value1 the first value * @param value2 the second value */ public void setUniformf (String name, float value1, float value2) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform2f(location, value1, value2); }
public void setUniform1fv (String name, float[] values, int offset, int length) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform1fv(location, length, values, offset); }
public void setUniform3fv (String name, float[] values, int offset, int length) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform3fv(location, length / 3, values, offset); }