Jump to content
  • Advertisement
Sign in to follow this  
Enerjak

Help with BackBuffers

This topic is 3795 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I figured i'd post a new thread since no one responded in my CUSTOMVERTEX type one. Anyways, i'm trying to use backbuffers. i created a SwapChain and used it to get the back buffer. but it blinks it's like trying to draw both of them at the same time. and it blinks like i just said. and I also have a render function. does anyone maybe know of an exaple that uses back buffers? Cause yeah, i want to be able to render multiple scenes.

Direct3DDevice9->GetBackBuffer(1,0,D3DBACKBUFFER_TYPE_MONO,&BackBuffer);
			Direct3DDevice9->Clear(1,NULL,D3DCLEAR_TARGET,D3DCOLOR_XRGB(0,0,0),1.0f,0);
			SwapChain->GetBackBuffer(3,D3DBACKBUFFER_TYPE_MONO,&BackBuffer);
		
			g_pFonts->DrawTextA(NULL,
				"Hello World....FINALLY",
				22,
				&text,
				DT_CENTER | DT_VCENTER,
				D3DCOLOR_XRGB(255,255,255));
		SwapChain->Present(NULL,NULL,NULL,NULL,NULL);


Share this post


Link to post
Share on other sites
Advertisement
I came accross this recently:
http://www.fairyengine.com/articles/dxmultiviews.htm

Looks like they're swapping z-buffer and setting render targets too. I haven't really read it though.
Hopefully it's helpful though. :)

Share this post


Link to post
Share on other sites
Not to be ungratefull...but isn't there an easier one? :-p I guess i'll have to look it up or just look at the tutorial and study it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!