This topic is now archived and is closed to further replies.


nothing on the screen?

Recommended Posts

enigmamwu03    122
Okay, I am using SDL and have been having some trouble loading and displaying textures. I just got my texture to load and display, but nothing else gets put on the screen not even things that are before when I draw the textured sphere. Need help in finding what the problem is. Here is the main drawing func: void DrawScene() { int i=0; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); if(optionsscreen==false) { glPushMatrix(); gluLookAt(0,7,20,player[focus].lookatposition(0), player[focus].lookatposition(1), player[focus].lookatposition(2), 0.0f, 1.0f, 0.0f); glBegin(GL_QUADS); glColor3ub(255,255,255); glVertex3f(40,0,-40); glVertex3f(-40,0,-40); glVertex3f(-40,0,40); glVertex3f(40,0,40); glColor3ub(255,0,0); glEnd(); player[0].drawme(); glColor3f(0,0,255); player[1].drawme(); glColor3f(0,255,0); player[2].drawme(); domovement(); glPopMatrix(); } else { glPushMatrix(); gluLookAt(0,0,-18, 0,0,0, 0.0f, 1.0f, 0.0f); Options(); ============================================================ __________________INSIDE HERE IS THE TEXTURED SPHERE STUFF. ============================================================ glPopMatrix(); } SDL_GL_SwapBuffers(); }

Share this post

Link to post
Share on other sites