Original Post
Hey guys. Something still hasn''t clicked for me with DirectDraw and surfaces. I''ve read 2 books and DirectX SDK, but I''m not 100% clear on them (I''ve been using DD for about 2 weeks now). Ok, here''s my ''unclear'' area:
I create a primary surface and a backbuffer (dwBackBufferCount). The backbuffer gets attached to the primary surface. Then I create another surface, which all images will get loaded to. Say this surface is 64x64. So load a 64x64 image onto the offscreen surface, then I blt that offscreen surface to the backbuffer. However, where is it located in my backbuffer if the buffer is 640x480 (same as my primary)?
And if I have a background image, what happens to it when I flip it from my primary surface to reveal frame X of my animation? And to copy the next frame from the offscreen surface to the backbuffer, do I have to clear the backbuffer of the flipped primary surface contents?
I ran a little long, but hopefully some of you guys have a general clue what I''m talking about.