WIP: Rotations in R4, and change colors

This commit is contained in:
PedroEdiaz
2024-11-26 23:51:30 -06:00
parent a8ae6aaef6
commit 589721a953
6 changed files with 86 additions and 37 deletions

View File

@@ -4,7 +4,7 @@
error of the shaders.
*/
/* #define DEBUG */
/* #define DEBUG */
/* #define GLAD */
typedef const void * window_t;
@@ -57,7 +57,7 @@ void set_projection_mesh( struct projection );
void destroy_mesh(mesh_t p);
void draw_mesh(mesh_t p);
void draw_mesh(mesh_t p, char lines);
/*
Set background color:
@@ -99,6 +99,14 @@ unsigned char load_program_to_shader(id_t shader, const char * src, unsigned int
void load_float_to_shader(id_t shader, char * var, float f);
/*
load unsigned int to shader:
var: name of glsl variable.
u: unsigned int to load
*/
void load_uint_to_shader(id_t shader, char * var, unsigned int u);
/*
load matrix 4 to shader:
var: name of glsl variable.