I am having a lot of trouble getting .bmp files to show up as regular pictures (not textures). I have a function that loads the .bmp file, which I have tested, and it works fine. But when I display the pixmap, nothing ever shows. Here’s my code for drawing the bitmap…
void Draw2d::drawBitmap( unsigned int id, int x, int y )
glRasterPos2i( x, y );
glPixelStorei( GL_UNPACK_ALIGNMENT, 1 ); glPixelZoom(1.0f, 1.0f); glDrawPixels( bitmaps[id].width, bitmaps[id].height, GL_BGR_EXT, GL_UNSIGNED_BYTE, bitmaps[id].data );
bitmaps[id] is the class that holds the bitmap data. I only am using id = 0 right now, and x and y are both 100. All the data in the bitmaps class is the way it should be. The bitmaps.data is directly taken from a Windows bitmap file 24-bit, the width and height fields are both 64. I am just learning how to setup pictures, so any help would be greatly appreciated. I know that the renderer itself works, because i have 3d objects already in the scene. Thanks!