Sign in to follow this  
kingpinzs

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this