Jump to content
  • Advertisement


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


nothing on the screen?

This topic is 5752 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!