--- libgender/test.C 2004/10/03 05:53:09 1.11 +++ libgender/test.C 2004/10/03 20:14:33 1.12 @@ -311,7 +311,7 @@ } /* Set the window manager title bar */ - SDL_WM_SetCaption ("SDL GL test", "testgl"); + SDL_WM_SetCaption ("libgender rendering test", "gendertest"); /* Set the gamma for the window */ if (gamma != 0.0) @@ -326,19 +326,16 @@ glMatrixMode (GL_MODELVIEW); glLoadIdentity (); + //glEnable (GL_CULL_FACE); glEnable (GL_DEPTH_TEST); - glDepthFunc (GL_LESS); - glShadeModel (GL_SMOOTH); glEnable (GL_LIGHTING); - //GLfloat lightc[4] = { 1, 0.1, 0.1, 1 }; //glLightf (GL_LIGHT0, GL_QUADRATIC_ATTENUATION); //glLightfv (GL_LIGHT0, GL_DIFFUSE, lightc); glEnable (GL_LIGHT0); - glEnable (GL_COLOR_MATERIAL); /* Loop until done. */ start_time = SDL_GetTicks (); @@ -434,6 +431,7 @@ int fsaa = 0; // load a entity + for (int i = 0; i < 1; i++) { txtprt_parser p; entity *e; try { @@ -441,7 +439,12 @@ } catch (txtprt_i_exception & e) { cout << "ERR: " << e.msg << endl; } + e->orig.x += i; + e->orig.y += i; + e->orig.z += i; e->show (); + printf ("load entity %p -> %p\n", e, e->content ()); + } logo = 0; slowly = 0;