Archived

This topic is now archived and is closed to further replies.

Direct draw off-screen surfaces

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

three questions, it''s important to me people, cause i was just about to give up 1. when i load my sprites, do i need to load all of them to the off screen (ddraw) surface? 2. is it possible (i just imagine this as more programmatically effective) to load each sprite to it''s own surface? or each group to it''s own surface? (i.e. each character sprites in its own surface?) 3. how many video memory do i have? i mean, for saving sprites. 4. and most importantly, what happends when you try to create a surface bigger than the available video memory? think that the game wont work if the user dont have enough mem? or worse, each time blit twice (hbitmap -> offscreen surface -> back surface)? Gil Micro$oft beta testing: "Does the splash screen works? SHIP IT!!!"

Share this post


Link to post
Share on other sites
1. do either, whatever is best for your specific game. I prefer to load all the frames of a sprite onto one surface.

2. both are possible

3. you can use as much memory as you want, if you run out of video space, it uses system memory. To check how much video memory you have, check the DD_CAPS

4. it uses system memory

Share this post


Link to post
Share on other sites