Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/src/pc/gfx/gfx_pc.h
7861 views
1
#ifndef GFX_PC_H
2
#define GFX_PC_H
3
4
#include <stdbool.h>
5
6
struct GfxRenderingAPI;
7
struct GfxWindowManagerAPI;
8
9
struct GfxDimensions {
10
uint32_t width, height;
11
float aspect_ratio;
12
};
13
14
extern struct GfxDimensions gfx_current_dimensions;
15
16
#ifdef __cplusplus
17
extern "C" {
18
#endif
19
20
void gfx_init(struct GfxWindowManagerAPI *wapi, struct GfxRenderingAPI *rapi, const char *game_name, bool start_in_fullscreen);
21
struct GfxRenderingAPI *gfx_get_current_rendering_api(void);
22
void gfx_start_frame(void);
23
void gfx_run(Gfx *commands);
24
void gfx_end_frame(void);
25
26
uint16_t *get_framebuffer();
27
28
#ifdef __cplusplus
29
}
30
#endif
31
32
#endif
33
34