Cg Programming/Cg Toolkit

Nvidia's Cg Toolkit is a legacy C API for developing graphics applications with Cg shaders in OpenGL and Direct3D. Implementations are available for Windows, MacOS X, and Linux, and come with numerous examples of Cg shaders.