-
A few questions concerning DirectDraw:
I'm trying to make a tiling effect - use bitmaps of a certain size to fill up the whole screen. What is the best way to approach this?
1) Is it possible to display multiple bitmaps on one surface? If so, how?
2) Is it possible to make the top-left corner of a surface in full-screen mode be anything other than (0,0)?
Thanks for any suggestions.
-
Tiling is quite easy; the onyl tricky bit is doing scrolling.
Basically, have a tiles of a certain size (say 64 by 64), and BltFast them all onto the backbuffer in a tile arrangement. When you scroll, you go along the first tile, so you have to start blitting at a different point on that tile. Hard to explain, simple in practice :)