/** 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 values r, g, b and a as the first through fourth values respectively */ public void setUniformf (String name, Color values) { setUniformf(name, values.r, values.g, values.b, values.a); }
/** 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 values x and y as the first and second values respectively */ public void setUniformf (String name, Vector2 values) { setUniformf(name, values.x, values.y); }
/** 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 values r, g, b and a as the first through fourth values respectively */ public void setUniformf (String name, Color values) { setUniformf(name, values.r, values.g, values.b, values.a); }
public final boolean set (final int uniform, final Color value) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], value); return true; }
public final boolean set (final int uniform, final float v1, final float v2) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], v1, v2); return true; }
public final boolean set (final int uniform, final Vector2 value) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], value); return true; }
public final boolean set (final int uniform, final Color value) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], value); return true; }
public final boolean set (final int uniform, final float v1, final float v2, final float v3) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], v1, v2, v3); return true; }
public final boolean set (final int uniform, final float v1, final float v2, final float v3, final float v4) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], v1, v2, v3, v4); return true; }
public final boolean set (final int uniform, final Vector3 value) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], value); return true; }
/** 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 values x, y and z as the first, second and third values respectively */ public void setUniformf (String name, Vector3 values) { setUniformf(name, values.x, values.y, values.z); }
public final boolean set (final int uniform, final float v1, final float v2, final float v3) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], v1, v2, v3); return true; }
public final boolean set (final int uniform, final float v1, final float v2, final float v3, final float v4) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], v1, v2, v3, v4); return true; }
/** 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 values x and y as the first and second values respectively */ public void setUniformf (String name, Vector2 values) { setUniformf(name, values.x, values.y); }
public final boolean set (final int uniform, final float value) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], value); return true; }
public final boolean set (final int uniform, final Vector2 value) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], value); return true; }
public final boolean set (final int uniform, final float value) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], value); return true; }
/** 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 values x, y and z as the first, second and third values respectively */ public void setUniformf (String name, Vector3 values) { setUniformf(name, values.x, values.y, values.z); }
public final boolean set (final int uniform, final Vector3 value) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], value); return true; }
public final boolean set (final int uniform, final float v1, final float v2) { if (locations[uniform] < 0) return false; program.setUniformf(locations[uniform], v1, v2); return true; }