Sign in to follow this  
digitalfreak

how to enable back buffering in windowed mode?

Recommended Posts

digitalfreak    164
first I used SetCooperativeLevel to set the cooperate level to DDSCL_NORMAL so that the application runs in windowed mode; then I wrote
ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE | DDSCAPS_FLIP | DDSCAPS_COMPLEX;
ddsd.dwBackBufferCount = 2;

hres = g_pDD->CreateSurface( &ddsd, &g_pDDSPrimary, NULL );

and then I got hres set to DDERR_NOEXCLUSIVEMODE, which means it requires exclusive mode. but if I only use the primary surface, the function succeed. is there any way that I can enable back buffering while still using windowed mode?

Share this post


Link to post
Share on other sites
dave    2187
u using DirectX 9, the only things im aware of having to set for windowed mode for a d3d app to work is the surface format and the windowed option. It should be ok,

Share this post


Link to post
Share on other sites
Dave Hunt    4872
In windowed mode, you have to create an offscreen plain surface as the backbuffer and then blt the surface to the frontbuffer instead of using flip.

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