Move framebuffer initialization to a helper function

This commit is contained in:
Dimitri Lozeve 2021-02-25 19:57:27 +01:00
parent 163cdd63d4
commit 03d1a2c9f4
3 changed files with 39 additions and 18 deletions

View file

@ -5,6 +5,10 @@
GLFWwindow *initialize_window(int width, int height);
unsigned int initialize_vertices();
unsigned int initialize_framebuffer(unsigned int *framebuffer,
unsigned int *texture_color_buffer,
unsigned int texture_width,
unsigned int texture_height);
void framebuffer_size_callback(GLFWwindow *window, int width, int height);
void capture_screenshot();
void process_input(GLFWwindow *window, unsigned int *screen_shader,