shader prog

This commit is contained in:
2026-03-17 17:05:39 -05:00
parent ff92a78dda
commit 66ebcb1608
11 changed files with 303 additions and 140 deletions

View File

@@ -9,14 +9,22 @@
#include "error/errorgl.h"
typedef struct {
GLuint shaderProgramId;
GLuint vertexShaderId;
GLuint fragmentShaderId;
#ifdef DUSK_OPENGL_LEGACY
void *nothing;
#else
GLuint shaderProgramId;
GLuint vertexShaderId;
GLuint fragmentShaderId;
#endif
} shadergl_t;
typedef struct {
const char_t *vert;
const char_t *frag;
#ifdef DUSK_OPENGL_LEGACY
void *nothing;
#else
const char_t *vert;
const char_t *frag;
#endif
} shaderdefinitiongl_t;
/**