1
Fork 0
sm64/src/pc/gfx/gfx_pc.h
2020-06-18 11:58:18 +02:00

30 lines
591 B
C

#ifndef GFX_PC_H
#define GFX_PC_H
#include <stdbool.h>
struct GfxRenderingAPI;
struct GfxWindowManagerAPI;
struct GfxDimensions {
uint32_t width, height;
float aspect_ratio;
};
extern struct GfxDimensions gfx_current_dimensions;
#ifdef __cplusplus
extern "C" {
#endif
void gfx_init(struct GfxWindowManagerAPI *wapi, struct GfxRenderingAPI *rapi, const char *game_name, bool start_in_fullscreen);
struct GfxRenderingAPI *gfx_get_current_rendering_api(void);
void gfx_start_frame(void);
void gfx_run(Gfx *commands);
void gfx_end_frame(void);
#ifdef __cplusplus
}
#endif
#endif