Re-implement RGBA textures
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user