Re-implement RGBA textures

This commit is contained in:
2026-03-28 15:21:33 -05:00
parent 6823a4ddb5
commit 87d2d9123e
7 changed files with 270 additions and 187 deletions

View File

@@ -6,7 +6,7 @@
*/
#pragma once
#include "error/error.h"
#include "display/texture/texture.h"
typedef struct {
mat4 view;
@@ -66,6 +66,20 @@ errorret_t shaderSetMatrixDolphin(
mat4 matrix
);
/**
* Sets a texture uniform in the dolphin shader. Basically does nothing.
*
* @param shader Shader to set the texture in.
* @param name Name of the uniform to set.
* @param texture Texture to set.
* @return Error code if failure.
*/
errorret_t shaderSetTextureDolphin(
shaderdolphin_t *shader,
const char_t *name,
texture_t *texture
);
/**
* Disposes a dolphin shader. Basically does nothing.
*