textures
[nexus3d] / src / nexus3d.h
1 #ifndef NEXUS3D_H_
2 #define NEXUS3D_H_
3
4 #include "gfx.h"
5 #include "wsys/wsys.h"
6 #include "cgmath2/cgmath2.h"
7
8 struct nex_span {
9         int start, len;
10 };
11
12 struct nex_rect {
13         int x, y, width, height;
14 };
15
16 enum nex_apiflags_gl {
17         NEX_OPENGL_COMPAT       = 1,
18         NEX_OPENGL_DEBUG        = 2
19 };
20
21 void nex_gfxapi_opengl(int vmaj, int vmin, enum nex_apiflags_gl flags);
22
23 struct nex_span nex_span(int x, int len);
24 struct nex_rect nex_rect(int x, int y, int w, int h);
25
26 #endif  /* NEXUS3D_H_ */