Jump to content
  • Advertisement


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


fullscreen problem drawing things that are projected to screen coord

This topic is 5965 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

I when i''m drawing things that are projected onto to screen coordinates, such as fonts, there are artifacts that pop up all over the place. In windowed mode everything is fine. Calling glGetError() returns noError, but there is something wrong. This only happended after i installed a new radeon 7000 (I used to be running a voodoo4 and everything was fine). Here is the code to switch to screen coordinates: inline void GlPushOrthographicProjection(float xValue, float yValue) { glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity(); gluOrtho2D(0.0, (GLfloat) xValue, 0.0, (GLfloat) yValue); glMatrixMode(GL_MODELVIEW); glPushMatrix(); glLoadIdentity(); } inline void GlPopOrthographicProjection() { glPopMatrix(); glMatrixMode(GL_PROJECTION); glPopMatrix(); glMatrixMode(GL_MODELVIEW); }; Here is the code that i use to draw a string: void printString (GLint x, GLint y, float r, float g, float b, float a, char *s) { //ASSUME THAT THE PROJECTION MATRIX HAS BEEN SETUP FIRST glColor4f(r, g, b, a); glRasterPos3f(x, y, 0.1); glPushAttrib (GL_LIST_BIT); glListBase(fontOffset); glCallLists(strlen(s), GL_UNSIGNED_BYTE, (GLubyte *) s); glPopAttrib (); } Any ideas on what could be wrong? thanks for the help

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!