PDA

Click to See Complete Forum and Search --> : Direct Draw surfaces...easy question!


git
Oct 21st, 2001, 05:56 AM
Hiyas!

I know how to create surfaces in Direct Draw 7 - that's fairly simple. But, how can I destroy their contents and reset them (to reload them totally with new values/images), without stopping Direct X or exiting the program? What code would I need specifcally to do this to any surface? Is it as simple as 'Set SurfaceASDF = Nothing" - does that reset the size, image, etc.?

Thanks for any help!

-Git

PsychoMark
Oct 22nd, 2001, 02:40 AM
Yup, just use Set Surface = Nothing then re-initialize them the same way you did the first time...