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) {
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)