Sign in to follow this  
Climax777

DirectDraw standalone front/back buffers

Recommended Posts

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...

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this