KissPsycho Posted January 24, 2007 Posted January 24, 2007 hi all, i am new to mdx, and i want to know, is it possible to create 3d applications like level editor, mesh viewer using mdx, 1.particularly i want to know is it possible to create multiple view ports using swap chains techniques in mdx tnx Quote
MrPaul Posted January 28, 2007 Posted January 28, 2007 (edited) SwapChain object It sure is. The SwapChain object can be used to create additional swap chains: PresentParameters presParams = new PresentParameters(); //Set up parameters presParams.DeviceWindow = someControl; presParams.Windowed = true; presParams.SwapEffect = SwapEffect.Discard; //etc //Create new swap chain SwapChain newChain = new SwapChain(someDevice, presParams); You can then render to the swap chain by calling the SetRenderTarget method of the Device, setting device properties (eg viewport and transformations), then rendering. Finally the SwapChain object has a Present method to perform the backbuffer flip. Good luck :cool: Edited January 28, 2007 by MrPaul Quote Never trouble another for what you can do for yourself.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.