I’m able to load up bitmaps and texture them to quads, and transform and zoom and size them just fine. What I want to do is simply display a bitmap in its original size in a window. This will be off to the side of the main window and not resizeable, etc…
So how do I display that bitmap in its original size and shape?!
Use glDrawPixels to draw the bitmap. glRasterPos will position the bitmap first, the location is transformed through the modelview & projection mtrix first though. It will appear provided it doesn’t get clipped.
Originally posted by ZbuffeR:
Bump read the docs.
I have and I’ve Googled the hell out of Google and still can’t figure out how to display a bitmap such that it takes up the full client rect of a window… or some less portion thereof.
<Bumping head against desk>
P.S. Could you at least direct me to a particular part of the docs? I don’t mind RTFM, as long as it’s friendly.
Did you actually read the doc for glDrawPixels (google glDrawPixels + I’m feeling lucky) ?
Did you try the official opengl FAQ for coders ?
A simple search on this forum with glBitmap returned this, there is source code available :
And your simple ‘bump’ was not very polite.
Ok no problem , you are forgiven !
Originally posted by Sonny Maou:
…I had noticed people using a “bump” message as a way to repost a message without having to type it out, or get it back on the forum radar…
If nobody answers when you need more info, you can try to reformulate your question and show that you actually tried to understand things. If you give the impression of just waiting around pressing refresh button of the topic, it is not very motivating to do the actual work for you…
Some general quidelines are described here :
Good luck with OpenGL !