2020-05-07 20:21:22 +02: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;
|
|
|
|
|
2020-06-11 02:54:30 +02:00
|
|
|
void gfx_init(struct GfxWindowManagerAPI *wapi, struct GfxRenderingAPI *rapi, const char *window_title);
|
2020-05-07 20:21:22 +02:00
|
|
|
void gfx_start_frame(void);
|
|
|
|
void gfx_run(Gfx *commands);
|
|
|
|
void gfx_end_frame(void);
|
2020-06-07 22:54:39 +02:00
|
|
|
void gfx_precache_textures(void);
|
2020-05-16 21:23:23 +02:00
|
|
|
void gfx_shutdown(void);
|
2020-05-07 20:21:22 +02:00
|
|
|
|
|
|
|
#endif
|