Jump to content
  • Advertisement
Sign in to follow this  
LordOfer

Displaying a Bitmap

This topic is 3072 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have an OpenGL fullscreen application, using win32 API. I have a bitmap showing the "credits" that I want to display for few seconds on the screen (fullscreen) when the user clicks the relevant button. I'm using VC++ 2008, and the bitmap is a resource. I figured that It's more reasonable to use win32 API for displaying the bitmap (rather than OpenGL itself). Am I right? How to do this without "messing" the already enabled OpenGL (assuming that after showing the bitmap I'll go back to rendering my 3D world with OpenGL)?

Share this post


Link to post
Share on other sites
Advertisement
I thought about doing it as a texture. The thing is that I've never dealt with textures before, and this bitmap thing is the only thing that's delaying my project.

How much time do you think it'll take to lean simple texturing on a quad? I was hoping for a simple few-lines code :)

Share this post


Link to post
Share on other sites
I don't know about OpenGl, but loading textures requires one function call in DirectX and another call to render it. So it shouldn't be very hard to learn.

Share this post


Link to post
Share on other sites
You should be able to use (GDI) BitBlt or StretchBlt with the client dc. Just don't do any OGL rendering while it's up.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!