X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=regis;a=blobdiff_plain;f=test.c;h=ba6c02d9d1a2f8efdd732c3081167b0750d7c187;hp=72b60299ceb6c6e018943564ba1e1c6610a34f99;hb=bf31f77d497cefcc3f04d559f762a07ef9e5d3e5;hpb=4ac276ea513d4460f9db8c43b4dbde5ebad652b5 diff --git a/test.c b/test.c index 72b6029..ba6c02d 100644 --- 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)