mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
restructure zephr
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "text.h"
|
||||
|
||||
typedef struct Context {
|
||||
bool should_quit;
|
||||
Color clear_color;
|
||||
Size screen_size;
|
||||
Size window_size;
|
||||
ZephFont font;
|
||||
|
||||
Matrix4x4 projection;
|
||||
} Context;
|
||||
|
||||
int init_zephr(const char* font_path, const char* window_title, Size window_size, Color *clear_color);
|
||||
void deinit_zephr();
|
||||
bool zephr_should_quit();
|
||||
void zephr_swap_buffers();
|
||||
Size zephr_get_window_size();
|
||||
void zephr_make_window_non_resizable();
|
||||
Reference in New Issue
Block a user