-
DirectDraw and forms
Hi.
I have already asked this question in another thread but I didn't understand what some of you have answered me.
So my problem is that my game consists of many small games in the same one, so when one level of the first is over, I want to go to another game, and then when this one is over I want to go back to the first one.
The first game is done using DirectDraw. But I thought I do the others using the simple graphics of the forms(i.e. shapes) because they don't need more. So how can I call the form with simple graphics and then go back to the other one?
And if there's no way to do this, if I have to use DirectDraw in all my forms does this affect the size of my game a lot?
Thank you all.
-
Once you have DDraw up and running it wont increase the size of your application at all. You will have to convert the other things over, but it wont hurt your program (and may well improve the speed).
Z.
-
You can terminate and restart Ddraw at any time and the GDI will be there behind. The application size won't be affected more than standard
-
Thank you both but you didn't answer my first question:p
-
When you want to do some stuff with standard GDI graphics, shut down your DDraw code, and when you want to go back, start it up again. You can save the state it was in in some kind of data structure if you want to keep whatever was there intact.
-
Ok thank you.
I thought there was some way without shutting DDraw and then turning it on back again.