played around with color, will likely stick to textures.
Some checks failed
Build Dusk / run-tests (push) Failing after 13s
Build Dusk / build-linux (push) Failing after 15s
Build Dusk / build-psp (push) Failing after 14s
Build Dusk / build-gamecube (push) Failing after 13s
Build Dusk / build-wii (push) Failing after 14s
Some checks failed
Build Dusk / run-tests (push) Failing after 13s
Build Dusk / build-linux (push) Failing after 15s
Build Dusk / build-psp (push) Failing after 14s
Build Dusk / build-gamecube (push) Failing after 13s
Build Dusk / build-wii (push) Failing after 14s
This commit is contained in:
@@ -203,6 +203,26 @@ errorret_t shaderSetMatrixGL(
|
||||
errorOk();
|
||||
}
|
||||
|
||||
// errorret_t shaderSetColorGL(
|
||||
// shadergl_t *shader,
|
||||
// const char_t *name,
|
||||
// color_t color
|
||||
// ) {
|
||||
// assertNotNull(shader, "Shader cannot be null");
|
||||
// assertStrLenMin(name, 1, "Uniform name cannot be empty");
|
||||
|
||||
// #ifdef DUSK_OPENGL_LEGACY
|
||||
// assertUnreachable("Cannot set colors on legacy opengl.");
|
||||
// #else
|
||||
// GLint location;
|
||||
// errorChain(shaderParamGetLocationGL(shader, name, &location));
|
||||
|
||||
// glUniform4f(location, color.r, color.g, color.b, color.a);
|
||||
// errorChain(errorGLCheck());
|
||||
// #endif
|
||||
|
||||
// errorOk();
|
||||
// }
|
||||
|
||||
errorret_t shaderBindGL(shadergl_t *shader) {
|
||||
#ifdef DUSK_OPENGL_LEGACY
|
||||
|
||||
Reference in New Issue
Block a user