refactor a bit into pxl8 sys struct
This commit is contained in:
parent
b2682a2d40
commit
f19b06d705
10 changed files with 217 additions and 148 deletions
24
src/pxl8_sys.h
Normal file
24
src/pxl8_sys.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#include "pxl8_gfx.h"
|
||||
#include "pxl8_hal.h"
|
||||
#include "pxl8_io.h"
|
||||
#include "pxl8_types.h"
|
||||
|
||||
typedef struct pxl8 pxl8;
|
||||
|
||||
pxl8* pxl8_create(const pxl8_hal* hal);
|
||||
void pxl8_destroy(pxl8* sys);
|
||||
|
||||
bool pxl8_is_running(const pxl8* sys);
|
||||
void pxl8_set_running(pxl8* sys, bool running);
|
||||
|
||||
f32 pxl8_get_fps(const pxl8* sys);
|
||||
pxl8_gfx* pxl8_get_gfx(pxl8* sys);
|
||||
pxl8_input_state* pxl8_get_input(pxl8* sys);
|
||||
pxl8_resolution pxl8_get_resolution(pxl8* sys);
|
||||
|
||||
pxl8_result pxl8_init(pxl8* sys, i32 argc, char* argv[]);
|
||||
pxl8_result pxl8_update(pxl8* sys);
|
||||
pxl8_result pxl8_frame(pxl8* sys);
|
||||
void pxl8_quit(pxl8* sys);
|
||||
Loading…
Add table
Add a link
Reference in a new issue