ToddAtWSU
01-24-2007, 10:02 AM
I am trying to store a glBitmap( ) inside a display list. I have 63 different bitmaps so I made a global GLuint base and said:
base = glGenLists( 63 );
if( base != 0 )
{
for( int index = 0 ; index < 63 ; index++ )
glNewList( base + index, GL_COMPILE );
glBitmap( ... );
glEndList( );
}
Then inside my drawing code I made a glColor3f( ) call followed by a glRaster3d( ) call followed by a glCallList( base + indexOfImage ) so it would draw the correct bitmap. For some reason I do not get any bitmaps to show up. I cannot figure out what I am doing incorrectly. Thanks for your help!
base = glGenLists( 63 );
if( base != 0 )
{
for( int index = 0 ; index < 63 ; index++ )
glNewList( base + index, GL_COMPILE );
glBitmap( ... );
glEndList( );
}
Then inside my drawing code I made a glColor3f( ) call followed by a glRaster3d( ) call followed by a glCallList( base + indexOfImage ) so it would draw the correct bitmap. For some reason I do not get any bitmaps to show up. I cannot figure out what I am doing incorrectly. Thanks for your help!