• Advertisement
Sign in to follow this  

Scaling a bitmap

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

glPushMatrix();
          glColor3f(1.0,1.0,1.0);
          glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
          glRasterPos3f(0,0,-1);
          glDrawPixels(bitmapInfoHeader.biWidth, bitmapInfoHeader.biHeight, GL_RGB, GL_UNSIGNED_BYTE, bitmapData);
          glPopMatrix();

That draws a bitmap, and it works. However, the bitmap shows up too big. So I tried putting in a glScalef() in there, but that had NO effect. I tried changing the raster position so the bitmap seemed farther away. I tried not using glRasterPos() and using glTranslatef() instead. None of those worked. The bitmap just stayed the same size. How do I change the size of this bitmap?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by bballmitch
how would I do that?


By using Google, of course:

http://www.gamedev.net/reference/articles/article947.asp
http://www.google.com/search?hl=en&q=opengl+texture&btnG=Google+Search

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement