Cg

1. install
download Cg Tool Kit from the following URL, and then install it.
http://developer.nvidia.com/object/cg_download.html

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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s