bind any number of textures (i'm unstoppable)

This commit is contained in:
2025-09-19 00:22:22 +02:00
parent 1cf3c7eb50
commit f3ee854de0
8 changed files with 30 additions and 28 deletions
+3 -5
View File
@@ -39,7 +39,7 @@ typedef struct ShaderProgram {
unsigned int frag_output_index;
unsigned int frag_monitor_index;
unsigned int framebuffer_count;
unsigned int tex_count;
GLuint *programs;
@@ -52,7 +52,7 @@ typedef struct ShaderProgram {
GLuint *ifps_locations;
GLuint *ires_locations;
GLuint *textures_locations[TEX_COUNT];
GLuint *textures_locations;
GLuint sub_src_indexes[8][SUB_COUNT]; // TODO change
GLuint sub_fx_indexes[8][SUB_COUNT];
@@ -64,9 +64,7 @@ typedef struct ShaderProgram {
GLuint vertex_array;
GLuint *frame_buffers;
GLuint textures[TEX_COUNT];
GLenum draw_buffers[TEX_COUNT];
GLuint *textures;
} ShaderProgram;
typedef GLFWwindow Window;