Jump to content
  • Advertisement
Sign in to follow this  
PrincessDaisy

nVidia Cg Expanded Interface and DX3D Calls

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

This is really just a sanity check, but I wanted people opinions on the different interfaces available in Cg for DirectX programmers. My engine is currently 100% fixed function, and I have spent the day looking through the Cg documentation as I wish to integrate into my pipeline. But I am slightly confused between the available interfaces, and how they expect your application to behave. The documentation states that the Expanded Interface calls all the required DX functions for you. And this seems to include everything, including setting texture stages. As my engine will, for the foreseeable future, use a cross between fixed and programmable pipeline, I still need the ability to call these functions myself, but using the minimal interface requires a lot of extra little calls all over the place, so I know which I would prefer! So if I use the extended interface, will it matter that I still call the following functions?
d3dDevice->SetTexture(...);

d3dDevice->SetStreamSource(...);
d3dDevice->SetFVF(...);
etc.
Any experiences you might have of using Cg with DX9, and the different interfaces would also be appreciated. Thanks in advance Daisy

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!