f143f2428ac67ea7e1ca0258d4fd32f2aaf2592b
[dos_low3d] / src / 3dgfx.h
1 #ifndef GFX3D_H_
2 #define GFX3D_H_
3
4 #include "types.h"
5
6 struct g3d_vertex {
7         int32_t x, y, z;
8 };
9
10 enum {
11         G3D_POINTS,
12         G3D_LINES,
13         G3D_TRIANGLES
14 };
15
16 int g3d_init(void);
17 void g3d_shutdown(void);
18
19 void g3d_framebuf(int width, int height, void *fb);
20
21 void g3d_modelview(const int32_t *m);
22 void g3d_projection(const int32_t *m);
23
24 void g3d_xform(struct g3d_vertex *v, const int32_t *m);
25
26 void g3d_draw(int prim, struct g3d_vertex *varr, int vcount);
27
28 #endif  /* GFX3D_H_ */