#ifndef SOFA_RENDER_H #define SOFA_RENDER_H #include #include #include "util.h" #include "canvas.h" static u8 placeholderTexture[4 * 4] = { 0, 0, 0, 255, 255, 0, 255, 255, 255, 0, 255, 255, 0, 0, 0, 255, }; typedef struct { GLFWwindow* win; GLuint backingTexture; GLuint vao; GLuint* bufs; GLuint shaders; } renderer_t; renderer_t renderer_create(const char* title, u16 x, u16 y); int renderer_healthy(const renderer_t* self); void renderer_present(const renderer_t* self, const canvas_t* canvas); void renderer_destroy(renderer_t* self); #endif