DirectDraw standalone front/back buffers
Hey
How does one go about creating only a front buffer (for fullscreen mode with page flipping) and then the back buffer (with page flipping).
Or alternatively, can I change the backbuffer format for the call to CreateSurface (the one creating both the back and front buffers)?
Currently I can't get it to work. I want an alpha channel mixed into the RGB channels in my back buffer and I can't get it to work in fullscreen mode (where the backbuffer is attached to the frontbuffer)
Thanx...
Define "can't get it to work". Does it crash? Does it fail to compile? Does it not work as expected? If not, what happens?
And what version of DirectDraw is this? DD7? What exactly are you doing? Any reason you're not using D3D?
And what version of DirectDraw is this? DD7? What exactly are you doing? Any reason you're not using D3D?
Quote:Original post by Evil Steve
Define "can't get it to work". Does it crash? Does it fail to compile? Does it not work as expected? If not, what happens?
And what version of DirectDraw is this? DD7? What exactly are you doing? Any reason you're not using D3D?
DD7. CreateSurface returns INVALID_ARGS or INVALID_CAPS. The only way to create a flipping backbuffer and frontbuffer is to create it in one call, i guess...
I want to create a software rasterizer and after testing I find that DD7 plots the pixel the fastest.
The reason why I want to create the front and back buffers seperately is because I want to add an alpha channel to the backbuffer. I know that it doesn't really matter to create it that way, cause a 32-bit surface, if it has alpha or not, stays 32-bits.
I just want to know if it is possible.
Thanx!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement