allow custom amount of framebuffers

This commit is contained in:
FunkyFr3sh 2024-05-16 01:20:13 +02:00
parent fdcf9a7d1a
commit 10f4d8b484
2 changed files with 75 additions and 68 deletions

View file

@ -5,6 +5,7 @@
#include "opengl_utils.h"
#define TEXTURE_COUNT 4
#define FBO_COUNT 1
typedef struct OGLRENDERER
{
@ -26,8 +27,8 @@ typedef struct OGLRENDERER
GLuint main_vbos[3];
GLuint main_vao;
GLint frame_count_uni_loc;
GLuint frame_buffer_id;
GLuint frame_buffer_tex_id;
GLuint frame_buffer_id[FBO_COUNT];
GLuint frame_buffer_tex_id[FBO_COUNT];
GLint scale_tex_coord_attr_loc;
GLuint scale_vbos[3];
GLuint scale_vao;