Results 1 to 6 of 6

Thread: DirectDraw and forms

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Lebanon
    Posts
    90

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

  2. #2
    Zaei
    Guest
    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.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Lebanon
    Posts
    90
    Thank you both but you didn't answer my first question

  5. #5
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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.
    Harry.

    "From one thing, know ten thousand things."

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Lebanon
    Posts
    90
    Ok thank you.
    I thought there was some way without shutting DDraw and then turning it on back again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width