doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cg_explicit.h
Go to the documentation of this file.
1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 
29 #ifndef CG_EXTERNAL___H
30 #define CG_EXTERNAL___H
31 
32 
33 
34 typedef int CGbool;
35 typedef struct _CGcontext *CGcontext;
36 typedef struct _CGprogram *CGprogram;
37 typedef struct _CGparameter *CGparameter;
38 
39 
40 typedef enum
41 {
45 
47 
48 
117 
118 
119 } CGtype;
120 
121 typedef enum
122 {
123 
124  CG_TEXUNIT0 = 2048,
125  CG_TEXUNIT1 = 2049,
126  CG_TEXUNIT2 = 2050,
127  CG_TEXUNIT3 = 2051,
128  CG_TEXUNIT4 = 2052,
129  CG_TEXUNIT5 = 2053,
130  CG_TEXUNIT6 = 2054,
131  CG_TEXUNIT7 = 2055,
132  CG_TEXUNIT8 = 2056,
133  CG_TEXUNIT9 = 2057,
134  CG_TEXUNIT10 = 2058,
135  CG_TEXUNIT11 = 2059,
136  CG_TEXUNIT12 = 2060,
137  CG_TEXUNIT13 = 2061,
138  CG_TEXUNIT14 = 2062,
139  CG_TEXUNIT15 = 2063,
140 
141  CG_ATTR0 = 2113,
142  CG_ATTR1 = 2114,
143  CG_ATTR2 = 2115,
144  CG_ATTR3 = 2116,
145  CG_ATTR4 = 2117,
146  CG_ATTR5 = 2118,
147  CG_ATTR6 = 2119,
148  CG_ATTR7 = 2120,
149  CG_ATTR8 = 2121,
150  CG_ATTR9 = 2122,
151  CG_ATTR10 = 2123,
152  CG_ATTR11 = 2124,
153  CG_ATTR12 = 2125,
154  CG_ATTR13 = 2126,
155  CG_ATTR14 = 2127,
156  CG_ATTR15 = 2128,
157 
158  CG_C = 2178,
159 
160  CG_TEX0 = 2179,
161  CG_TEX1 = 2180,
162  CG_TEX2 = 2181,
163  CG_TEX3 = 2192,
164  CG_TEX4 = 2193,
165  CG_TEX5 = 2194,
166  CG_TEX6 = 2195,
167  CG_TEX7 = 2196,
168 
169  CG_HPOS = 2243,
170  CG_COL0 = 2245,
171  CG_COL1 = 2246,
172  CG_COL2 = 2247,
173  CG_COL3 = 2248,
174  CG_PSIZ = 2309,
175  CG_WPOS = 2373,
176 
177  CG_POSITION0 = 2437,
178  CG_POSITION1 = 2438,
179  CG_POSITION2 = 2439,
180  CG_POSITION3 = 2440,
181  CG_POSITION4 = 2441,
182  CG_POSITION5 = 2442,
183  CG_POSITION6 = 2443,
184  CG_POSITION7 = 2444,
185  CG_POSITION8 = 2445,
186  CG_POSITION9 = 2446,
193  CG_DIFFUSE0 = 2501,
194  CG_TANGENT0 = 2565,
195  CG_TANGENT1 = 2566,
196  CG_TANGENT2 = 2567,
197  CG_TANGENT3 = 2568,
198  CG_TANGENT4 = 2569,
199  CG_TANGENT5 = 2570,
200  CG_TANGENT6 = 2571,
201  CG_TANGENT7 = 2572,
202  CG_TANGENT8 = 2573,
203  CG_TANGENT9 = 2574,
204  CG_TANGENT10 = 2575,
205  CG_TANGENT11 = 2576,
206  CG_TANGENT12 = 2577,
207  CG_TANGENT13 = 2578,
208  CG_TANGENT14 = 2579,
209  CG_TANGENT15 = 2580,
210  CG_SPECULAR0 = 2629,
227  CG_COLOR0 = 2757,
228  CG_COLOR1 = 2758,
229  CG_COLOR2 = 2759,
230  CG_COLOR3 = 2760,
231  CG_COLOR4 = 2761,
232  CG_COLOR5 = 2762,
233  CG_COLOR6 = 2763,
234  CG_COLOR7 = 2764,
235  CG_COLOR8 = 2765,
236  CG_COLOR9 = 2766,
237  CG_COLOR10 = 2767,
238  CG_COLOR11 = 2768,
239  CG_COLOR12 = 2769,
240  CG_COLOR13 = 2770,
241  CG_COLOR14 = 2771,
242  CG_COLOR15 = 2772,
243  CG_PSIZE0 = 2821,
244  CG_PSIZE1 = 2822,
245  CG_PSIZE2 = 2823,
246  CG_PSIZE3 = 2824,
247  CG_PSIZE4 = 2825,
248  CG_PSIZE5 = 2826,
249  CG_PSIZE6 = 2827,
250  CG_PSIZE7 = 2828,
251  CG_PSIZE8 = 2829,
252  CG_PSIZE9 = 2830,
253  CG_PSIZE10 = 2831,
254  CG_PSIZE11 = 2832,
255  CG_PSIZE12 = 2833,
256  CG_PSIZE13 = 2834,
257  CG_PSIZE14 = 2835,
258  CG_PSIZE15 = 2836,
259  CG_BINORMAL0 = 2885,
260  CG_BINORMAL1 = 2886,
261  CG_BINORMAL2 = 2887,
262  CG_BINORMAL3 = 2888,
263  CG_BINORMAL4 = 2889,
264  CG_BINORMAL5 = 2890,
265  CG_BINORMAL6 = 2891,
266  CG_BINORMAL7 = 2892,
267  CG_BINORMAL8 = 2893,
268  CG_BINORMAL9 = 2894,
275  CG_FOG0 = 2917,
276  CG_FOG1 = 2918,
277  CG_FOG2 = 2919,
278  CG_FOG3 = 2920,
279  CG_FOG4 = 2921,
280  CG_FOG5 = 2922,
281  CG_FOG6 = 2923,
282  CG_FOG7 = 2924,
283  CG_FOG8 = 2925,
284  CG_FOG9 = 2926,
285  CG_FOG10 = 2927,
286  CG_FOG11 = 2928,
287  CG_FOG12 = 2929,
288  CG_FOG13 = 2930,
289  CG_FOG14 = 2931,
290  CG_FOG15 = 2932,
291  CG_DEPTH0 = 2933,
292  CG_DEPTH1 = 2934,
293  CG_DEPTH2 = 2935,
294  CG_DEPTH3 = 2936,
295  CG_DEPTH4 = 2937,
296  CG_DEPTH5 = 2938,
297  CG_DEPTH6 = 2939,
298  CG_DEPTH7 = 2940,
299  CG_DEPTH8 = 2941,
300  CG_DEPTH9 = 29542,
301  CG_DEPTH10 = 2943,
302  CG_DEPTH11 = 2944,
303  CG_DEPTH12 = 2945,
304  CG_DEPTH13 = 2946,
305  CG_DEPTH14 = 2947,
306  CG_DEPTH15 = 2948,
307  CG_SAMPLE0 = 2949,
308  CG_SAMPLE1 = 2950,
309  CG_SAMPLE2 = 2951,
310  CG_SAMPLE3 = 2952,
311  CG_SAMPLE4 = 2953,
312  CG_SAMPLE5 = 2954,
313  CG_SAMPLE6 = 2955,
314  CG_SAMPLE7 = 2956,
315  CG_SAMPLE8 = 2957,
316  CG_SAMPLE9 = 2958,
317  CG_SAMPLE10 = 2959,
318  CG_SAMPLE11 = 2960,
319  CG_SAMPLE12 = 2961,
320  CG_SAMPLE13 = 2962,
321  CG_SAMPLE14 = 2963,
322  CG_SAMPLE15 = 2964,
339  CG_NORMAL0 = 3092,
340  CG_NORMAL1 = 3093,
341  CG_NORMAL2 = 3094,
342  CG_NORMAL3 = 3095,
343  CG_NORMAL4 = 3096,
344  CG_NORMAL5 = 3097,
345  CG_NORMAL6 = 3098,
346  CG_NORMAL7 = 3099,
347  CG_NORMAL8 = 3100,
348  CG_NORMAL9 = 3101,
349  CG_NORMAL10 = 3102,
350  CG_NORMAL11 = 3103,
351  CG_NORMAL12 = 3104,
352  CG_NORMAL13 = 3105,
353  CG_NORMAL14 = 3106,
354  CG_NORMAL15 = 3107,
355  CG_FOGCOORD = 3156,
356  CG_TEXCOORD0 = 3220,
357  CG_TEXCOORD1 = 3221,
358  CG_TEXCOORD2 = 3222,
359  CG_TEXCOORD3 = 3223,
360  CG_TEXCOORD4 = 3224,
361  CG_TEXCOORD5 = 3225,
362  CG_TEXCOORD6 = 3226,
363  CG_TEXCOORD7 = 3227,
364  CG_TEXCOORD8 = 3228,
365  CG_TEXCOORD9 = 3229,
379  CG_CONST_EYE = 3291,
381 
382 
384 
385  } CGresource;
386 
387  typedef enum
388  {
391 
398 
399 
403 
409 
411  } CGprofile;
412 
413  typedef enum
414  {
415 
416 
441  } CGerror;
442 
443  typedef enum
444  {
445  CG_UNKNOWN = 4096,
457 
460 
463 
466 
467  } CGenum;
468 
469 
470  extern "C" {
471 
473 
474 
475 
479  typedef const char * (*PFNCGGETLASTLISTINGPROC)(CGcontext ctx);
481  CGenum program_type,
482  const char *program,
483  CGprofile profile,
484  const char *entry,
485  const char **args);
487  CGenum program_type,
488  const char *program_file,
489  CGprofile profile,
490  const char *entry,
491  const char **args);
500  typedef const char * (*PFNCGGETPROGRAMSTRINGPROC)(CGprogram prog, CGenum pname);
502  typedef CGparameter (*PFNCGGETNAMEDPARAMETERPROC)(CGprogram prog, const char *name);
511  typedef int (*PFNCGGETARRAYSIZEPROC)(CGparameter param, int dimension);
514  typedef const char * (*PFNCGGETPARAMETERNAMEPROC)(CGparameter param);
516  typedef const char * (*PFNCGGETPARAMETERSEMANTICPROC)(CGparameter param);
524  CGenum value_type,
525  int *nvalues);
526  typedef const char * (*PFNCGGETTYPESTRINGPROC)(CGtype type);
527  typedef CGtype (*PFNCGGETTYPEPROC)(const char *type_string);
528  typedef const char * (*PFNCGGETRESOURCESTRINGPROC)(CGresource resource);
529  typedef CGresource (*PFNCGGETRESOURCEPROC)(const char *resource_string);
530  typedef const char * (*PFNCGGETPROFILESTRINGPROC)(CGprofile profile);
531  typedef CGprofile (*PFNCGGETPROFILEPROC)(const char *profile_string);
533  typedef const char * (*PFNCGGETERRORSTRINGPROC)(CGerror error);
536 
537 
586 
587 
588  }
589 
590 
591 
592  extern "C" {
593 
594  typedef enum
595  {
600 
605 
608 
609  } CGGLenum;
610 
611 
612 
613 
622  float x);
624  float x,
625  float y);
627  float x,
628  float y,
629  float z);
631  float x,
632  float y,
633  float z,
634  float w);
635  typedef void (*PFNCGGLSETPARAMETER1FVPROC)(CGparameter param, const float *v);
636  typedef void (*PFNCGGLSETPARAMETER2FVPROC)(CGparameter param, const float *v);
637  typedef void (*PFNCGGLSETPARAMETER3FVPROC)(CGparameter param, const float *v);
638  typedef void (*PFNCGGLSETPARAMETER4FVPROC)(CGparameter param, const float *v);
640  double x);
642  double x,
643  double y);
645  double x,
646  double y,
647  double z);
649  double x,
650  double y,
651  double z,
652  double w);
653  typedef void (*PFNCGGLSETPARAMETER1DVPROC)(CGparameter param, const double *v);
654  typedef void (*PFNCGGLSETPARAMETER2DVPROC)(CGparameter param, const double *v);
655  typedef void (*PFNCGGLSETPARAMETER3DVPROC)(CGparameter param, const double *v);
656  typedef void (*PFNCGGLSETPARAMETER4DVPROC)(CGparameter param, const double *v);
657  typedef void (*PFNCGGLSETPARAMETER4DVPROC)(CGparameter param, const double *v);
667  long offset,
668  long nelements,
669  const float *v);
671  long offset,
672  long nelements,
673  const float *v);
675  long offset,
676  long nelements,
677  const float *v);
679  long offset,
680  long nelements,
681  const float *v);
683  long offset,
684  long nelements,
685  const double *v);
687  long offset,
688  long nelements,
689  const double *v);
691  long offset,
692  long nelements,
693  const double *v);
695  long offset,
696  long nelements,
697  const double *v);
699  long offset,
700  long nelements,
701  float *v);
703  long offset,
704  long nelements,
705  float *v);
707  long offset,
708  long nelements,
709  float *v);
711  long offset,
712  long nelements,
713  float *v);
715  long offset,
716  long nelements,
717  double *v);
719  long offset,
720  long nelements,
721  double *v);
723  long offset,
724  long nelements,
725  double *v);
727  long offset,
728  long nelements,
729  double *v);
731  GLint fsize,
732  GLenum type,
733  GLsizei stride,
734  GLvoid *pointer);
746  GLenum matrix,
747  GLenum transform);
749  long offset,
750  long nelements,
751  const float *matrices);
753  long offset,
754  long nelements,
755  const float *matrices);
757  long offset,
758  long nelements,
759  const double *matrices);
761  long offset,
762  long nelements,
763  const double *matrices);
765  long offset,
766  long nelements,
767  float *matrices);
769  long offset,
770  long nelements,
771  float *matrices);
773  long offset,
774  long nelements,
775  double *matrices);
777  long offset,
778  long nelements,
779  double *matrices);
785 
786 
859 
860 
861 }
862 
863 bool init_explicit_Cg();
864 
865 #endif
866 
GLenum
Definition: qgl.h:120
PFNCGGLGETPARAMETER4FPROC cgGLGetParameter4f
PFNCGCOPYPROGRAMPROC cgCopyProgram
Definition: cg_explicit.cpp:42
PFNCGGLBINDPROGRAMPROC cgGLBindProgram
Definition: cg_explicit.cpp:90
PFNCGGLSETPARAMETERARRAY1FPROC cgGLSetParameterArray1f
PFNCGGLSETPARAMETERPOINTERPROC cgGLSetParameterPointer
CGGLenum
Definition: cg_explicit.h:594
void(* PFNCGGLSETMATRIXPARAMETERARRAYFCPROC)(CGparameter param, long offset, long nelements, const float *matrices)
Definition: cg_explicit.h:748
void(* PFNCGGLGETMATRIXPARAMETERFCPROC)(CGparameter param, float *matrix)
Definition: cg_explicit.h:744
PFNCGGLSETPARAMETERARRAY1DPROC cgGLSetParameterArray1d
void(* PFNCGGLSETPARAMETERARRAY3DPROC)(CGparameter param, long offset, long nelements, const double *v)
Definition: cg_explicit.h:690
void(* PFNCGGLGETPARAMETER4DPROC)(CGparameter param, double *v)
Definition: cg_explicit.h:665
void(* PFNCGGLSETPARAMETERARRAY1DPROC)(CGparameter param, long offset, long nelements, const double *v)
Definition: cg_explicit.h:682
PFNCGGETNEXTLEAFPARAMETERPROC cgGetNextLeafParameter
Definition: cg_explicit.cpp:56
PFNCGGLGETPARAMETERARRAY4FPROC cgGLGetParameterArray4f
unsigned long(* PFNCGGETPARAMETERRESOURCEINDEXPROC)(CGparameter param)
Definition: cg_explicit.h:519
void(* PFNCGGLBINDPROGRAMPROC)(CGprogram program)
Definition: cg_explicit.h:620
void(* PFNCGGLSETMATRIXPARAMETERDCPROC)(CGparameter param, const double *matrix)
Definition: cg_explicit.h:739
PFNCGGLGETPARAMETERARRAY1DPROC cgGLGetParameterArray1d
idVarDef def_string & type_string
void(* PFNCGGLGETPARAMETER4FPROC)(CGparameter param, float *v)
Definition: cg_explicit.h:661
PFNCGGETPARAMETERRESOURCEPROC cgGetParameterResource
Definition: cg_explicit.cpp:67
GLsizei
Definition: qgl.h:120
PFNCGGLGETPARAMETER4DPROC cgGLGetParameter4d
PFNCGGETPARAMETERVALUESPROC cgGetParameterValues
Definition: cg_explicit.cpp:73
CGresource(* PFNCGGETPARAMETERRESOURCEPROC)(CGparameter param)
Definition: cg_explicit.h:517
void(* PFNCGGLGETPARAMETERARRAY4FPROC)(CGparameter param, long offset, long nelements, float *v)
Definition: cg_explicit.h:710
void(* PFNCGGLGETPARAMETER2DPROC)(CGparameter param, double *v)
Definition: cg_explicit.h:663
PFNCGGETLASTLISTINGPROC cgGetLastListing
Definition: cg_explicit.cpp:39
void(* PFNCGGLGETPARAMETERARRAY1DPROC)(CGparameter param, long offset, long nelements, double *v)
Definition: cg_explicit.h:714
void(* PFNCGGLDISABLETEXTUREPARAMETERPROC)(CGparameter param)
Definition: cg_explicit.h:783
void(* PFNCGCOMPILEPROGRAMPROC)(CGprogram program)
Definition: cg_explicit.h:498
CGresource(* PFNCGGETRESOURCEPROC)(const char *resource_string)
Definition: cg_explicit.h:529
GLenum(* PFNCGGLGETTEXTUREENUMPROC)(CGparameter param)
Definition: cg_explicit.h:784
PFNCGGETRESOURCESTRINGPROC cgGetResourceString
Definition: cg_explicit.cpp:76
int(* PFNCGGETARRAYSIZEPROC)(CGparameter param, int dimension)
Definition: cg_explicit.h:511
const GLdouble * v
Definition: glext.h:2936
void(* PFNCGGLSETPARAMETERPOINTERPROC)(CGparameter param, GLint fsize, GLenum type, GLsizei stride, GLvoid *pointer)
Definition: cg_explicit.h:730
PFNCGGLGETLATESTPROFILEPROC cgGLGetLatestProfile
Definition: cg_explicit.cpp:87
GLuint GLenum matrix
Definition: glext.h:5179
void(* PFNCGGLGETMATRIXPARAMETERDCPROC)(CGparameter param, double *matrix)
Definition: cg_explicit.h:743
PFNCGGLSETPARAMETER2FPROC cgGLSetParameter2f
Definition: cg_explicit.cpp:92
PFNCGGLGETPARAMETER3FPROC cgGLGetParameter3f
void(* PFNCGGLSETPARAMETER4FVPROC)(CGparameter param, const float *v)
Definition: cg_explicit.h:638
void(* PFNCGGLSETPARAMETER3DPROC)(CGparameter param, double x, double y, double z)
Definition: cg_explicit.h:644
PFNCGGLGETPARAMETERARRAY2DPROC cgGLGetParameterArray2d
void(* PFNCGGLSETPARAMETERARRAY4FPROC)(CGparameter param, long offset, long nelements, const float *v)
Definition: cg_explicit.h:678
void(* PFNCGGLSETPARAMETER4DVPROC)(CGparameter param, const double *v)
Definition: cg_explicit.h:656
PFNCGGLENABLEPROFILEPROC cgGLEnableProfile
Definition: cg_explicit.cpp:85
PFNCGGETERRORCALLBACKPROC cgGetErrorCallback
Definition: cg_explicit.cpp:83
CGenum
Definition: cg_explicit.h:443
void(* PFNCGGLSETMATRIXPARAMETERARRAYDRPROC)(CGparameter param, long offset, long nelements, const double *matrices)
Definition: cg_explicit.h:760
GLenum GLint GLint y
Definition: glext.h:2849
GLfloat param
Definition: glext.h:3038
void(* PFNCGGLLOADPROGRAMPROC)(CGprogram program)
Definition: cg_explicit.h:619
CGparameter(* PFNCGGETNAMEDPARAMETERPROC)(CGprogram prog, const char *name)
Definition: cg_explicit.h:502
case const int
Definition: Callbacks.cpp:52
PFNCGGETFIRSTPARAMETERPROC cgGetFirstParameter
Definition: cg_explicit.cpp:53
PFNCGGLSETPARAMETERARRAY2DPROC cgGLSetParameterArray2d
PFNCGGLSETMATRIXPARAMETERDRPROC cgGLSetMatrixParameterdr
PFNCGGLGETPARAMETERARRAY2FPROC cgGLGetParameterArray2f
PFNCGGLGETPARAMETER2FPROC cgGLGetParameter2f
void(* PFNCGGLSETMATRIXPARAMETERDRPROC)(CGparameter param, const double *matrix)
Definition: cg_explicit.h:737
PFNCGGETPROFILEPROC cgGetProfile
Definition: cg_explicit.cpp:79
CGbool(* PFNCGISPROGRAMCOMPILEDPROC)(CGprogram program)
Definition: cg_explicit.h:499
PFNCGISPARAMETERPROC cgIsParameter
Definition: cg_explicit.cpp:63
PFNCGCREATECONTEXTPROC cgCreateContext
Definition: cg_explicit.cpp:36
void(* PFNCGGLSETPARAMETER4FPROC)(CGparameter param, float x, float y, float z, float w)
Definition: cg_explicit.h:630
PFNCGGETPARAMETERRESOURCEINDEXPROC cgGetParameterResourceIndex
Definition: cg_explicit.cpp:69
void(* PFNCGGLGETMATRIXPARAMETERARRAYFCPROC)(CGparameter param, long offset, long nelements, float *matrices)
Definition: cg_explicit.h:764
PFNCGGETFIRSTSTRUCTPARAMETERPROC cgGetFirstStructParameter
Definition: cg_explicit.cpp:57
GLint
Definition: qgl.h:120
PFNCGGLGETPARAMETER1FPROC cgGLGetParameter1f
GLuint GLuint GLsizei GLenum type
Definition: glext.h:2845
PFNCGISPROGRAMCOMPILEDPROC cgIsProgramCompiled
Definition: cg_explicit.cpp:49
PFNCGSETERRORCALLBACKPROC cgSetErrorCallback
Definition: cg_explicit.cpp:82
PFNCGGETERRORSTRINGPROC cgGetErrorString
Definition: cg_explicit.cpp:81
CGprogram(* PFNCGGETFIRSTPROGRAMPROC)(CGcontext ctx)
Definition: cg_explicit.h:494
PFNCGGLLOADPROGRAMPROC cgGLLoadProgram
Definition: cg_explicit.cpp:89
void(* PFNCGGLSETPARAMETER3FVPROC)(CGparameter param, const float *v)
Definition: cg_explicit.h:637
CGprogram(* PFNCGCREATEPROGRAMPROC)(CGcontext ctx, CGenum program_type, const char *program, CGprofile profile, const char *entry, const char **args)
Definition: cg_explicit.h:480
void(* PFNCGGLSETMATRIXPARAMETERFRPROC)(CGparameter param, const float *matrix)
Definition: cg_explicit.h:738
void(* PFNCGGLSETPARAMETER2FVPROC)(CGparameter param, const float *v)
Definition: cg_explicit.h:636
PFNCGGETPARAMETERTYPEPROC cgGetParameterType
Definition: cg_explicit.cpp:65
GLenum GLint x
Definition: glext.h:2849
void(* PFNCGGLSETPARAMETER2DPROC)(CGparameter param, double x, double y)
Definition: cg_explicit.h:641
GLintptr offset
Definition: glext.h:3113
CGprogram(* PFNCGCOPYPROGRAMPROC)(CGprogram program)
Definition: cg_explicit.h:492
const char *(* PFNCGGETTYPESTRINGPROC)(CGtype type)
Definition: cg_explicit.h:526
void(* PFNCGGLGETMATRIXPARAMETERFRPROC)(CGparameter param, float *matrix)
Definition: cg_explicit.h:742
PFNCGGLGETPARAMETERARRAY3DPROC cgGLGetParameterArray3d
CGprofile(* PFNCGGETPROGRAMPROFILEPROC)(CGprogram prog)
Definition: cg_explicit.h:501
void(* PFNCGGLENABLECLIENTSTATEPROC)(CGparameter param)
Definition: cg_explicit.h:735
void(* PFNCGGLSETOPTIMALOPTIONSPROC)(CGprofile profile)
Definition: cg_explicit.h:618
PFNCGGLSETMATRIXPARAMETERARRAYDCPROC cgGLSetMatrixParameterArraydc
void(* PFNCGGLSETPARAMETER1FVPROC)(CGparameter param, const float *v)
Definition: cg_explicit.h:635
CGbool(* PFNCGISPARAMETERPROC)(CGparameter param)
Definition: cg_explicit.h:513
void(* PFNCGGLSETMATRIXPARAMETERARRAYFRPROC)(CGparameter param, long offset, long nelements, const float *matrices)
Definition: cg_explicit.h:752
PFNCGGETTYPESTRINGPROC cgGetTypeString
Definition: cg_explicit.cpp:74
PFNCGCREATEPROGRAMFROMFILEPROC cgCreateProgramFromFile
Definition: cg_explicit.cpp:41
PFNCGGLGETPARAMETER3DPROC cgGLGetParameter3d
void(* PFNCGGETPARAMETERVALUESPROC)(CGparameter param, CGenum value_type, int *nvalues)
Definition: cg_explicit.h:523
PFNCGGETPARAMETERBASERESOURCEPROC cgGetParameterBaseResource
Definition: cg_explicit.cpp:68
PFNCGGLSETPARAMETER2DPROC cgGLSetParameter2d
PFNCGCOMPILEPROGRAMPROC cgCompileProgram
Definition: cg_explicit.cpp:48
PFNCGISCONTEXTPROC cgIsContext
Definition: cg_explicit.cpp:38
PFNCGDESTROYCONTEXTPROC cgDestroyContext
Definition: cg_explicit.cpp:37
void(* PFNCGDESTROYCONTEXTPROC)(CGcontext ctx)
Definition: cg_explicit.h:477
void(* PFNCGGLGETPARAMETERARRAY3DPROC)(CGparameter param, long offset, long nelements, double *v)
Definition: cg_explicit.h:722
GLsizei const GLvoid * pointer
Definition: glext.h:3035
void(* PFNCGGLGETPARAMETERARRAY3FPROC)(CGparameter param, long offset, long nelements, float *v)
Definition: cg_explicit.h:706
GLuint(* PFNCGGLGETTEXTUREPARAMETERPROC)(CGparameter param)
Definition: cg_explicit.h:781
PFNCGGETRESOURCEPROC cgGetResource
Definition: cg_explicit.cpp:77
PFNCGGETPARAMETERPROGRAMPROC cgGetParameterProgram
Definition: cg_explicit.cpp:62
struct _CGcontext * CGcontext
Definition: cg_explicit.h:35
PFNCGGLENABLETEXTUREPARAMETERPROC cgGLEnableTextureParameter
GLuint index
Definition: glext.h:3476
void(* PFNCGGLDISABLEPROFILEPROC)(CGprofile profile)
Definition: cg_explicit.h:616
PFNCGGLSETMATRIXPARAMETERFRPROC cgGLSetMatrixParameterfr
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:3454
PFNCGGLSETPARAMETERARRAY4FPROC cgGLSetParameterArray4f
void(* CGerrorCallbackFunc)(void)
Definition: cg_explicit.h:472
CGcontext(* PFNCGGETPROGRAMCONTEXTPROC)(CGprogram prog)
Definition: cg_explicit.h:496
GLuint program
Definition: glext.h:3473
void(* PFNCGGLGETMATRIXPARAMETERARRAYDCPROC)(CGparameter param, long offset, long nelements, double *matrices)
Definition: cg_explicit.h:772
PFNCGGLGETPARAMETER2DPROC cgGLGetParameter2d
PFNCGGLSETPARAMETER1FPROC cgGLSetParameter1f
Definition: cg_explicit.cpp:91
PFNCGGETTYPEPROC cgGetType
Definition: cg_explicit.cpp:75
PFNCGGLSETPARAMETER2FVPROC cgGLSetParameter2fv
Definition: cg_explicit.cpp:96
CGresource
Definition: cg_explicit.h:121
void(* PFNCGGLSETPARAMETER1FPROC)(CGparameter param, float x)
Definition: cg_explicit.h:621
CGparameter(* PFNCGGETFIRSTLEAFPARAMETERPROC)(CGprogram prog, CGenum name_space)
Definition: cg_explicit.h:505
PFNCGGLGETPARAMETERARRAY4DPROC cgGLGetParameterArray4d
PFNCGGLSETPARAMETERARRAY3DPROC cgGLSetParameterArray3d
PFNCGGLGETMATRIXPARAMETERDRPROC cgGLGetMatrixParameterdr
void(* PFNCGGLGETPARAMETERARRAY2FPROC)(CGparameter param, long offset, long nelements, float *v)
Definition: cg_explicit.h:702
void(* PFNCGGLSETPARAMETER4DPROC)(CGparameter param, double x, double y, double z, double w)
Definition: cg_explicit.h:648
PFNCGGETPARAMETERVARIABILITYPROC cgGetParameterVariability
Definition: cg_explicit.cpp:70
void(* PFNCGGLSETPARAMETER1DPROC)(CGparameter param, double x)
Definition: cg_explicit.h:639
PFNCGGETERRORPROC cgGetError
Definition: cg_explicit.cpp:80
CGprogram(* PFNCGGETNEXTPROGRAMPROC)(CGprogram current)
Definition: cg_explicit.h:495
PFNCGGETFIRSTDEPENDENTPARAMETERPROC cgGetFirstDependentParameter
Definition: cg_explicit.cpp:58
void(* PFNCGGLGETPARAMETER2FPROC)(CGparameter param, float *v)
Definition: cg_explicit.h:659
PFNCGGLENABLECLIENTSTATEPROC cgGLEnableClientState
PFNCGGLSETPARAMETER1FVPROC cgGLSetParameter1fv
Definition: cg_explicit.cpp:95
PFNCGISPROGRAMPROC cgIsProgram
Definition: cg_explicit.cpp:47
void(* PFNCGGLDISABLECLIENTSTATEPROC)(CGparameter param)
Definition: cg_explicit.h:736
PFNCGGLSETMATRIXPARAMETERDCPROC cgGLSetMatrixParameterdc
PFNCGGLGETMATRIXPARAMETERARRAYFCPROC cgGLGetMatrixParameterArrayfc
void(* PFNCGGLGETPARAMETER3DPROC)(CGparameter param, double *v)
Definition: cg_explicit.h:664
PFNCGGLSETPARAMETERARRAY3FPROC cgGLSetParameterArray3f
CGbool(* PFNCGISPROGRAMPROC)(CGprogram program)
Definition: cg_explicit.h:497
void(* PFNCGGLGETPARAMETER1FPROC)(CGparameter param, float *v)
Definition: cg_explicit.h:658
void(* PFNCGGLSETPARAMETERARRAY3FPROC)(CGparameter param, long offset, long nelements, const float *v)
Definition: cg_explicit.h:674
void(* PFNCGGLGETPARAMETER1DPROC)(CGparameter param, double *v)
Definition: cg_explicit.h:662
PFNCGGLSETPARAMETER4FVPROC cgGLSetParameter4fv
Definition: cg_explicit.cpp:98
void(* PFNCGGLSETPARAMETERARRAY2DPROC)(CGparameter param, long offset, long nelements, const double *v)
Definition: cg_explicit.h:686
void(* PFNCGGLENABLETEXTUREPARAMETERPROC)(CGparameter param)
Definition: cg_explicit.h:782
int CGbool
Definition: cg_explicit.h:34
void(* PFNCGGLGETMATRIXPARAMETERARRAYDRPROC)(CGparameter param, long offset, long nelements, double *matrices)
Definition: cg_explicit.h:776
PFNCGGLDISABLETEXTUREPARAMETERPROC cgGLDisableTextureParameter
struct _CGparameter * CGparameter
Definition: cg_explicit.h:37
PFNCGGLGETPARAMETERARRAY1FPROC cgGLGetParameterArray1f
PFNCGGLSETPARAMETER2DVPROC cgGLSetParameter2dv
PFNCGGLSETPARAMETER3DPROC cgGLSetParameter3d
CGbool(* PFNCGGLISPROFILESUPPORTEDPROC)(CGprofile profile)
Definition: cg_explicit.h:614
CGparameter(* PFNCGGETFIRSTSTRUCTPARAMETERPROC)(CGparameter param)
Definition: cg_explicit.h:507
void(* PFNCGGLSETPARAMETER3DVPROC)(CGparameter param, const double *v)
Definition: cg_explicit.h:655
const char *(* PFNCGGETPARAMETERNAMEPROC)(CGparameter param)
Definition: cg_explicit.h:514
CGprogram(* PFNCGCREATEPROGRAMFROMFILEPROC)(CGcontext ctx, CGenum program_type, const char *program_file, CGprofile profile, const char *entry, const char **args)
Definition: cg_explicit.h:486
PFNCGGLSETPARAMETER3FPROC cgGLSetParameter3f
Definition: cg_explicit.cpp:93
CGprogram(* PFNCGGETPARAMETERPROGRAMPROC)(CGparameter prog)
Definition: cg_explicit.h:512
PFNCGGETFIRSTPROGRAMPROC cgGetFirstProgram
Definition: cg_explicit.cpp:44
PFNCGGETPROGRAMPROFILEPROC cgGetProgramProfile
Definition: cg_explicit.cpp:51
void(* PFNCGDESTROYPROGRAMPROC)(CGprogram program)
Definition: cg_explicit.h:493
void(* PFNCGGLGETPARAMETER3FPROC)(CGparameter param, float *v)
Definition: cg_explicit.h:660
void(* PFNCGGLSETSTATEMATRIXPARAMETERPROC)(CGparameter param, GLenum matrix, GLenum transform)
Definition: cg_explicit.h:745
CGenum(* PFNCGGETPARAMETERVARIABILITYPROC)(CGparameter param)
Definition: cg_explicit.h:520
PFNCGGLGETMATRIXPARAMETERARRAYFRPROC cgGLGetMatrixParameterArrayfr
CGparameter(* PFNCGGETARRAYPARAMETERPROC)(CGparameter aparam, int index)
Definition: cg_explicit.h:509
CGtype
Definition: cg_explicit.h:40
PFNCGCREATEPROGRAMPROC cgCreateProgram
Definition: cg_explicit.cpp:40
PFNCGGLSETMATRIXPARAMETERARRAYDRPROC cgGLSetMatrixParameterArraydr
CGparameter(* PFNCGGETFIRSTDEPENDENTPARAMETERPROC)(CGparameter param)
Definition: cg_explicit.h:508
PFNCGGLSETTEXTUREPARAMETERPROC cgGLSetTextureParameter
CGprofile(* PFNCGGETPROFILEPROC)(const char *profile_string)
Definition: cg_explicit.h:531
PFNCGGETARRAYDIMENSIONPROC cgGetArrayDimension
Definition: cg_explicit.cpp:60
PFNCGGLISPROFILESUPPORTEDPROC cgGLIsProfileSupported
Definition: cg_explicit.cpp:84
CGprofile(* PFNCGGLGETLATESTPROFILEPROC)(CGGLenum profile_type)
Definition: cg_explicit.h:617
CGbool(* PFNCGISCONTEXTPROC)(CGcontext ctx)
Definition: cg_explicit.h:478
void(* PFNCGGLSETPARAMETER3FPROC)(CGparameter param, float x, float y, float z)
Definition: cg_explicit.h:626
void(* PFNCGSETERRORCALLBACKPROC)(CGerrorCallbackFunc func)
Definition: cg_explicit.h:534
CGparameter(* PFNCGGETFIRSTPARAMETERPROC)(CGprogram prog, CGenum name_space)
Definition: cg_explicit.h:503
CGerror(* PFNCGGETERRORPROC)(void)
Definition: cg_explicit.h:532
CGresource(* PFNCGGETPARAMETERBASERESOURCEPROC)(CGparameter param)
Definition: cg_explicit.h:518
CGerror
Definition: cg_explicit.h:413
PFNCGGLGETTEXTUREPARAMETERPROC cgGLGetTextureParameter
PFNCGGLGETPARAMETERARRAY3FPROC cgGLGetParameterArray3f
const char *(* PFNCGGETLASTLISTINGPROC)(CGcontext ctx)
Definition: cg_explicit.h:479
PFNCGGETPROFILESTRINGPROC cgGetProfileString
Definition: cg_explicit.cpp:78
CGenum(* PFNCGGETPARAMETERDIRECTIONPROC)(CGparameter param)
Definition: cg_explicit.h:521
GLenum pname
Definition: glext.h:2847
void(* PFNCGGLGETMATRIXPARAMETERDRPROC)(CGparameter param, double *matrix)
Definition: cg_explicit.h:741
PFNCGGLSETMATRIXPARAMETERARRAYFCPROC cgGLSetMatrixParameterArrayfc
CGparameter(* PFNCGGETNEXTPARAMETERPROC)(CGparameter current)
Definition: cg_explicit.h:504
struct _CGprogram * CGprogram
Definition: cg_explicit.h:36
CGtype(* PFNCGGETTYPEPROC)(const char *type_string)
Definition: cg_explicit.h:527
PFNCGGLGETMATRIXPARAMETERARRAYDRPROC cgGLGetMatrixParameterArraydr
CGtype(* PFNCGGETPARAMETERTYPEPROC)(CGparameter param)
Definition: cg_explicit.h:515
PFNCGISPARAMETERREFERENCEDPROC cgIsParameterReferenced
Definition: cg_explicit.cpp:72
const char *(* PFNCGGETRESOURCESTRINGPROC)(CGresource resource)
Definition: cg_explicit.h:528
PFNCGGLSETMATRIXPARAMETERARRAYFRPROC cgGLSetMatrixParameterArrayfr
const GLcharARB * name
Definition: glext.h:3629
void(* PFNCGGLSETPARAMETERARRAY1FPROC)(CGparameter param, long offset, long nelements, const float *v)
Definition: cg_explicit.h:666
PFNCGGLDISABLECLIENTSTATEPROC cgGLDisableClientState
PFNCGGLDISABLEPROFILEPROC cgGLDisableProfile
Definition: cg_explicit.cpp:86
CGcontext(* PFNCGCREATECONTEXTPROC)(void)
Definition: cg_explicit.h:476
PFNCGGETFIRSTLEAFPARAMETERPROC cgGetFirstLeafParameter
Definition: cg_explicit.cpp:55
CGerrorCallbackFunc(* PFNCGGETERRORCALLBACKPROC)(void)
Definition: cg_explicit.h:535
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
PFNCGGETPROGRAMCONTEXTPROC cgGetProgramContext
Definition: cg_explicit.cpp:46
PFNCGGLSETPARAMETER1DPROC cgGLSetParameter1d
Definition: cg_explicit.cpp:99
PFNCGGETNEXTPROGRAMPROC cgGetNextProgram
Definition: cg_explicit.cpp:45
PFNCGDESTROYPROGRAMPROC cgDestroyProgram
Definition: cg_explicit.cpp:43
PFNCGGLSETPARAMETER3FVPROC cgGLSetParameter3fv
Definition: cg_explicit.cpp:97
const char *(* PFNCGGETPROFILESTRINGPROC)(CGprofile profile)
Definition: cg_explicit.h:530
void(* PFNCGGLSETPARAMETER1DVPROC)(CGparameter param, const double *v)
Definition: cg_explicit.h:653
PFNCGGLGETPARAMETER1DPROC cgGLGetParameter1d
int(* PFNCGGETARRAYDIMENSIONPROC)(CGparameter param)
Definition: cg_explicit.h:510
CGparameter(* PFNCGGETNEXTLEAFPARAMETERPROC)(CGparameter current)
Definition: cg_explicit.h:506
void(* PFNCGGLSETTEXTUREPARAMETERPROC)(CGparameter param, GLuint texobj)
Definition: cg_explicit.h:780
CGbool(* PFNCGISPARAMETERREFERENCEDPROC)(CGparameter param)
Definition: cg_explicit.h:522
PFNCGGLSETPARAMETER4FPROC cgGLSetParameter4f
Definition: cg_explicit.cpp:94
PFNCGGLGETMATRIXPARAMETERFCPROC cgGLGetMatrixParameterfc
const char *(* PFNCGGETPARAMETERSEMANTICPROC)(CGparameter param)
Definition: cg_explicit.h:516
GLsizei stride
Definition: glext.h:3035
const char *(* PFNCGGETPROGRAMSTRINGPROC)(CGprogram prog, CGenum pname)
Definition: cg_explicit.h:500
PFNCGGLSETPARAMETER4DPROC cgGLSetParameter4d
PFNCGGETNEXTPARAMETERPROC cgGetNextParameter
Definition: cg_explicit.cpp:54
GLuint GLenum GLenum transform
Definition: glext.h:5179
PFNCGGLSETOPTIMALOPTIONSPROC cgGLSetOptimalOptions
Definition: cg_explicit.cpp:88
CGprofile
Definition: cg_explicit.h:387
void(* PFNCGGLSETPARAMETER2DVPROC)(CGparameter param, const double *v)
Definition: cg_explicit.h:654
void(* PFNCGGLSETMATRIXPARAMETERFCPROC)(CGparameter param, const float *matrix)
Definition: cg_explicit.h:740
void(* PFNCGGLGETPARAMETERARRAY1FPROC)(CGparameter param, long offset, long nelements, float *v)
Definition: cg_explicit.h:698
PFNCGGLSETSTATEMATRIXPARAMETERPROC cgGLSetStateMatrixParameter
PFNCGGLSETPARAMETER3DVPROC cgGLSetParameter3dv
PFNCGGETNAMEDPARAMETERPROC cgGetNamedParameter
Definition: cg_explicit.cpp:52
PFNCGGETARRAYSIZEPROC cgGetArraySize
Definition: cg_explicit.cpp:61
void(* PFNCGGLSETMATRIXPARAMETERARRAYDCPROC)(CGparameter param, long offset, long nelements, const double *matrices)
Definition: cg_explicit.h:756
PFNCGGETARRAYPARAMETERPROC cgGetArrayParameter
Definition: cg_explicit.cpp:59
void(* PFNCGGLSETPARAMETERARRAY2FPROC)(CGparameter param, long offset, long nelements, const float *v)
Definition: cg_explicit.h:670
const char *(* PFNCGGETERRORSTRINGPROC)(CGerror error)
Definition: cg_explicit.h:533
void(* PFNCGGLGETPARAMETERARRAY4DPROC)(CGparameter param, long offset, long nelements, double *v)
Definition: cg_explicit.h:726
PFNCGGLGETMATRIXPARAMETERARRAYDCPROC cgGLGetMatrixParameterArraydc
typedef GLuint(APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC)(GLsizei range)
PFNCGGLGETMATRIXPARAMETERFRPROC cgGLGetMatrixParameterfr
PFNCGGLGETTEXTUREENUMPROC cgGLGetTextureEnum
void(* PFNCGGLSETPARAMETERARRAY4DPROC)(CGparameter param, long offset, long nelements, const double *v)
Definition: cg_explicit.h:694
PFNCGGLSETMATRIXPARAMETERFCPROC cgGLSetMatrixParameterfc
GLdouble GLdouble z
Definition: glext.h:3067
void(* PFNCGGLSETPARAMETER2FPROC)(CGparameter param, float x, float y)
Definition: cg_explicit.h:623
PFNCGGLGETMATRIXPARAMETERDCPROC cgGLGetMatrixParameterdc
PFNCGGETPARAMETERDIRECTIONPROC cgGetParameterDirection
Definition: cg_explicit.cpp:71
PFNCGGETPARAMETERSEMANTICPROC cgGetParameterSemantic
Definition: cg_explicit.cpp:66
PFNCGGETPARAMETERNAMEPROC cgGetParameterName
Definition: cg_explicit.cpp:64
bool init_explicit_Cg()
PFNCGGLSETPARAMETER4DVPROC cgGLSetParameter4dv
PFNCGGETPROGRAMSTRINGPROC cgGetProgramString
Definition: cg_explicit.cpp:50
PFNCGGLSETPARAMETERARRAY4DPROC cgGLSetParameterArray4d
void(* PFNCGGLENABLEPROFILEPROC)(CGprofile profile)
Definition: cg_explicit.h:615
PFNCGGLSETPARAMETER1DVPROC cgGLSetParameter1dv
void(* PFNCGGLGETPARAMETERARRAY2DPROC)(CGparameter param, long offset, long nelements, double *v)
Definition: cg_explicit.h:718
void(* PFNCGGLGETMATRIXPARAMETERARRAYFRPROC)(CGparameter param, long offset, long nelements, float *matrices)
Definition: cg_explicit.h:768
PFNCGGLSETPARAMETERARRAY2FPROC cgGLSetParameterArray2f
GLint fsize
Definition: glext.h:5180