2020-05-07 14:21:22 -04:00
|
|
|
#ifndef GFX_PC_H
|
|
|
|
#define GFX_PC_H
|
|
|
|
|
|
|
|
struct GfxRenderingAPI;
|
|
|
|
struct GfxWindowManagerAPI;
|
|
|
|
|
|
|
|
struct GfxDimensions {
|
|
|
|
uint32_t width, height;
|
|
|
|
float aspect_ratio;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct GfxDimensions gfx_current_dimensions;
|
|
|
|
|
|
|
|
void gfx_init(struct GfxWindowManagerAPI *wapi, struct GfxRenderingAPI *rapi);
|
|
|
|
void gfx_start_frame(void);
|
|
|
|
void gfx_run(Gfx *commands);
|
|
|
|
void gfx_end_frame(void);
|
2020-05-16 15:23:23 -04:00
|
|
|
void gfx_shutdown(void);
|
2020-05-07 14:21:22 -04:00
|
|
|
|
|
|
|
#endif
|