#include <string>#include <map>#include <Cg/cgGL.h>Go to the source code of this file.
Namespaces | |
| namespace | std |
Classes | |
| class | CgObjects |
| Global Cg Objects maintenance class. More... | |
| class | CgProgram |
| A Cg program. More... | |
| class | CgFragmentProgram |
| class | CgVertexProgram |
| A Cg Vertex program. More... | |
Functions | |
| CgObjects * | Cg () |
| Access to global Cg Objects. | |
| char * | fragmentProgramDir () |
| Get directory where common fragment programs can be found. | |
| char * | vertexProgramDir () |
| Get directory where common vertex programs can be found. | |
| void | releaseCg () |
| Release all resources associated with Cg (excluding shader objects). | |
(c) Bastian Goldluecke, MPI Informatik Saarbruecken. mailto: bg@mpi-sb.mpg.de
Version history:
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Definition in file Cg.h.
|
|
Access to global Cg Objects. Global objects are created when this function is first called. They must be destroyed manually after all shaders are deleted using a call to releaseCg() Definition at line 92 of file Cg.cpp. References g_pCg. Referenced by CgObjects::cgErrorCallback(), CgProgram::setup(), CgVertexProgram::setup(), and CgFragmentProgram::setup().
|
|
|
Get directory where common fragment programs can be found.
|
|
|
Release all resources associated with Cg (excluding shader objects).
Definition at line 102 of file Cg.cpp. References g_pCg.
|
|
|
Get directory where common vertex programs can be found.
|
1.3.6