added options for window position, size and class

This commit is contained in:
Jarcode
2017-11-30 21:02:34 -08:00
parent 2a7d41cf2a
commit 93fa812aa0
6 changed files with 115 additions and 27 deletions

View File

@@ -7,7 +7,8 @@ typedef struct renderer {
struct gl_data* gl;
} renderer;
struct renderer* rd_new(int x, int y, int w, int h, const char* shader_path);
struct renderer* rd_new(const char* shader_path);
void rd_update(struct renderer*, float* lb, float* rb, size_t bsz, bool modified);
void rd_destroy(struct renderer*);
void rd_time(struct renderer*);
void* rd_get_impl_window(struct renderer*);