fixed build on windows
[gph-gfx] / src / gphgfx.h
1 #ifndef GPHGFX_H_
2 #define GPHGFX_H_
3
4 struct ggfx_rend;
5 struct ggfx_shader;
6
7 enum { GGFX_INIT_DEBUG = 1 };
8
9 int ggfx_init(const char *appname, unsigned int flags);
10 void ggfx_shutdown(void);
11
12 struct ggfx_rend *ggfx_alloc_rend(void);
13 void ggfx_free_rend(struct ggfx_rend *rend);
14 struct ggfx_rend *ggfx_clone_rend(void);
15
16 void ggfx_finalize(struct ggfx_rend *rend);
17 void ggfx_enable(struct ggfx_rend *rend, unsigned int s);
18 void ggfx_disable(struct ggfx_rend *rend, unsigned int s);
19
20 void ggfx_clear_color(struct ggfx_rend *rend, float r, float g, float b, float a);
21 void ggfx_clear_depth(struct ggfx_rend *rend, float z);
22 void ggfx_clear_stencil(struct ggfx_rend *rend, int s);
23
24 void ggfx_set_shader(struct ggfx_rend *rend, int sdrtype, struct ggfx_shader *sdr);
25
26 #endif  /* GPHGFX_H_ */