# Scaling a bitmap

## Recommended Posts

bballmitch    100
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
Tac-Tics    197
Try using the bitmap as a texture instead of drawing it directly to the screen.

##### Share on other sites
bballmitch    100
how would I do that?

##### Share on other sites
Tac-Tics    197
Quote:
 Original post by bballmitchhow would I do that?

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

## Create an account

Register a new account