Jump to content
  • Advertisement
Sign in to follow this  
kingpinzs

making a splash screen in direct draw(c++,windows)

This topic is 5002 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

I know how to load bitmaps now. but now I am trying to figure out how to use them. I load my title screen now I want to swich to the game screen. How do I do that? I do a clear the screen and load the next map?

Share this post


Link to post
Share on other sites
Advertisement
well I fugured it out. this is how I got it to work for me.


int Splash()
{
RECT r;

// Draw the background to the screen.
r.left = 0;
r.top = 0;
r.right = 800;
r.bottom = 600;
lpBackBuffer->BltFast(0, 0, lpA, &r,
DDBLTFAST_NOCOLORKEY | DDBLTFAST_WAIT);

g_pddsprimary->Flip(NULL, DDFLIP_WAIT);
wait (5);
lpA->Release();

return(1);
}

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!