Advertisement Jump to content
Sign in to follow this  
andrew_05

[.net] Managed DX and Cg

This topic is 4889 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
Advertisement
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!