Jump to content
  • Advertisement
Sign in to follow this  
Luca D

Visual Studio and nVidia CG

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

Hi, I've already tried posting in the "for beginner" section without success. Anyway.. during the installation of the CG Toolkit, I was asked whether I wanted to integrate CG in the Visual Studio IDE. I answered yes but now I can't find any difference in Visual Studio; what should I find? In the installation folder there's "msdev_syntax_highlighting" which contains information to have syntax highlighting. It works, but what about locating errors? In the CG tutorial book it's written it's possible to find syntax errors at compile time. Is it true? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Hello,
you wont find nothing in the IDE wizard if it's that what you are
looking for. To use Cg you need to add the include and lib paths,
the cg.lib and cggl.lib to your project. Then you can include the
neccesary files

#include "Cg\cg.h"
#include "Cg\cggl.h"

The syntax highlightinh works fine. Also in Visual Studio 2008.

best regards,
c-mos

Share this post


Link to post
Share on other sites
Hello,
look here: http://http.developer.nvidia.com/CgTutorial/cg_tutorial_chapter02.html
scrolling down you will find an image with the VS IDE, whose note is:
"Figure 2-3 Locating Error Lines in an Integrated Development Environment".
I'm referring to that.
Thanks!
EDIT: I've just seen a thing in VS.. try to add a .cg file for example into the source folder of a c++ project. This will cause the opening of a dialog box which says: "A custom build rule to build files with extension ".cg" could not be found. Would you like to create a new rule.. etc..".
Maybe this has something to do with the error locating function mentioned in that picture.

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!