added readme and license
[gba_blender] / src / xgl.h
index 125af16..eba42b5 100644 (file)
--- a/src/xgl.h
+++ b/src/xgl.h
@@ -24,6 +24,11 @@ along with this program.  If not, see <https://www.gnu.org/licenses/>.
 #define X_QPI  0xc910
 
 enum {
+       XGL_LIGHTING    = 1,
+       XGL_DEPTH_TEST  = 2,
+};
+
+enum {
        XGL_LINES               = 2,
        XGL_TRIANGLES   = 3,
        XGL_QUADS               = 4
@@ -37,12 +42,16 @@ struct xvertex {
 
 void xgl_init(void);
 
+void xgl_enable(unsigned int opt);
+void xgl_disable(unsigned int opt);
+
 void xgl_viewport(int x, int y, int w, int h);
 
 void xgl_push_matrix(void);
 void xgl_pop_matrix(void);
 void xgl_load_identity(void);
 void xgl_load_matrix(const int32_t *m);
+void xgl_get_matrix(int32_t *m);
 void xgl_mult_matrix(const int32_t *m);
 
 void xgl_translate(int32_t x, int32_t y, int32_t z);
@@ -52,5 +61,8 @@ void xgl_rotate_z(int32_t angle);
 void xgl_scale(int32_t x, int32_t y, int32_t z);
 
 void xgl_draw(int prim, const struct xvertex *varr, int vcount);
+void xgl_transform(const struct xvertex *vin, int *x, int *y);
+
+void xgl_xyzzy(void);
 
 #endif /* XGL_H_ */