Jump to content
  • Advertisement
Sign in to follow this  

[.net] Managed DX and Cg

This topic is 4822 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'm having problems with using more than 1 device with Cg at the same time, I have a form with 2 panels (different sizes) each rendering a different view of a 3d object. The GUI is c# and the Cg calls are managed c++, in theory I just call cgD3D9SetDevice with the device I want before I draw to it, but I get the 2 views drawing either the same thing or the wrong one for that panel on and off. From what I can see cgD3D9SetDevice must not take instant effect when its called, as i've tried locking resources so that the 2 panels definetly cant paint at the same time. I'm not really sure whats going on behind the cgD3D9SetDevice call or how to fix this problem, anyone?

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!