played around with color, will likely stick to textures.
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:
2026-03-22 23:53:23 -05:00
parent c0cff40628
commit b23c4b83ae
7 changed files with 82 additions and 1 deletions
+29
View File
@@ -7,6 +7,7 @@
#pragma once
#include "error/errorgl.h"
#include "display/color.h"
typedef struct {
#ifdef DUSK_OPENGL_LEGACY
@@ -91,6 +92,34 @@ errorret_t shaderSetMatrixGL(
mat4 matrix
);
/**
* Sets a color uniform parameter in the shader.
*
* @param shader The shader to update.
* @param name The name of the uniform parameter.
* @param color The color data to set.
* @return An errorret_t indicating success or failure.
*/
// errorret_t shaderSetTextureGL(
// shadergl_t *shader,
// const char_t *name,
// texture_t *texture
// );
/**
* Sets a color uniform parameter in the shader.
*
* @param shader The shader to update.
* @param name The name of the uniform parameter.
* @param color The color data to set.
* @return An errorret_t indicating success or failure.
*/
// errorret_t shaderSetColorGL(
// shadergl_t *shader,
// const char_t *name,
// color_t color
// );
/**
* Disposes of a shader, freeing any associated resources.
*