Jump to content
  • Advertisement
Sign in to follow this  
carmangary

Best way to render to multiple DirectX user controls

This topic is 2565 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

Here is my problem. I want to create several C# UserControls that us DirectX to display some graphics. Each UserControl is operates independently in it's own thread bases on what data is assigned to it. All of the UserControls are instances of the same UserControl class except for one, which is totally different. Currently, I have this implemented by having each UserControl instantiate its own Device (DX9). Is this OK or is there a better way. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
I'll take a very uneducated guess since I never created any C# UserControl neither did I use SlimDX BUT...
couldn't you use a static instance of the device context shared between all controls and then use it to create multiple SwapChain/RenderTargetView for each control? Not sure if it would do any good though. Or maybe use only one very large RenderTargetView and use viewports to render different control in their own zone. Problem would be to only draw the correct portion in the control emplacement afterward.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!