#include <Cg/cg.h> |
#include <Cg/cgGL.h> |
int main(int argc, char *argv[]) |
{ |
CGcontext gcontext = cgCreateContext(); |
CGeffect geffect = cgGetFirstEffect(gcontext); |
CGtechnique gtechnique = cgGetFirstTechnique(geffect); |
CGpass gpass = cgGetFirstPass(gtechnique); |
CGstateassignment gstateassignment = cgGetFirstStateAssignment(gpass); |
CGparameter param = cgGetTextureStateAssignmentValue(gstateassignment); |
cgGLGetTextureParameter(param); //target call |
return 0; |
} |