ZdrojZdroj // / /ˇ http://developer.nvidia.com/object/cg_tutorial_home.html #include #include cgcontext context = cgCreateContext(); C t P ( t tcgprogram program = cgCreateProgram(context, CG_SOURCE, programString, profileprofile, "mainFunction", args); cgGLLoadProgram(program); CGParameter myParameter = cgGetNamedParameter(programCGParameter myParameter cgGetNamedParameter(program, "myParameter"); cgGLSetParameter4fv(myParameter, value); // Spuštění programu cgGLEnableProfile(CG_PROFILE_ARBVP1); cgBindProgram(program);g g p g chGLDisableProfile(CG_PROFILE_ARBVP1); // Zpátky k pevným funkcím cgDestroyProgram(program); ProfilyProfily * arbvp1, vp20, vp30 * fp20, arbfp1, fp30fp20, arbfp1, fp30