foo
[regis] / test.c
diff --git a/test.c b/test.c
index 72b6029..ba6c02d 100644 (file)
--- a/test.c
+++ b/test.c
@@ -19,7 +19,7 @@ int main(int argc, char **argv)
        int pg = 1;
        signal(SIGINT, sig);
 
-       x3d_projection(45.0, (WIDTH << 16) / HEIGHT, 65536 / 2, 65536 * 500);
+       x3d_projection(45, (WIDTH << 16) / HEIGHT, 65536 / 2, 65536 * 500);
 
        while(!done) {
 
@@ -46,12 +46,33 @@ int main(int argc, char **argv)
 static void draw(void)
 {
        x3d_load_identity();
-       x3d_translate(0, 0, X16INT(6));
+       x3d_translate(0, 0, 8 << 16);
        x3d_rotate(X16INT(25), 65536, 0, 0);
-       x3d_rotate(tm << 10, 0, 65536, 0);
+       x3d_rotate(tm << 13, 0, 65536, 0);
 
        x3d_color_index(3);
 
+       x3d_begin(X3D_QUADS);
+       x3d_vertex(-65536, -65536, -65536);
+       x3d_vertex(65536, -65536, -65536);
+       x3d_vertex(65536, 65536, -65536);
+       x3d_vertex(-65536, 65536, -65536);
+
+       x3d_vertex(65536, -65536, -65536);
+       x3d_vertex(65536, -65536, 65536);
+       x3d_vertex(65536, 65536, 65536);
+       x3d_vertex(65536, 65536, -65536);
+
+       x3d_vertex(65536, -65536, 65536);
+       x3d_vertex(-65536, -65536, 65536);
+       x3d_vertex(-65536, 65536, 65536);
+       x3d_vertex(65536, 65536, 65536);
+
+       x3d_vertex(-65536, -65536, 65536);
+       x3d_vertex(-65536, -65536, -65536);
+       x3d_vertex(-65536, 65536, -65536);
+       x3d_vertex(-65536, 65536, 65536);
+       x3d_end();
 }
 
 static void sig(int s)