1. install
download Cg Tool Kit from the following URL, and then install it.

if you have not installed DirectX SDK, installation package recommends you to install it.

2. path setting
Include file -> C:\Program Files\NVIDIA Corporation\Cg\include\Cg
Library file -> C:\Program Files\NVIDIA Corporation\Cg\lib
Executable file -> C:\Program Files\NVIDIA Corporation\Cg\bin

3. additional dependencies
Project property -> Configuration Property -> Linker -> Input ->

Additional Dependencies
cg.lib, cgGL.lib

4. syntacs highlight

to color Cg’s keyword,
copy usertype.dat in “C:\Program Files\NVIDIA Corporation\Cg\msdev_syntax_highlighting” to “…\Common7\IDE”

Then, boot VS and
Tool -> Option -> Text editor -> File Extension
add “cg” and reboot VS


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s