Scaling a bitmap

Recommended Posts

glPushMatrix();
glColor3f(1.0,1.0,1.0);
glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
glRasterPos3f(0,0,-1);
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 on other sites
Try using the bitmap as a texture instead of drawing it directly to the screen.

Share on other sites
how would I do that?

Share on other sites
Quote:
 Original post by bballmitchhow would I do that?

http://www.gamedev.net/reference/articles/article947.asp

Create an account

Register a new account

• Forum Statistics

• Total Topics
628379
• Total Posts
2982349

• 10
• 9
• 15
• 24
• 11