Original Post
I''m making a 2D adventure game engine using DirectX 8, including character drawing using D3DXSprite on a prerendered 3D background. I was planning to use the stencil buffer for compositing the characters into the scene, so they would not be drawn in places where they were behind foreground scenery. But DirectX seems intent on not letting me initialize the stencil buffer except to a constant value:
* CopyRects mentions that it won''t work with depth or stencil buffers
* Lock also won''t work with stencil buffers
How should I get the stencil data into the buffer to begin with?
Don''t listen to me. I''ve had too much coffee.
Don''t listen to me. I''ve had too much coffee.