pass internal dimensions to shaders

This commit is contained in:
2025-09-22 22:18:29 +02:00
parent dd42319846
commit 8bfcbfa128
6 changed files with 49 additions and 29 deletions
+4 -1
View File
@@ -67,6 +67,8 @@ typedef struct ShaderProgram {
GLuint *itempo_locations;
GLuint *ifps_locations;
GLuint *ires_locations;
GLuint *itexres_locations;
GLuint *iinres_locations;
GLuint *idemo_locations;
GLuint *iseed_locations;
GLuint *istate_locations;
@@ -102,7 +104,8 @@ typedef GLFWwindow Window;
typedef struct Context {
int width;
int height;
unsigned int internal_size;
unsigned int internal_width;
unsigned int internal_height;
double time;
unsigned int fps;
float tempo;