i'll just say it's better, and i ripped out the frontend for now.
This commit is contained in:
1 parent
97946c613a
commit
51c3f6bacc
14 files changed
+1111
-1358
No files matched your search
@@ -35,12 +35,19 @@ typedef struct window_t window_t;
|
||||
#define KEY_0 39
|
||||
|
||||
extern "C" {
|
||||
// creates a window with given width, height and title, title can be utf8
|
||||
window_t* window_create(int width, int height, const char* title);
|
||||
// destroys the window
|
||||
void window_destroy(window_t* s);
|
||||
// polls window events, returns true if the window should close
|
||||
bool window_pollevent(window_t* s);
|
||||
// blits the given framebuffer to the window. must be the same size as the window and ARGB8888 format
|
||||
void window_blit(window_t* s, const uint32_t* framebuffer);
|
||||
// returns true if the given key is currently held down
|
||||
bool window_is_key_down(window_t* s, int key_scancode);
|
||||
// returns true if the given mouse button is currently held down
|
||||
bool window_is_mouse_button_down(window_t* s, int button_index);
|
||||
// gets the current mouse position in window coordinates
|
||||
void window_get_mouse_position(window_t* s, int* x, int* y);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user