Skip to main content
added types for modelviewproj/lightpos
Source Link

cgGetNamedParameter

Example code:

CGprogram cgprog;
cgprog = cgCreateProgram(...);
cgGLLoadProgram(cgprog);
cgprog_modelviewprojCGparameter modelviewproj, lightpos;
modelviewproj = cgGetNamedParameter(cgprog, "modelviewproj");
cgprog_lightposlightpos = cgGetNamedParameter(cgprog, "lightpos");

Sample code paraphrased from the book Advanced Game Development with Programmable Graphics Hardware by Watt Policarpo.

cgGetNamedParameter

Example code:

CGprogram cgprog;
cgprog = cgCreateProgram(...);
cgGLLoadProgram(cgprog);
cgprog_modelviewproj = cgGetNamedParameter(cgprog, "modelviewproj");
cgprog_lightpos = cgGetNamedParameter(cgprog, "lightpos");

Sample code paraphrased from the book Advanced Game Development with Programmable Graphics Hardware by Watt Policarpo.

cgGetNamedParameter

Example code:

CGprogram cgprog;
cgprog = cgCreateProgram(...);
cgGLLoadProgram(cgprog);
CGparameter modelviewproj, lightpos;
modelviewproj = cgGetNamedParameter(cgprog, "modelviewproj");
lightpos = cgGetNamedParameter(cgprog, "lightpos");

Sample code paraphrased from the book Advanced Game Development with Programmable Graphics Hardware by Watt Policarpo.

Source Link

cgGetNamedParameter

Example code:

CGprogram cgprog;
cgprog = cgCreateProgram(...);
cgGLLoadProgram(cgprog);
cgprog_modelviewproj = cgGetNamedParameter(cgprog, "modelviewproj");
cgprog_lightpos = cgGetNamedParameter(cgprog, "lightpos");

Sample code paraphrased from the book Advanced Game Development with Programmable Graphics Hardware by Watt Policarpo.