Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted (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 by MrPaul
Never trouble another for what you can do for yourself.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...