Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/gawain/immediate.c
| Context not available. | |||||
| immUniform4f("color", rgb[0], rgb[1], rgb[2], 1.0f); | immUniform4f("color", rgb[0], rgb[1], rgb[2], 1.0f); | ||||
| } | } | ||||
| void immUniformColor3fvAlpha(float rgb[3], float alpha) | |||||
| { | |||||
| immUniform4f("color",rgb[0], rgb[1], rgb[2], alpha); | |||||
| } | |||||
| void immUniformColor4fv(const float rgba[4]) | void immUniformColor4fv(const float rgba[4]) | ||||
| { | { | ||||
| immUniform4f("color", rgba[0], rgba[1], rgba[2], rgba[3]); | immUniform4f("color", rgba[0], rgba[1], rgba[2], rgba[3]); | ||||
| Context not available. | |||||
| immUniformColor4ub(rgba[0], rgba[1], rgba[2], rgba[3]); | immUniformColor4ub(rgba[0], rgba[1], rgba[2], rgba[3]); | ||||
| } | } | ||||
| void immUniformColor4f(float r, float g, float b, float a) | |||||
| { | |||||
| immUniform4f("color", r, g, b, a); | |||||
| } | |||||
| void immUniform1i(const char *name, const unsigned int data) | void immUniform1i(const char *name, const unsigned int data) | ||||
| { | { | ||||
| int loc = glGetUniformLocation(imm.bound_program, name); | int loc = glGetUniformLocation(imm.bound_program, name); | ||||
| Context not available. | |||||