/[pcsx2_0.9.7]/trunk/3rdparty/Cg/cg.h
ViewVC logotype

Contents of /trunk/3rdparty/Cg/cg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 290 - (show annotations) (download)
Sat Dec 25 02:51:30 2010 UTC (9 years ago) by william
File MIME type: text/plain
File size: 63819 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4139 local: v0.9.7.283-latest) in ./trunk
1 /*
2 *
3 * Copyright (c) 2002-2010, NVIDIA Corporation.
4 *
5 *
6 *
7 * NVIDIA Corporation("NVIDIA") supplies this software to you in consideration
8 * of your agreement to the following terms, and your use, installation,
9 * modification or redistribution of this NVIDIA software constitutes
10 * acceptance of these terms. If you do not agree with these terms, please do
11 * not use, install, modify or redistribute this NVIDIA software.
12 *
13 *
14 *
15 * In consideration of your agreement to abide by the following terms, and
16 * subject to these terms, NVIDIA grants you a personal, non-exclusive license,
17 * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
18 * Software"), to use, reproduce, modify and redistribute the NVIDIA
19 * Software, with or without modifications, in source and/or binary forms;
20 * provided that if you redistribute the NVIDIA Software, you must retain the
21 * copyright notice of NVIDIA, this notice and the following text and
22 * disclaimers in all such redistributions of the NVIDIA Software. Neither the
23 * name, trademarks, service marks nor logos of NVIDIA Corporation may be used
24 * to endorse or promote products derived from the NVIDIA Software without
25 * specific prior written permission from NVIDIA. Except as expressly stated
26 * in this notice, no other rights or licenses express or implied, are granted
27 * by NVIDIA herein, including but not limited to any patent rights that may be
28 * infringed by your derivative works or by other works in which the NVIDIA
29 * Software may be incorporated. No hardware is licensed hereunder.
30 *
31 *
32 *
33 * THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT
34 * WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
35 * WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
36 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR ITS USE AND OPERATION
37 * EITHER ALONE OR IN COMBINATION WITH OTHER PRODUCTS.
38 *
39 *
40 *
41 * IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
42 * EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, LOST
43 * PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
44 * PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY OUT OF THE USE,
45 * REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE NVIDIA SOFTWARE,
46 * HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING
47 * NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVISED
48 * OF THE POSSIBILITY OF SUCH DAMAGE.
49 *
50 */
51
52 #ifndef _cg_h
53 #define _cg_h
54
55 /*************************************************************************/
56 /*** CG Run-Time Library API ***/
57 /*************************************************************************/
58
59 #define CG_VERSION_NUM 3000
60
61 #ifdef _WIN32
62 # ifndef APIENTRY /* From Win32's <windef.h> */
63 # define CG_APIENTRY_DEFINED
64 # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) || defined(__LCC__)
65 # define APIENTRY __stdcall
66 # else
67 # define APIENTRY
68 # endif
69 # endif
70 # ifndef WINGDIAPI /* From Win32's <wingdi.h> and <winnt.h> */
71 # define CG_WINGDIAPI_DEFINED
72 # define WINGDIAPI __declspec(dllimport)
73 # endif
74 #endif /* _WIN32 */
75
76 /* Set up CG_API for Win32 dllexport or gcc visibility. */
77
78 #ifndef CG_API
79 # ifdef CG_EXPORTS
80 # ifdef _WIN32
81 # define CG_API __declspec(dllexport)
82 # elif defined(__GNUC__) && __GNUC__>=4
83 # define CG_API __attribute__ ((visibility("default")))
84 # elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
85 # define CG_API __global
86 # else
87 # define CG_API
88 # endif
89 # else
90 # define CG_API
91 # endif
92 #endif
93
94 #ifndef CGENTRY
95 # ifdef _WIN32
96 # define CGENTRY __cdecl
97 # else
98 # define CGENTRY
99 # endif
100 #endif
101
102 /*************************************************************************/
103 /*** Data types and enumerants ***/
104 /*************************************************************************/
105
106 typedef int CGbool;
107 typedef struct _CGcontext *CGcontext;
108 typedef struct _CGprogram *CGprogram;
109 typedef struct _CGparameter *CGparameter;
110 typedef struct _CGobj *CGobj;
111 typedef struct _CGbuffer *CGbuffer;
112 typedef struct _CGeffect *CGeffect;
113 typedef struct _CGtechnique *CGtechnique;
114 typedef struct _CGpass *CGpass;
115 typedef struct _CGstate *CGstate;
116 typedef struct _CGstateassignment *CGstateassignment;
117 typedef struct _CGannotation *CGannotation;
118 typedef void *CGhandle;
119
120 #define CG_FALSE ((CGbool)0)
121 #define CG_TRUE ((CGbool)1)
122
123 typedef enum
124 {
125 CG_BEHAVIOR_UNKNOWN = 0,
126 CG_BEHAVIOR_LATEST = 1, /* latest behavior supported at runtime */
127 CG_BEHAVIOR_2200 = 1000, /* default behavior */
128 CG_BEHAVIOR_3000 = 2000,
129 CG_BEHAVIOR_CURRENT = CG_BEHAVIOR_3000 /* latest behavior supported at compile time */
130 } CGbehavior;
131
132 typedef enum
133 {
134 CG_UNKNOWN_TYPE = 0,
135 CG_ARRAY = 2,
136 CG_STRING = 1135,
137 CG_STRUCT = 1,
138 CG_TYPELESS_STRUCT = 3,
139 CG_TEXTURE = 1137,
140 CG_PIXELSHADER_TYPE = 1142,
141 CG_PROGRAM_TYPE = 1136,
142 CG_VERTEXSHADER_TYPE = 1141,
143 CG_TYPE_START_ENUM = 1024,
144 CG_SAMPLER = 1143,
145 CG_SAMPLER1D = 1065,
146 CG_SAMPLER1DARRAY = 1138,
147 CG_SAMPLER1DSHADOW = 1313,
148 CG_SAMPLER2D = 1066,
149 CG_SAMPLER2DARRAY = 1139,
150 CG_SAMPLER2DSHADOW = 1314,
151 CG_SAMPLER3D = 1067,
152 CG_SAMPLERBUF = 1144,
153 CG_SAMPLERCUBE = 1069,
154 CG_SAMPLERCUBEARRAY = 1140,
155 CG_SAMPLERRECT = 1068,
156 CG_SAMPLERRECTSHADOW = 1315,
157 CG_BOOL = 1114,
158 CG_BOOL1 = 1115,
159 CG_BOOL2 = 1116,
160 CG_BOOL3 = 1117,
161 CG_BOOL4 = 1118,
162 CG_BOOL1x1 = 1119,
163 CG_BOOL1x2 = 1120,
164 CG_BOOL1x3 = 1121,
165 CG_BOOL1x4 = 1122,
166 CG_BOOL2x1 = 1123,
167 CG_BOOL2x2 = 1124,
168 CG_BOOL2x3 = 1125,
169 CG_BOOL2x4 = 1126,
170 CG_BOOL3x1 = 1127,
171 CG_BOOL3x2 = 1128,
172 CG_BOOL3x3 = 1129,
173 CG_BOOL3x4 = 1130,
174 CG_BOOL4x1 = 1131,
175 CG_BOOL4x2 = 1132,
176 CG_BOOL4x3 = 1133,
177 CG_BOOL4x4 = 1134,
178 CG_CHAR = 1166,
179 CG_CHAR1 = 1167,
180 CG_CHAR2 = 1168,
181 CG_CHAR3 = 1169,
182 CG_CHAR4 = 1170,
183 CG_CHAR1x1 = 1171,
184 CG_CHAR1x2 = 1172,
185 CG_CHAR1x3 = 1173,
186 CG_CHAR1x4 = 1174,
187 CG_CHAR2x1 = 1175,
188 CG_CHAR2x2 = 1176,
189 CG_CHAR2x3 = 1177,
190 CG_CHAR2x4 = 1178,
191 CG_CHAR3x1 = 1179,
192 CG_CHAR3x2 = 1180,
193 CG_CHAR3x3 = 1181,
194 CG_CHAR3x4 = 1182,
195 CG_CHAR4x1 = 1183,
196 CG_CHAR4x2 = 1184,
197 CG_CHAR4x3 = 1185,
198 CG_CHAR4x4 = 1186,
199 CG_DOUBLE = 1145,
200 CG_DOUBLE1 = 1146,
201 CG_DOUBLE2 = 1147,
202 CG_DOUBLE3 = 1148,
203 CG_DOUBLE4 = 1149,
204 CG_DOUBLE1x1 = 1150,
205 CG_DOUBLE1x2 = 1151,
206 CG_DOUBLE1x3 = 1152,
207 CG_DOUBLE1x4 = 1153,
208 CG_DOUBLE2x1 = 1154,
209 CG_DOUBLE2x2 = 1155,
210 CG_DOUBLE2x3 = 1156,
211 CG_DOUBLE2x4 = 1157,
212 CG_DOUBLE3x1 = 1158,
213 CG_DOUBLE3x2 = 1159,
214 CG_DOUBLE3x3 = 1160,
215 CG_DOUBLE3x4 = 1161,
216 CG_DOUBLE4x1 = 1162,
217 CG_DOUBLE4x2 = 1163,
218 CG_DOUBLE4x3 = 1164,
219 CG_DOUBLE4x4 = 1165,
220 CG_FIXED = 1070,
221 CG_FIXED1 = 1092,
222 CG_FIXED2 = 1071,
223 CG_FIXED3 = 1072,
224 CG_FIXED4 = 1073,
225 CG_FIXED1x1 = 1074,
226 CG_FIXED1x2 = 1075,
227 CG_FIXED1x3 = 1076,
228 CG_FIXED1x4 = 1077,
229 CG_FIXED2x1 = 1078,
230 CG_FIXED2x2 = 1079,
231 CG_FIXED2x3 = 1080,
232 CG_FIXED2x4 = 1081,
233 CG_FIXED3x1 = 1082,
234 CG_FIXED3x2 = 1083,
235 CG_FIXED3x3 = 1084,
236 CG_FIXED3x4 = 1085,
237 CG_FIXED4x1 = 1086,
238 CG_FIXED4x2 = 1087,
239 CG_FIXED4x3 = 1088,
240 CG_FIXED4x4 = 1089,
241 CG_FLOAT = 1045,
242 CG_FLOAT1 = 1091,
243 CG_FLOAT2 = 1046,
244 CG_FLOAT3 = 1047,
245 CG_FLOAT4 = 1048,
246 CG_FLOAT1x1 = 1049,
247 CG_FLOAT1x2 = 1050,
248 CG_FLOAT1x3 = 1051,
249 CG_FLOAT1x4 = 1052,
250 CG_FLOAT2x1 = 1053,
251 CG_FLOAT2x2 = 1054,
252 CG_FLOAT2x3 = 1055,
253 CG_FLOAT2x4 = 1056,
254 CG_FLOAT3x1 = 1057,
255 CG_FLOAT3x2 = 1058,
256 CG_FLOAT3x3 = 1059,
257 CG_FLOAT3x4 = 1060,
258 CG_FLOAT4x1 = 1061,
259 CG_FLOAT4x2 = 1062,
260 CG_FLOAT4x3 = 1063,
261 CG_FLOAT4x4 = 1064,
262 CG_HALF = 1025,
263 CG_HALF1 = 1090,
264 CG_HALF2 = 1026,
265 CG_HALF3 = 1027,
266 CG_HALF4 = 1028,
267 CG_HALF1x1 = 1029,
268 CG_HALF1x2 = 1030,
269 CG_HALF1x3 = 1031,
270 CG_HALF1x4 = 1032,
271 CG_HALF2x1 = 1033,
272 CG_HALF2x2 = 1034,
273 CG_HALF2x3 = 1035,
274 CG_HALF2x4 = 1036,
275 CG_HALF3x1 = 1037,
276 CG_HALF3x2 = 1038,
277 CG_HALF3x3 = 1039,
278 CG_HALF3x4 = 1040,
279 CG_HALF4x1 = 1041,
280 CG_HALF4x2 = 1042,
281 CG_HALF4x3 = 1043,
282 CG_HALF4x4 = 1044,
283 CG_INT = 1093,
284 CG_INT1 = 1094,
285 CG_INT2 = 1095,
286 CG_INT3 = 1096,
287 CG_INT4 = 1097,
288 CG_INT1x1 = 1098,
289 CG_INT1x2 = 1099,
290 CG_INT1x3 = 1100,
291 CG_INT1x4 = 1101,
292 CG_INT2x1 = 1102,
293 CG_INT2x2 = 1103,
294 CG_INT2x3 = 1104,
295 CG_INT2x4 = 1105,
296 CG_INT3x1 = 1106,
297 CG_INT3x2 = 1107,
298 CG_INT3x3 = 1108,
299 CG_INT3x4 = 1109,
300 CG_INT4x1 = 1110,
301 CG_INT4x2 = 1111,
302 CG_INT4x3 = 1112,
303 CG_INT4x4 = 1113,
304 CG_LONG = 1271,
305 CG_LONG1 = 1272,
306 CG_LONG2 = 1273,
307 CG_LONG3 = 1274,
308 CG_LONG4 = 1275,
309 CG_LONG1x1 = 1276,
310 CG_LONG1x2 = 1277,
311 CG_LONG1x3 = 1278,
312 CG_LONG1x4 = 1279,
313 CG_LONG2x1 = 1280,
314 CG_LONG2x2 = 1281,
315 CG_LONG2x3 = 1282,
316 CG_LONG2x4 = 1283,
317 CG_LONG3x1 = 1284,
318 CG_LONG3x2 = 1285,
319 CG_LONG3x3 = 1286,
320 CG_LONG3x4 = 1287,
321 CG_LONG4x1 = 1288,
322 CG_LONG4x2 = 1289,
323 CG_LONG4x3 = 1290,
324 CG_LONG4x4 = 1291,
325 CG_SHORT = 1208,
326 CG_SHORT1 = 1209,
327 CG_SHORT2 = 1210,
328 CG_SHORT3 = 1211,
329 CG_SHORT4 = 1212,
330 CG_SHORT1x1 = 1213,
331 CG_SHORT1x2 = 1214,
332 CG_SHORT1x3 = 1215,
333 CG_SHORT1x4 = 1216,
334 CG_SHORT2x1 = 1217,
335 CG_SHORT2x2 = 1218,
336 CG_SHORT2x3 = 1219,
337 CG_SHORT2x4 = 1220,
338 CG_SHORT3x1 = 1221,
339 CG_SHORT3x2 = 1222,
340 CG_SHORT3x3 = 1223,
341 CG_SHORT3x4 = 1224,
342 CG_SHORT4x1 = 1225,
343 CG_SHORT4x2 = 1226,
344 CG_SHORT4x3 = 1227,
345 CG_SHORT4x4 = 1228,
346 CG_UCHAR = 1187,
347 CG_UCHAR1 = 1188,
348 CG_UCHAR2 = 1189,
349 CG_UCHAR3 = 1190,
350 CG_UCHAR4 = 1191,
351 CG_UCHAR1x1 = 1192,
352 CG_UCHAR1x2 = 1193,
353 CG_UCHAR1x3 = 1194,
354 CG_UCHAR1x4 = 1195,
355 CG_UCHAR2x1 = 1196,
356 CG_UCHAR2x2 = 1197,
357 CG_UCHAR2x3 = 1198,
358 CG_UCHAR2x4 = 1199,
359 CG_UCHAR3x1 = 1200,
360 CG_UCHAR3x2 = 1201,
361 CG_UCHAR3x3 = 1202,
362 CG_UCHAR3x4 = 1203,
363 CG_UCHAR4x1 = 1204,
364 CG_UCHAR4x2 = 1205,
365 CG_UCHAR4x3 = 1206,
366 CG_UCHAR4x4 = 1207,
367 CG_UINT = 1250,
368 CG_UINT1 = 1251,
369 CG_UINT2 = 1252,
370 CG_UINT3 = 1253,
371 CG_UINT4 = 1254,
372 CG_UINT1x1 = 1255,
373 CG_UINT1x2 = 1256,
374 CG_UINT1x3 = 1257,
375 CG_UINT1x4 = 1258,
376 CG_UINT2x1 = 1259,
377 CG_UINT2x2 = 1260,
378 CG_UINT2x3 = 1261,
379 CG_UINT2x4 = 1262,
380 CG_UINT3x1 = 1263,
381 CG_UINT3x2 = 1264,
382 CG_UINT3x3 = 1265,
383 CG_UINT3x4 = 1266,
384 CG_UINT4x1 = 1267,
385 CG_UINT4x2 = 1268,
386 CG_UINT4x3 = 1269,
387 CG_UINT4x4 = 1270,
388 CG_ULONG = 1292,
389 CG_ULONG1 = 1293,
390 CG_ULONG2 = 1294,
391 CG_ULONG3 = 1295,
392 CG_ULONG4 = 1296,
393 CG_ULONG1x1 = 1297,
394 CG_ULONG1x2 = 1298,
395 CG_ULONG1x3 = 1299,
396 CG_ULONG1x4 = 1300,
397 CG_ULONG2x1 = 1301,
398 CG_ULONG2x2 = 1302,
399 CG_ULONG2x3 = 1303,
400 CG_ULONG2x4 = 1304,
401 CG_ULONG3x1 = 1305,
402 CG_ULONG3x2 = 1306,
403 CG_ULONG3x3 = 1307,
404 CG_ULONG3x4 = 1308,
405 CG_ULONG4x1 = 1309,
406 CG_ULONG4x2 = 1310,
407 CG_ULONG4x3 = 1311,
408 CG_ULONG4x4 = 1312,
409 CG_USHORT = 1229,
410 CG_USHORT1 = 1230,
411 CG_USHORT2 = 1231,
412 CG_USHORT3 = 1232,
413 CG_USHORT4 = 1233,
414 CG_USHORT1x1 = 1234,
415 CG_USHORT1x2 = 1235,
416 CG_USHORT1x3 = 1236,
417 CG_USHORT1x4 = 1237,
418 CG_USHORT2x1 = 1238,
419 CG_USHORT2x2 = 1239,
420 CG_USHORT2x3 = 1240,
421 CG_USHORT2x4 = 1241,
422 CG_USHORT3x1 = 1242,
423 CG_USHORT3x2 = 1243,
424 CG_USHORT3x3 = 1244,
425 CG_USHORT3x4 = 1245,
426 CG_USHORT4x1 = 1246,
427 CG_USHORT4x2 = 1247,
428 CG_USHORT4x3 = 1248,
429 CG_USHORT4x4 = 1249
430 } CGtype;
431
432 typedef enum
433 {
434 CG_TEXUNIT0 = 2048,
435 CG_TEXUNIT1 = 2049,
436 CG_TEXUNIT2 = 2050,
437 CG_TEXUNIT3 = 2051,
438 CG_TEXUNIT4 = 2052,
439 CG_TEXUNIT5 = 2053,
440 CG_TEXUNIT6 = 2054,
441 CG_TEXUNIT7 = 2055,
442 CG_TEXUNIT8 = 2056,
443 CG_TEXUNIT9 = 2057,
444 CG_TEXUNIT10 = 2058,
445 CG_TEXUNIT11 = 2059,
446 CG_TEXUNIT12 = 2060,
447 CG_TEXUNIT13 = 2061,
448 CG_TEXUNIT14 = 2062,
449 CG_TEXUNIT15 = 2063,
450 CG_TEXUNIT16 = 4624,
451 CG_TEXUNIT17 = 4625,
452 CG_TEXUNIT18 = 4626,
453 CG_TEXUNIT19 = 4627,
454 CG_TEXUNIT20 = 4628,
455 CG_TEXUNIT21 = 4629,
456 CG_TEXUNIT22 = 4630,
457 CG_TEXUNIT23 = 4631,
458 CG_TEXUNIT24 = 4632,
459 CG_TEXUNIT25 = 4633,
460 CG_TEXUNIT26 = 4634,
461 CG_TEXUNIT27 = 4635,
462 CG_TEXUNIT28 = 4636,
463 CG_TEXUNIT29 = 4637,
464 CG_TEXUNIT30 = 4638,
465 CG_TEXUNIT31 = 4639,
466 CG_BUFFER0 = 2064,
467 CG_BUFFER1 = 2065,
468 CG_BUFFER2 = 2066,
469 CG_BUFFER3 = 2067,
470 CG_BUFFER4 = 2068,
471 CG_BUFFER5 = 2069,
472 CG_BUFFER6 = 2070,
473 CG_BUFFER7 = 2071,
474 CG_BUFFER8 = 2072,
475 CG_BUFFER9 = 2073,
476 CG_BUFFER10 = 2074,
477 CG_BUFFER11 = 2075,
478 CG_ATTR0 = 2113,
479 CG_ATTR1 = 2114,
480 CG_ATTR2 = 2115,
481 CG_ATTR3 = 2116,
482 CG_ATTR4 = 2117,
483 CG_ATTR5 = 2118,
484 CG_ATTR6 = 2119,
485 CG_ATTR7 = 2120,
486 CG_ATTR8 = 2121,
487 CG_ATTR9 = 2122,
488 CG_ATTR10 = 2123,
489 CG_ATTR11 = 2124,
490 CG_ATTR12 = 2125,
491 CG_ATTR13 = 2126,
492 CG_ATTR14 = 2127,
493 CG_ATTR15 = 2128,
494 CG_C = 2178,
495 CG_TEX0 = 2179,
496 CG_TEX1 = 2180,
497 CG_TEX2 = 2181,
498 CG_TEX3 = 2192,
499 CG_TEX4 = 2193,
500 CG_TEX5 = 2194,
501 CG_TEX6 = 2195,
502 CG_TEX7 = 2196,
503 CG_HPOS = 2243,
504 CG_COL0 = 2245,
505 CG_COL1 = 2246,
506 CG_COL2 = 2247,
507 CG_COL3 = 2248,
508 CG_PSIZ = 2309,
509 CG_CLP0 = 2310,
510 CG_CLP1 = 2311,
511 CG_CLP2 = 2312,
512 CG_CLP3 = 2313,
513 CG_CLP4 = 2314,
514 CG_CLP5 = 2315,
515 CG_WPOS = 2373,
516 CG_POINTCOORD = 2374,
517 CG_POSITION0 = 2437,
518 CG_POSITION1 = 2438,
519 CG_POSITION2 = 2439,
520 CG_POSITION3 = 2440,
521 CG_POSITION4 = 2441,
522 CG_POSITION5 = 2442,
523 CG_POSITION6 = 2443,
524 CG_POSITION7 = 2444,
525 CG_POSITION8 = 2445,
526 CG_POSITION9 = 2446,
527 CG_POSITION10 = 2447,
528 CG_POSITION11 = 2448,
529 CG_POSITION12 = 2449,
530 CG_POSITION13 = 2450,
531 CG_POSITION14 = 2451,
532 CG_POSITION15 = 2452,
533 CG_DIFFUSE0 = 2501,
534 CG_TANGENT0 = 2565,
535 CG_TANGENT1 = 2566,
536 CG_TANGENT2 = 2567,
537 CG_TANGENT3 = 2568,
538 CG_TANGENT4 = 2569,
539 CG_TANGENT5 = 2570,
540 CG_TANGENT6 = 2571,
541 CG_TANGENT7 = 2572,
542 CG_TANGENT8 = 2573,
543 CG_TANGENT9 = 2574,
544 CG_TANGENT10 = 2575,
545 CG_TANGENT11 = 2576,
546 CG_TANGENT12 = 2577,
547 CG_TANGENT13 = 2578,
548 CG_TANGENT14 = 2579,
549 CG_TANGENT15 = 2580,
550 CG_SPECULAR0 = 2629,
551 CG_BLENDINDICES0 = 2693,
552 CG_BLENDINDICES1 = 2694,
553 CG_BLENDINDICES2 = 2695,
554 CG_BLENDINDICES3 = 2696,
555 CG_BLENDINDICES4 = 2697,
556 CG_BLENDINDICES5 = 2698,
557 CG_BLENDINDICES6 = 2699,
558 CG_BLENDINDICES7 = 2700,
559 CG_BLENDINDICES8 = 2701,
560 CG_BLENDINDICES9 = 2702,
561 CG_BLENDINDICES10 = 2703,
562 CG_BLENDINDICES11 = 2704,
563 CG_BLENDINDICES12 = 2705,
564 CG_BLENDINDICES13 = 2706,
565 CG_BLENDINDICES14 = 2707,
566 CG_BLENDINDICES15 = 2708,
567 CG_COLOR0 = 2757,
568 CG_COLOR1 = 2758,
569 CG_COLOR2 = 2759,
570 CG_COLOR3 = 2760,
571 CG_COLOR4 = 2761,
572 CG_COLOR5 = 2762,
573 CG_COLOR6 = 2763,
574 CG_COLOR7 = 2764,
575 CG_COLOR8 = 2765,
576 CG_COLOR9 = 2766,
577 CG_COLOR10 = 2767,
578 CG_COLOR11 = 2768,
579 CG_COLOR12 = 2769,
580 CG_COLOR13 = 2770,
581 CG_COLOR14 = 2771,
582 CG_COLOR15 = 2772,
583 CG_PSIZE0 = 2821,
584 CG_PSIZE1 = 2822,
585 CG_PSIZE2 = 2823,
586 CG_PSIZE3 = 2824,
587 CG_PSIZE4 = 2825,
588 CG_PSIZE5 = 2826,
589 CG_PSIZE6 = 2827,
590 CG_PSIZE7 = 2828,
591 CG_PSIZE8 = 2829,
592 CG_PSIZE9 = 2830,
593 CG_PSIZE10 = 2831,
594 CG_PSIZE11 = 2832,
595 CG_PSIZE12 = 2833,
596 CG_PSIZE13 = 2834,
597 CG_PSIZE14 = 2835,
598 CG_PSIZE15 = 2836,
599 CG_BINORMAL0 = 2885,
600 CG_BINORMAL1 = 2886,
601 CG_BINORMAL2 = 2887,
602 CG_BINORMAL3 = 2888,
603 CG_BINORMAL4 = 2889,
604 CG_BINORMAL5 = 2890,
605 CG_BINORMAL6 = 2891,
606 CG_BINORMAL7 = 2892,
607 CG_BINORMAL8 = 2893,
608 CG_BINORMAL9 = 2894,
609 CG_BINORMAL10 = 2895,
610 CG_BINORMAL11 = 2896,
611 CG_BINORMAL12 = 2897,
612 CG_BINORMAL13 = 2898,
613 CG_BINORMAL14 = 2899,
614 CG_BINORMAL15 = 2900,
615 CG_FOG0 = 2917,
616 CG_FOG1 = 2918,
617 CG_FOG2 = 2919,
618 CG_FOG3 = 2920,
619 CG_FOG4 = 2921,
620 CG_FOG5 = 2922,
621 CG_FOG6 = 2923,
622 CG_FOG7 = 2924,
623 CG_FOG8 = 2925,
624 CG_FOG9 = 2926,
625 CG_FOG10 = 2927,
626 CG_FOG11 = 2928,
627 CG_FOG12 = 2929,
628 CG_FOG13 = 2930,
629 CG_FOG14 = 2931,
630 CG_FOG15 = 2932,
631 CG_DEPTH0 = 2933,
632 CG_DEPTH1 = 2934,
633 CG_DEPTH2 = 2935,
634 CG_DEPTH3 = 2936,
635 CG_DEPTH4 = 2937,
636 CG_DEPTH5 = 2938,
637 CG_DEPTH6 = 2939,
638 CG_DEPTH7 = 2940,
639 CG_DEPTH8 = 2941,
640 CG_DEPTH9 = 2942,
641 CG_DEPTH10 = 2943,
642 CG_DEPTH11 = 2944,
643 CG_DEPTH12 = 2945,
644 CG_DEPTH13 = 2946,
645 CG_DEPTH14 = 2947,
646 CG_DEPTH15 = 2948,
647 CG_SAMPLE0 = 2949,
648 CG_SAMPLE1 = 2950,
649 CG_SAMPLE2 = 2951,
650 CG_SAMPLE3 = 2952,
651 CG_SAMPLE4 = 2953,
652 CG_SAMPLE5 = 2954,
653 CG_SAMPLE6 = 2955,
654 CG_SAMPLE7 = 2956,
655 CG_SAMPLE8 = 2957,
656 CG_SAMPLE9 = 2958,
657 CG_SAMPLE10 = 2959,
658 CG_SAMPLE11 = 2960,
659 CG_SAMPLE12 = 2961,
660 CG_SAMPLE13 = 2962,
661 CG_SAMPLE14 = 2963,
662 CG_SAMPLE15 = 2964,
663 CG_BLENDWEIGHT0 = 3028,
664 CG_BLENDWEIGHT1 = 3029,
665 CG_BLENDWEIGHT2 = 3030,
666 CG_BLENDWEIGHT3 = 3031,
667 CG_BLENDWEIGHT4 = 3032,
668 CG_BLENDWEIGHT5 = 3033,
669 CG_BLENDWEIGHT6 = 3034,
670 CG_BLENDWEIGHT7 = 3035,
671 CG_BLENDWEIGHT8 = 3036,
672 CG_BLENDWEIGHT9 = 3037,
673 CG_BLENDWEIGHT10 = 3038,
674 CG_BLENDWEIGHT11 = 3039,
675 CG_BLENDWEIGHT12 = 3040,
676 CG_BLENDWEIGHT13 = 3041,
677 CG_BLENDWEIGHT14 = 3042,
678 CG_BLENDWEIGHT15 = 3043,
679 CG_NORMAL0 = 3092,
680 CG_NORMAL1 = 3093,
681 CG_NORMAL2 = 3094,
682 CG_NORMAL3 = 3095,
683 CG_NORMAL4 = 3096,
684 CG_NORMAL5 = 3097,
685 CG_NORMAL6 = 3098,
686 CG_NORMAL7 = 3099,
687 CG_NORMAL8 = 3100,
688 CG_NORMAL9 = 3101,
689 CG_NORMAL10 = 3102,
690 CG_NORMAL11 = 3103,
691 CG_NORMAL12 = 3104,
692 CG_NORMAL13 = 3105,
693 CG_NORMAL14 = 3106,
694 CG_NORMAL15 = 3107,
695 CG_FOGCOORD = 3156,
696 CG_TEXCOORD0 = 3220,
697 CG_TEXCOORD1 = 3221,
698 CG_TEXCOORD2 = 3222,
699 CG_TEXCOORD3 = 3223,
700 CG_TEXCOORD4 = 3224,
701 CG_TEXCOORD5 = 3225,
702 CG_TEXCOORD6 = 3226,
703 CG_TEXCOORD7 = 3227,
704 CG_TEXCOORD8 = 3228,
705 CG_TEXCOORD9 = 3229,
706 CG_TEXCOORD10 = 3230,
707 CG_TEXCOORD11 = 3231,
708 CG_TEXCOORD12 = 3232,
709 CG_TEXCOORD13 = 3233,
710 CG_TEXCOORD14 = 3234,
711 CG_TEXCOORD15 = 3235,
712 CG_COMBINER_CONST0 = 3284,
713 CG_COMBINER_CONST1 = 3285,
714 CG_COMBINER_STAGE_CONST0 = 3286,
715 CG_COMBINER_STAGE_CONST1 = 3287,
716 CG_OFFSET_TEXTURE_MATRIX = 3288,
717 CG_OFFSET_TEXTURE_SCALE = 3289,
718 CG_OFFSET_TEXTURE_BIAS = 3290,
719 CG_CONST_EYE = 3291,
720 CG_COVERAGE = 3292,
721 CG_TESSFACTOR = 3255,
722 CG_GLSL_UNIFORM = 3300,
723 CG_GLSL_ATTRIB = 3301,
724 CG_ENV = 3302,
725 CG_HLSL_UNIFORM = 3559,
726 CG_HLSL_VARYING = 3560,
727 CG_SAMPLER_RES = 3561,
728 CG_LASTCOL0 = 4400,
729 CG_LASTCOL1 = 4401,
730 CG_LASTCOL2 = 4402,
731 CG_LASTCOL3 = 4403,
732 CG_LASTCOL4 = 4404,
733 CG_LASTCOL5 = 4405,
734 CG_LASTCOL6 = 4406,
735 CG_LASTCOL7 = 4407,
736 CG_FACE = 4410,
737 CG_PRIMITIVEID = 4411,
738 CG_INSTANCEID = 4412,
739 CG_SAMPLEID = 4413,
740 CG_VERTEXID = 4414,
741 CG_LAYER = 4415,
742 CG_SAMPLEMASK = 4416,
743 CG_CONTROLPOINTID = 4417,
744 CG_EDGETESS = 4418,
745 CG_INNERTESS = 4419,
746 CG_UNDEFINED = 3256
747 } CGresource;
748
749 typedef enum
750 {
751 CG_PROFILE_UNKNOWN = 6145,
752 CG_PROFILE_VP20 = 6146,
753 CG_PROFILE_FP20 = 6147,
754 CG_PROFILE_VP30 = 6148,
755 CG_PROFILE_FP30 = 6149,
756 CG_PROFILE_ARBVP1 = 6150,
757 CG_PROFILE_FP40 = 6151,
758 CG_PROFILE_ARBFP1 = 7000,
759 CG_PROFILE_VP40 = 7001,
760 CG_PROFILE_GLSLV = 7007,
761 CG_PROFILE_GLSLF = 7008,
762 CG_PROFILE_GLSLG = 7016,
763 CG_PROFILE_GLSLC = 7009,
764 CG_PROFILE_GPU_FP = 7010, /* Deprecated alias for CG_PROFILE_GP4FP */
765 CG_PROFILE_GPU_VP = 7011, /* Deprecated alias for CG_PROFILE_GP4VP */
766 CG_PROFILE_GPU_GP = 7012, /* Deprecated alias for CG_PROFILE_GP4GP */
767 CG_PROFILE_GP4FP = 7010,
768 CG_PROFILE_GP4VP = 7011,
769 CG_PROFILE_GP4GP = 7012,
770 CG_PROFILE_GP5FP = 7017, /* NV_gpu_program5 */
771 CG_PROFILE_GP5VP = 7018, /* NV_gpu_program5 */
772 CG_PROFILE_GP5GP = 7019, /* NV_gpu_program5 */
773 CG_PROFILE_GP5TCP = 7020, /* NV_tessellation_program5 Tessellation control program */
774 CG_PROFILE_GP5TEP = 7021, /* NV_tessellation_program5 Tessellation evaluation program */
775 CG_PROFILE_VS_1_1 = 6153,
776 CG_PROFILE_VS_2_0 = 6154,
777 CG_PROFILE_VS_2_X = 6155,
778 CG_PROFILE_VS_2_SW = 6156,
779 CG_PROFILE_VS_3_0 = 6157,
780 CG_PROFILE_HLSLV = 6158,
781 CG_PROFILE_PS_1_1 = 6159,
782 CG_PROFILE_PS_1_2 = 6160,
783 CG_PROFILE_PS_1_3 = 6161,
784 CG_PROFILE_PS_2_0 = 6162,
785 CG_PROFILE_PS_2_X = 6163,
786 CG_PROFILE_PS_2_SW = 6164,
787 CG_PROFILE_PS_3_0 = 6165,
788 CG_PROFILE_HLSLF = 6166,
789 CG_PROFILE_VS_4_0 = 6167,
790 CG_PROFILE_PS_4_0 = 6168,
791 CG_PROFILE_GS_4_0 = 6169,
792 CG_PROFILE_VS_5_0 = 6170,
793 CG_PROFILE_PS_5_0 = 6171,
794 CG_PROFILE_GS_5_0 = 6172,
795 CG_PROFILE_HS_5_0 = 6173,
796 CG_PROFILE_DS_5_0 = 6174,
797 CG_PROFILE_GENERIC = 7002
798 } CGprofile;
799
800 typedef enum
801 {
802 CG_NO_ERROR = 0,
803 CG_COMPILER_ERROR = 1,
804 CG_INVALID_PARAMETER_ERROR = 2,
805 CG_INVALID_PROFILE_ERROR = 3,
806 CG_PROGRAM_LOAD_ERROR = 4,
807 CG_PROGRAM_BIND_ERROR = 5,
808 CG_PROGRAM_NOT_LOADED_ERROR = 6,
809 CG_UNSUPPORTED_GL_EXTENSION_ERROR = 7,
810 CG_INVALID_VALUE_TYPE_ERROR = 8,
811 CG_NOT_MATRIX_PARAM_ERROR = 9,
812 CG_INVALID_ENUMERANT_ERROR = 10,
813 CG_NOT_4x4_MATRIX_ERROR = 11,
814 CG_FILE_READ_ERROR = 12,
815 CG_FILE_WRITE_ERROR = 13,
816 CG_NVPARSE_ERROR = 14,
817 CG_MEMORY_ALLOC_ERROR = 15,
818 CG_INVALID_CONTEXT_HANDLE_ERROR = 16,
819 CG_INVALID_PROGRAM_HANDLE_ERROR = 17,
820 CG_INVALID_PARAM_HANDLE_ERROR = 18,
821 CG_UNKNOWN_PROFILE_ERROR = 19,
822 CG_VAR_ARG_ERROR = 20,
823 CG_INVALID_DIMENSION_ERROR = 21,
824 CG_ARRAY_PARAM_ERROR = 22,
825 CG_OUT_OF_ARRAY_BOUNDS_ERROR = 23,
826 CG_CONFLICTING_TYPES_ERROR = 24,
827 CG_CONFLICTING_PARAMETER_TYPES_ERROR = 25,
828 CG_PARAMETER_IS_NOT_SHARED_ERROR = 26,
829 CG_INVALID_PARAMETER_VARIABILITY_ERROR = 27,
830 CG_CANNOT_DESTROY_PARAMETER_ERROR = 28,
831 CG_NOT_ROOT_PARAMETER_ERROR = 29,
832 CG_PARAMETERS_DO_NOT_MATCH_ERROR = 30,
833 CG_IS_NOT_PROGRAM_PARAMETER_ERROR = 31,
834 CG_INVALID_PARAMETER_TYPE_ERROR = 32,
835 CG_PARAMETER_IS_NOT_RESIZABLE_ARRAY_ERROR = 33,
836 CG_INVALID_SIZE_ERROR = 34,
837 CG_BIND_CREATES_CYCLE_ERROR = 35,
838 CG_ARRAY_TYPES_DO_NOT_MATCH_ERROR = 36,
839 CG_ARRAY_DIMENSIONS_DO_NOT_MATCH_ERROR = 37,
840 CG_ARRAY_HAS_WRONG_DIMENSION_ERROR = 38,
841 CG_TYPE_IS_NOT_DEFINED_IN_PROGRAM_ERROR = 39,
842 CG_INVALID_EFFECT_HANDLE_ERROR = 40,
843 CG_INVALID_STATE_HANDLE_ERROR = 41,
844 CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR = 42,
845 CG_INVALID_PASS_HANDLE_ERROR = 43,
846 CG_INVALID_ANNOTATION_HANDLE_ERROR = 44,
847 CG_INVALID_TECHNIQUE_HANDLE_ERROR = 45,
848 CG_INVALID_PARAMETER_HANDLE_ERROR = 46,
849 CG_STATE_ASSIGNMENT_TYPE_MISMATCH_ERROR = 47,
850 CG_INVALID_FUNCTION_HANDLE_ERROR = 48,
851 CG_INVALID_TECHNIQUE_ERROR = 49,
852 CG_INVALID_POINTER_ERROR = 50,
853 CG_NOT_ENOUGH_DATA_ERROR = 51,
854 CG_NON_NUMERIC_PARAMETER_ERROR = 52,
855 CG_ARRAY_SIZE_MISMATCH_ERROR = 53,
856 CG_CANNOT_SET_NON_UNIFORM_PARAMETER_ERROR = 54,
857 CG_DUPLICATE_NAME_ERROR = 55,
858 CG_INVALID_OBJ_HANDLE_ERROR = 56,
859 CG_INVALID_BUFFER_HANDLE_ERROR = 57,
860 CG_BUFFER_INDEX_OUT_OF_RANGE_ERROR = 58,
861 CG_BUFFER_ALREADY_MAPPED_ERROR = 59,
862 CG_BUFFER_UPDATE_NOT_ALLOWED_ERROR = 60,
863 CG_GLSLG_UNCOMBINED_LOAD_ERROR = 61
864 } CGerror;
865
866 typedef enum
867 {
868 CG_UNKNOWN = 4096,
869 CG_IN = 4097,
870 CG_OUT = 4098,
871 CG_INOUT = 4099,
872 CG_MIXED = 4100,
873 CG_VARYING = 4101,
874 CG_UNIFORM = 4102,
875 CG_CONSTANT = 4103,
876 CG_PROGRAM_SOURCE = 4104, /* cgGetProgramString */
877 CG_PROGRAM_ENTRY = 4105, /* cgGetProgramString */
878 CG_COMPILED_PROGRAM = 4106, /* cgGetProgramString */
879 CG_PROGRAM_PROFILE = 4107, /* cgGetProgramString */
880 CG_GLOBAL = 4108,
881 CG_PROGRAM = 4109,
882 CG_DEFAULT = 4110,
883 CG_ERROR = 4111,
884 CG_SOURCE = 4112,
885 CG_OBJECT = 4113,
886 CG_COMPILE_MANUAL = 4114,
887 CG_COMPILE_IMMEDIATE = 4115,
888 CG_COMPILE_LAZY = 4116,
889 CG_CURRENT = 4117,
890 CG_LITERAL = 4118,
891 CG_VERSION = 4119, /* cgGetString */
892 CG_ROW_MAJOR = 4120,
893 CG_COLUMN_MAJOR = 4121,
894 CG_FRAGMENT = 4122, /* cgGetProgramInput and cgGetProgramOutput */
895 CG_VERTEX = 4123, /* cgGetProgramInput and cgGetProgramOutput */
896 CG_POINT = 4124, /* Geometry program cgGetProgramInput */
897 CG_LINE = 4125, /* Geometry program cgGetProgramInput */
898 CG_LINE_ADJ = 4126, /* Geometry program cgGetProgramInput */
899 CG_TRIANGLE = 4127, /* Geometry program cgGetProgramInput */
900 CG_TRIANGLE_ADJ = 4128, /* Geometry program cgGetProgramInput */
901 CG_POINT_OUT = 4129, /* Geometry program cgGetProgramOutput */
902 CG_LINE_OUT = 4130, /* Geometry program cgGetProgramOutput */
903 CG_TRIANGLE_OUT = 4131, /* Geometry program cgGetProgramOutput */
904 CG_IMMEDIATE_PARAMETER_SETTING = 4132,
905 CG_DEFERRED_PARAMETER_SETTING = 4133,
906 CG_NO_LOCKS_POLICY = 4134,
907 CG_THREAD_SAFE_POLICY = 4135,
908 CG_FORCE_UPPER_CASE_POLICY = 4136,
909 CG_UNCHANGED_CASE_POLICY = 4137,
910 CG_IS_OPENGL_PROFILE = 4138,
911 CG_IS_DIRECT3D_PROFILE = 4139,
912 CG_IS_DIRECT3D_8_PROFILE = 4140,
913 CG_IS_DIRECT3D_9_PROFILE = 4141,
914 CG_IS_DIRECT3D_10_PROFILE = 4142,
915 CG_IS_VERTEX_PROFILE = 4143,
916 CG_IS_FRAGMENT_PROFILE = 4144,
917 CG_IS_GEOMETRY_PROFILE = 4145,
918 CG_IS_TRANSLATION_PROFILE = 4146,
919 CG_IS_HLSL_PROFILE = 4147,
920 CG_IS_GLSL_PROFILE = 4148,
921 CG_IS_TESSELLATION_CONTROL_PROFILE = 4149,
922 CG_IS_TESSELLATION_EVALUATION_PROFILE = 4150,
923 CG_PATCH = 4152, /* cgGetProgramInput and cgGetProgramOutput */
924 CG_IS_DIRECT3D_11_PROFILE = 4153
925 } CGenum;
926
927 typedef enum
928 {
929 CG_PARAMETERCLASS_UNKNOWN = 0,
930 CG_PARAMETERCLASS_SCALAR = 1,
931 CG_PARAMETERCLASS_VECTOR = 2,
932 CG_PARAMETERCLASS_MATRIX = 3,
933 CG_PARAMETERCLASS_STRUCT = 4,
934 CG_PARAMETERCLASS_ARRAY = 5,
935 CG_PARAMETERCLASS_SAMPLER = 6,
936 CG_PARAMETERCLASS_OBJECT = 7
937 } CGparameterclass;
938
939 typedef enum
940 {
941 CG_UNKNOWN_DOMAIN = 0,
942 CG_FIRST_DOMAIN = 1,
943 CG_VERTEX_DOMAIN = 1,
944 CG_FRAGMENT_DOMAIN = 2,
945 CG_GEOMETRY_DOMAIN = 3,
946 CG_TESSELLATION_CONTROL_DOMAIN = 4,
947 CG_TESSELLATION_EVALUATION_DOMAIN = 5
948 } CGdomain;
949
950 typedef enum
951 {
952 CG_MAP_READ = 0,
953 CG_MAP_WRITE = 1,
954 CG_MAP_READ_WRITE = 2,
955 CG_MAP_WRITE_DISCARD = 3,
956 CG_MAP_WRITE_NO_OVERWRITE = 4
957 } CGbufferaccess;
958
959 typedef enum
960 {
961 CG_BUFFER_USAGE_STREAM_DRAW = 0,
962 CG_BUFFER_USAGE_STREAM_READ = 1,
963 CG_BUFFER_USAGE_STREAM_COPY = 2,
964 CG_BUFFER_USAGE_STATIC_DRAW = 3,
965 CG_BUFFER_USAGE_STATIC_READ = 4,
966 CG_BUFFER_USAGE_STATIC_COPY = 5,
967 CG_BUFFER_USAGE_DYNAMIC_DRAW = 6,
968 CG_BUFFER_USAGE_DYNAMIC_READ = 7,
969 CG_BUFFER_USAGE_DYNAMIC_COPY = 8
970 } CGbufferusage;
971
972 #ifdef __cplusplus
973 extern "C"
974 {
975 #endif
976
977 typedef CGbool (CGENTRY * CGstatecallback)(CGstateassignment);
978 typedef void (CGENTRY * CGerrorCallbackFunc)(void);
979 typedef void (CGENTRY * CGerrorHandlerFunc)(CGcontext, CGerror, void *);
980 typedef void (CGENTRY * CGIncludeCallbackFunc)(CGcontext, const char *);
981
982 /*************************************************************************/
983 /*** Functions ***/
984 /*************************************************************************/
985
986 #ifndef CG_EXPLICIT
987
988 CG_API CGenum CGENTRY cgSetLockingPolicy(CGenum lockingPolicy);
989 CG_API CGenum CGENTRY cgGetLockingPolicy(void);
990 CG_API CGenum CGENTRY cgSetSemanticCasePolicy(CGenum casePolicy);
991 CG_API CGenum CGENTRY cgGetSemanticCasePolicy(void);
992 CG_API CGcontext CGENTRY cgCreateContext(void);
993 CG_API void CGENTRY cgSetContextBehavior(CGcontext context, CGbehavior behavior);
994 CG_API CGbehavior CGENTRY cgGetContextBehavior(CGcontext context);
995 CG_API const char * CGENTRY cgGetBehaviorString(CGbehavior behavior);
996 CG_API CGbehavior CGENTRY cgGetBehavior(const char *behavior_string);
997 CG_API void CGENTRY cgDestroyContext(CGcontext context);
998 CG_API CGbool CGENTRY cgIsContext(CGcontext context);
999 CG_API const char * CGENTRY cgGetLastListing(CGcontext context);
1000 CG_API void CGENTRY cgSetLastListing(CGhandle handle, const char *listing);
1001 CG_API void CGENTRY cgSetAutoCompile(CGcontext context, CGenum autoCompileMode);
1002 CG_API CGenum CGENTRY cgGetAutoCompile(CGcontext context);
1003 CG_API void CGENTRY cgSetParameterSettingMode(CGcontext context, CGenum parameterSettingMode);
1004 CG_API CGenum CGENTRY cgGetParameterSettingMode(CGcontext context);
1005 CG_API void CGENTRY cgSetCompilerIncludeString(CGcontext context, const char *name, const char *source);
1006 CG_API void CGENTRY cgSetCompilerIncludeFile(CGcontext context, const char *name, const char *filename);
1007 CG_API void CGENTRY cgSetCompilerIncludeCallback(CGcontext context, CGIncludeCallbackFunc func);
1008 CG_API CGIncludeCallbackFunc CGENTRY cgGetCompilerIncludeCallback(CGcontext context);
1009 CG_API CGprogram CGENTRY cgCreateProgram(CGcontext context, CGenum program_type, const char *program, CGprofile profile, const char *entry, const char **args);
1010 CG_API CGprogram CGENTRY cgCreateProgramFromFile(CGcontext context, CGenum program_type, const char *program_file, CGprofile profile, const char *entry, const char **args);
1011 CG_API CGprogram CGENTRY cgCopyProgram(CGprogram program);
1012 CG_API void CGENTRY cgDestroyProgram(CGprogram program);
1013 CG_API CGprogram CGENTRY cgGetFirstProgram(CGcontext context);
1014 CG_API CGprogram CGENTRY cgGetNextProgram(CGprogram current);
1015 CG_API CGcontext CGENTRY cgGetProgramContext(CGprogram program);
1016 CG_API CGbool CGENTRY cgIsProgram(CGprogram program);
1017 CG_API void CGENTRY cgCompileProgram(CGprogram program);
1018 CG_API CGbool CGENTRY cgIsProgramCompiled(CGprogram program);
1019 CG_API const char * CGENTRY cgGetProgramString(CGprogram program, CGenum pname);
1020 CG_API CGprofile CGENTRY cgGetProgramProfile(CGprogram program);
1021 CG_API char const * const * CGENTRY cgGetProgramOptions(CGprogram program);
1022 CG_API void CGENTRY cgSetProgramProfile(CGprogram program, CGprofile profile);
1023 CG_API CGenum CGENTRY cgGetProgramInput(CGprogram program);
1024 CG_API CGenum CGENTRY cgGetProgramOutput(CGprogram program);
1025 CG_API void CGENTRY cgSetPassProgramParameters(CGprogram program);
1026 CG_API void CGENTRY cgUpdateProgramParameters(CGprogram program);
1027 CG_API void CGENTRY cgUpdatePassParameters(CGpass pass);
1028 CG_API CGparameter CGENTRY cgCreateParameter(CGcontext context, CGtype type);
1029 CG_API CGparameter CGENTRY cgCreateParameterArray(CGcontext context, CGtype type, int length);
1030 CG_API CGparameter CGENTRY cgCreateParameterMultiDimArray(CGcontext context, CGtype type, int dim, const int *lengths);
1031 CG_API void CGENTRY cgDestroyParameter(CGparameter param);
1032 CG_API void CGENTRY cgConnectParameter(CGparameter from, CGparameter to);
1033 CG_API void CGENTRY cgDisconnectParameter(CGparameter param);
1034 CG_API CGparameter CGENTRY cgGetConnectedParameter(CGparameter param);
1035 CG_API int CGENTRY cgGetNumConnectedToParameters(CGparameter param);
1036 CG_API CGparameter CGENTRY cgGetConnectedToParameter(CGparameter param, int index);
1037 CG_API CGparameter CGENTRY cgGetNamedParameter(CGprogram program, const char *name);
1038 CG_API CGparameter CGENTRY cgGetNamedProgramParameter(CGprogram program, CGenum name_space, const char *name);
1039 CG_API CGparameter CGENTRY cgGetFirstParameter(CGprogram program, CGenum name_space);
1040 CG_API CGparameter CGENTRY cgGetNextParameter(CGparameter current);
1041 CG_API CGparameter CGENTRY cgGetFirstLeafParameter(CGprogram program, CGenum name_space);
1042 CG_API CGparameter CGENTRY cgGetNextLeafParameter(CGparameter current);
1043 CG_API CGparameter CGENTRY cgGetFirstStructParameter(CGparameter param);
1044 CG_API CGparameter CGENTRY cgGetNamedStructParameter(CGparameter param, const char *name);
1045 CG_API CGparameter CGENTRY cgGetFirstDependentParameter(CGparameter param);
1046 CG_API CGparameter CGENTRY cgGetArrayParameter(CGparameter aparam, int index);
1047 CG_API int CGENTRY cgGetArrayDimension(CGparameter param);
1048 CG_API CGtype CGENTRY cgGetArrayType(CGparameter param);
1049 CG_API int CGENTRY cgGetArraySize(CGparameter param, int dimension);
1050 CG_API int CGENTRY cgGetArrayTotalSize(CGparameter param);
1051 CG_API void CGENTRY cgSetArraySize(CGparameter param, int size);
1052 CG_API void CGENTRY cgSetMultiDimArraySize(CGparameter param, const int *sizes);
1053 CG_API CGprogram CGENTRY cgGetParameterProgram(CGparameter param);
1054 CG_API CGcontext CGENTRY cgGetParameterContext(CGparameter param);
1055 CG_API CGbool CGENTRY cgIsParameter(CGparameter param);
1056 CG_API const char * CGENTRY cgGetParameterName(CGparameter param);
1057 CG_API CGtype CGENTRY cgGetParameterType(CGparameter param);
1058 CG_API CGtype CGENTRY cgGetParameterBaseType(CGparameter param);
1059 CG_API CGparameterclass CGENTRY cgGetParameterClass(CGparameter param);
1060 CG_API int CGENTRY cgGetParameterRows(CGparameter param);
1061 CG_API int CGENTRY cgGetParameterColumns(CGparameter param);
1062 CG_API CGtype CGENTRY cgGetParameterNamedType(CGparameter param);
1063 CG_API const char * CGENTRY cgGetParameterSemantic(CGparameter param);
1064 CG_API CGresource CGENTRY cgGetParameterResource(CGparameter param);
1065 CG_API CGresource CGENTRY cgGetParameterBaseResource(CGparameter param);
1066 CG_API unsigned long CGENTRY cgGetParameterResourceIndex(CGparameter param);
1067 CG_API CGenum CGENTRY cgGetParameterVariability(CGparameter param);
1068 CG_API CGenum CGENTRY cgGetParameterDirection(CGparameter param);
1069 CG_API CGbool CGENTRY cgIsParameterReferenced(CGparameter param);
1070 CG_API CGbool CGENTRY cgIsParameterUsed(CGparameter param, CGhandle handle);
1071 CG_API const double * CGENTRY cgGetParameterValues(CGparameter param, CGenum value_type, int *nvalues);
1072 CG_API void CGENTRY cgSetParameterValuedr(CGparameter param, int nelements, const double *vals);
1073 CG_API void CGENTRY cgSetParameterValuedc(CGparameter param, int nelements, const double *vals);
1074 CG_API void CGENTRY cgSetParameterValuefr(CGparameter param, int nelements, const float *vals);
1075 CG_API void CGENTRY cgSetParameterValuefc(CGparameter param, int nelements, const float *vals);
1076 CG_API void CGENTRY cgSetParameterValueir(CGparameter param, int nelements, const int *vals);
1077 CG_API void CGENTRY cgSetParameterValueic(CGparameter param, int nelements, const int *vals);
1078 CG_API int CGENTRY cgGetParameterValuedr(CGparameter param, int nelements, double *vals);
1079 CG_API int CGENTRY cgGetParameterValuedc(CGparameter param, int nelements, double *vals);
1080 CG_API int CGENTRY cgGetParameterValuefr(CGparameter param, int nelements, float *vals);
1081 CG_API int CGENTRY cgGetParameterValuefc(CGparameter param, int nelements, float *vals);
1082 CG_API int CGENTRY cgGetParameterValueir(CGparameter param, int nelements, int *vals);
1083 CG_API int CGENTRY cgGetParameterValueic(CGparameter param, int nelements, int *vals);
1084 CG_API int CGENTRY cgGetParameterDefaultValuedr(CGparameter param, int nelements, double *vals);
1085 CG_API int CGENTRY cgGetParameterDefaultValuedc(CGparameter param, int nelements, double *vals);
1086 CG_API int CGENTRY cgGetParameterDefaultValuefr(CGparameter param, int nelements, float *vals);
1087 CG_API int CGENTRY cgGetParameterDefaultValuefc(CGparameter param, int nelements, float *vals);
1088 CG_API int CGENTRY cgGetParameterDefaultValueir(CGparameter param, int nelements, int *vals);
1089 CG_API int CGENTRY cgGetParameterDefaultValueic(CGparameter param, int nelements, int *vals);
1090 CG_API const char * CGENTRY cgGetStringParameterValue(CGparameter param);
1091 CG_API void CGENTRY cgSetStringParameterValue(CGparameter param, const char *str);
1092 CG_API int CGENTRY cgGetParameterOrdinalNumber(CGparameter param);
1093 CG_API CGbool CGENTRY cgIsParameterGlobal(CGparameter param);
1094 CG_API int CGENTRY cgGetParameterIndex(CGparameter param);
1095 CG_API void CGENTRY cgSetParameterVariability(CGparameter param, CGenum vary);
1096 CG_API void CGENTRY cgSetParameterSemantic(CGparameter param, const char *semantic);
1097 CG_API void CGENTRY cgSetParameter1f(CGparameter param, float x);
1098 CG_API void CGENTRY cgSetParameter2f(CGparameter param, float x, float y);
1099 CG_API void CGENTRY cgSetParameter3f(CGparameter param, float x, float y, float z);
1100 CG_API void CGENTRY cgSetParameter4f(CGparameter param, float x, float y, float z, float w);
1101 CG_API void CGENTRY cgSetParameter1d(CGparameter param, double x);
1102 CG_API void CGENTRY cgSetParameter2d(CGparameter param, double x, double y);
1103 CG_API void CGENTRY cgSetParameter3d(CGparameter param, double x, double y, double z);
1104 CG_API void CGENTRY cgSetParameter4d(CGparameter param, double x, double y, double z, double w);
1105 CG_API void CGENTRY cgSetParameter1i(CGparameter param, int x);
1106 CG_API void CGENTRY cgSetParameter2i(CGparameter param, int x, int y);
1107 CG_API void CGENTRY cgSetParameter3i(CGparameter param, int x, int y, int z);
1108 CG_API void CGENTRY cgSetParameter4i(CGparameter param, int x, int y, int z, int w);
1109 CG_API void CGENTRY cgSetParameter1iv(CGparameter param, const int *v);
1110 CG_API void CGENTRY cgSetParameter2iv(CGparameter param, const int *v);
1111 CG_API void CGENTRY cgSetParameter3iv(CGparameter param, const int *v);
1112 CG_API void CGENTRY cgSetParameter4iv(CGparameter param, const int *v);
1113 CG_API void CGENTRY cgSetParameter1fv(CGparameter param, const float *v);
1114 CG_API void CGENTRY cgSetParameter2fv(CGparameter param, const float *v);
1115 CG_API void CGENTRY cgSetParameter3fv(CGparameter param, const float *v);
1116 CG_API void CGENTRY cgSetParameter4fv(CGparameter param, const float *v);
1117 CG_API void CGENTRY cgSetParameter1dv(CGparameter param, const double *v);
1118 CG_API void CGENTRY cgSetParameter2dv(CGparameter param, const double *v);
1119 CG_API void CGENTRY cgSetParameter3dv(CGparameter param, const double *v);
1120 CG_API void CGENTRY cgSetParameter4dv(CGparameter param, const double *v);
1121 CG_API void CGENTRY cgSetMatrixParameterir(CGparameter param, const int *matrix);
1122 CG_API void CGENTRY cgSetMatrixParameterdr(CGparameter param, const double *matrix);
1123 CG_API void CGENTRY cgSetMatrixParameterfr(CGparameter param, const float *matrix);
1124 CG_API void CGENTRY cgSetMatrixParameteric(CGparameter param, const int *matrix);
1125 CG_API void CGENTRY cgSetMatrixParameterdc(CGparameter param, const double *matrix);
1126 CG_API void CGENTRY cgSetMatrixParameterfc(CGparameter param, const float *matrix);
1127 CG_API void CGENTRY cgGetMatrixParameterir(CGparameter param, int *matrix);
1128 CG_API void CGENTRY cgGetMatrixParameterdr(CGparameter param, double *matrix);
1129 CG_API void CGENTRY cgGetMatrixParameterfr(CGparameter param, float *matrix);
1130 CG_API void CGENTRY cgGetMatrixParameteric(CGparameter param, int *matrix);
1131 CG_API void CGENTRY cgGetMatrixParameterdc(CGparameter param, double *matrix);
1132 CG_API void CGENTRY cgGetMatrixParameterfc(CGparameter param, float *matrix);
1133 CG_API CGenum CGENTRY cgGetMatrixParameterOrder(CGparameter param);
1134 CG_API CGparameter CGENTRY cgGetNamedSubParameter(CGparameter param, const char *name);
1135 CG_API const char * CGENTRY cgGetTypeString(CGtype type);
1136 CG_API CGtype CGENTRY cgGetType(const char *type_string);
1137 CG_API CGtype CGENTRY cgGetNamedUserType(CGhandle handle, const char *name);
1138 CG_API int CGENTRY cgGetNumUserTypes(CGhandle handle);
1139 CG_API CGtype CGENTRY cgGetUserType(CGhandle handle, int index);
1140 CG_API int CGENTRY cgGetNumParentTypes(CGtype type);
1141 CG_API CGtype CGENTRY cgGetParentType(CGtype type, int index);
1142 CG_API CGbool CGENTRY cgIsParentType(CGtype parent, CGtype child);
1143 CG_API CGbool CGENTRY cgIsInterfaceType(CGtype type);
1144 CG_API const char * CGENTRY cgGetResourceString(CGresource resource);
1145 CG_API CGresource CGENTRY cgGetResource(const char *resource_string);
1146 CG_API const char * CGENTRY cgGetEnumString(CGenum en);
1147 CG_API CGenum CGENTRY cgGetEnum(const char *enum_string);
1148 CG_API const char * CGENTRY cgGetProfileString(CGprofile profile);
1149 CG_API CGprofile CGENTRY cgGetProfile(const char *profile_string);
1150 CG_API int CGENTRY cgGetNumSupportedProfiles(void);
1151 CG_API CGprofile CGENTRY cgGetSupportedProfile(int index);
1152 CG_API CGbool CGENTRY cgIsProfileSupported(CGprofile profile);
1153 CG_API CGbool CGENTRY cgGetProfileProperty(CGprofile profile, CGenum query);
1154 CG_API const char * CGENTRY cgGetParameterClassString(CGparameterclass pc);
1155 CG_API CGparameterclass CGENTRY cgGetParameterClassEnum(const char *pString);
1156 CG_API const char * CGENTRY cgGetDomainString(CGdomain domain);
1157 CG_API CGdomain CGENTRY cgGetDomain(const char *domain_string);
1158 CG_API CGdomain CGENTRY cgGetProgramDomain(CGprogram program);
1159 CG_API CGerror CGENTRY cgGetError(void);
1160 CG_API CGerror CGENTRY cgGetFirstError(void);
1161 CG_API const char * CGENTRY cgGetErrorString(CGerror error);
1162 CG_API const char * CGENTRY cgGetLastErrorString(CGerror *error);
1163 CG_API void CGENTRY cgSetErrorCallback(CGerrorCallbackFunc func);
1164 CG_API CGerrorCallbackFunc CGENTRY cgGetErrorCallback(void);
1165 CG_API void CGENTRY cgSetErrorHandler(CGerrorHandlerFunc func, void *data);
1166 CG_API CGerrorHandlerFunc CGENTRY cgGetErrorHandler(void **data);
1167 CG_API const char * CGENTRY cgGetString(CGenum sname);
1168 CG_API CGeffect CGENTRY cgCreateEffect(CGcontext context, const char *code, const char **args);
1169 CG_API CGeffect CGENTRY cgCreateEffectFromFile(CGcontext context, const char *filename, const char **args);
1170 CG_API CGeffect CGENTRY cgCopyEffect(CGeffect effect);
1171 CG_API void CGENTRY cgDestroyEffect(CGeffect effect);
1172 CG_API CGcontext CGENTRY cgGetEffectContext(CGeffect effect);
1173 CG_API CGbool CGENTRY cgIsEffect(CGeffect effect);
1174 CG_API CGeffect CGENTRY cgGetFirstEffect(CGcontext context);
1175 CG_API CGeffect CGENTRY cgGetNextEffect(CGeffect effect);
1176 CG_API CGprogram CGENTRY cgCreateProgramFromEffect(CGeffect effect, CGprofile profile, const char *entry, const char **args);
1177 CG_API CGtechnique CGENTRY cgGetFirstTechnique(CGeffect effect);
1178 CG_API CGtechnique CGENTRY cgGetNextTechnique(CGtechnique tech);
1179 CG_API CGtechnique CGENTRY cgGetNamedTechnique(CGeffect effect, const char *name);
1180 CG_API const char * CGENTRY cgGetTechniqueName(CGtechnique tech);
1181 CG_API CGbool CGENTRY cgIsTechnique(CGtechnique tech);
1182 CG_API CGbool CGENTRY cgValidateTechnique(CGtechnique tech);
1183 CG_API CGbool CGENTRY cgIsTechniqueValidated(CGtechnique tech);
1184 CG_API CGeffect CGENTRY cgGetTechniqueEffect(CGtechnique tech);
1185 CG_API CGpass CGENTRY cgGetFirstPass(CGtechnique tech);
1186 CG_API CGpass CGENTRY cgGetNamedPass(CGtechnique tech, const char *name);
1187 CG_API CGpass CGENTRY cgGetNextPass(CGpass pass);
1188 CG_API CGbool CGENTRY cgIsPass(CGpass pass);
1189 CG_API const char * CGENTRY cgGetPassName(CGpass pass);
1190 CG_API CGtechnique CGENTRY cgGetPassTechnique(CGpass pass);
1191 CG_API CGprogram CGENTRY cgGetPassProgram(CGpass pass, CGdomain domain);
1192 CG_API void CGENTRY cgSetPassState(CGpass pass);
1193 CG_API void CGENTRY cgResetPassState(CGpass pass);
1194 CG_API CGstateassignment CGENTRY cgGetFirstStateAssignment(CGpass pass);
1195 CG_API CGstateassignment CGENTRY cgGetNamedStateAssignment(CGpass pass, const char *name);
1196 CG_API CGstateassignment CGENTRY cgGetNextStateAssignment(CGstateassignment sa);
1197 CG_API CGbool CGENTRY cgIsStateAssignment(CGstateassignment sa);
1198 CG_API CGbool CGENTRY cgCallStateSetCallback(CGstateassignment sa);
1199 CG_API CGbool CGENTRY cgCallStateValidateCallback(CGstateassignment sa);
1200 CG_API CGbool CGENTRY cgCallStateResetCallback(CGstateassignment sa);
1201 CG_API CGpass CGENTRY cgGetStateAssignmentPass(CGstateassignment sa);
1202 CG_API CGparameter CGENTRY cgGetSamplerStateAssignmentParameter(CGstateassignment sa);
1203 CG_API const float * CGENTRY cgGetFloatStateAssignmentValues(CGstateassignment sa, int *nvalues);
1204 CG_API const int * CGENTRY cgGetIntStateAssignmentValues(CGstateassignment sa, int *nvalues);
1205 CG_API const CGbool * CGENTRY cgGetBoolStateAssignmentValues(CGstateassignment sa, int *nvalues);
1206 CG_API const char * CGENTRY cgGetStringStateAssignmentValue(CGstateassignment sa);
1207 CG_API CGprogram CGENTRY cgGetProgramStateAssignmentValue(CGstateassignment sa);
1208 CG_API CGparameter CGENTRY cgGetTextureStateAssignmentValue(CGstateassignment sa);
1209 CG_API CGparameter CGENTRY cgGetSamplerStateAssignmentValue(CGstateassignment sa);
1210 CG_API int CGENTRY cgGetStateAssignmentIndex(CGstateassignment sa);
1211 CG_API int CGENTRY cgGetNumDependentStateAssignmentParameters(CGstateassignment sa);
1212 CG_API CGparameter CGENTRY cgGetDependentStateAssignmentParameter(CGstateassignment sa, int index);
1213 CG_API int CGENTRY cgGetNumDependentProgramArrayStateAssignmentParameters(CGstateassignment sa);
1214 CG_API CGparameter CGENTRY cgGetDependentProgramArrayStateAssignmentParameter(CGstateassignment sa, int index);
1215 CG_API CGparameter CGENTRY cgGetConnectedStateAssignmentParameter(CGstateassignment sa);
1216 CG_API CGstate CGENTRY cgGetStateAssignmentState(CGstateassignment sa);
1217 CG_API CGstate CGENTRY cgGetSamplerStateAssignmentState(CGstateassignment sa);
1218 CG_API CGstate CGENTRY cgCreateState(CGcontext context, const char *name, CGtype type);
1219 CG_API CGstate CGENTRY cgCreateArrayState(CGcontext context, const char *name, CGtype type, int nelements);
1220 CG_API void CGENTRY cgSetStateCallbacks(CGstate state, CGstatecallback set, CGstatecallback reset, CGstatecallback validate);
1221 CG_API void CGENTRY cgSetStateLatestProfile(CGstate state, CGprofile profile);
1222 CG_API CGstatecallback CGENTRY cgGetStateSetCallback(CGstate state);
1223 CG_API CGstatecallback CGENTRY cgGetStateResetCallback(CGstate state);
1224 CG_API CGstatecallback CGENTRY cgGetStateValidateCallback(CGstate state);
1225 CG_API CGprofile CGENTRY cgGetStateLatestProfile(CGstate state);
1226 CG_API CGcontext CGENTRY cgGetStateContext(CGstate state);
1227 CG_API CGtype CGENTRY cgGetStateType(CGstate state);
1228 CG_API const char * CGENTRY cgGetStateName(CGstate state);
1229 CG_API CGstate CGENTRY cgGetNamedState(CGcontext context, const char *name);
1230 CG_API CGstate CGENTRY cgGetFirstState(CGcontext context);
1231 CG_API CGstate CGENTRY cgGetNextState(CGstate state);
1232 CG_API CGbool CGENTRY cgIsState(CGstate state);
1233 CG_API void CGENTRY cgAddStateEnumerant(CGstate state, const char *name, int value);
1234 CG_API CGstate CGENTRY cgCreateSamplerState(CGcontext context, const char *name, CGtype type);
1235 CG_API CGstate CGENTRY cgCreateArraySamplerState(CGcontext context, const char *name, CGtype type, int nelements);
1236 CG_API CGstate CGENTRY cgGetNamedSamplerState(CGcontext context, const char *name);
1237 CG_API CGstate CGENTRY cgGetFirstSamplerState(CGcontext context);
1238 CG_API CGstateassignment CGENTRY cgGetFirstSamplerStateAssignment(CGparameter param);
1239 CG_API CGstateassignment CGENTRY cgGetNamedSamplerStateAssignment(CGparameter param, const char *name);
1240 CG_API void CGENTRY cgSetSamplerState(CGparameter param);
1241 CG_API CGparameter CGENTRY cgGetNamedEffectParameter(CGeffect effect, const char *name);
1242 CG_API CGparameter CGENTRY cgGetFirstLeafEffectParameter(CGeffect effect);
1243 CG_API CGparameter CGENTRY cgGetFirstEffectParameter(CGeffect effect);
1244 CG_API CGparameter CGENTRY cgGetEffectParameterBySemantic(CGeffect effect, const char *semantic);
1245 CG_API CGannotation CGENTRY cgGetFirstTechniqueAnnotation(CGtechnique tech);
1246 CG_API CGannotation CGENTRY cgGetFirstPassAnnotation(CGpass pass);
1247 CG_API CGannotation CGENTRY cgGetFirstParameterAnnotation(CGparameter param);
1248 CG_API CGannotation CGENTRY cgGetFirstProgramAnnotation(CGprogram program);
1249 CG_API CGannotation CGENTRY cgGetFirstEffectAnnotation(CGeffect effect);
1250 CG_API CGannotation CGENTRY cgGetNextAnnotation(CGannotation ann);
1251 CG_API CGannotation CGENTRY cgGetNamedTechniqueAnnotation(CGtechnique tech, const char *name);
1252 CG_API CGannotation CGENTRY cgGetNamedPassAnnotation(CGpass pass, const char *name);
1253 CG_API CGannotation CGENTRY cgGetNamedParameterAnnotation(CGparameter param, const char *name);
1254 CG_API CGannotation CGENTRY cgGetNamedProgramAnnotation(CGprogram program, const char *name);
1255 CG_API CGannotation CGENTRY cgGetNamedEffectAnnotation(CGeffect effect, const char *name);
1256 CG_API CGbool CGENTRY cgIsAnnotation(CGannotation ann);
1257 CG_API const char * CGENTRY cgGetAnnotationName(CGannotation ann);
1258 CG_API CGtype CGENTRY cgGetAnnotationType(CGannotation ann);
1259 CG_API const float * CGENTRY cgGetFloatAnnotationValues(CGannotation ann, int *nvalues);
1260 CG_API const int * CGENTRY cgGetIntAnnotationValues(CGannotation ann, int *nvalues);
1261 CG_API const char * CGENTRY cgGetStringAnnotationValue(CGannotation ann);
1262 CG_API const char * const * CGENTRY cgGetStringAnnotationValues(CGannotation ann, int *nvalues);
1263 CG_API const CGbool * CGENTRY cgGetBoolAnnotationValues(CGannotation ann, int *nvalues);
1264 CG_API const int * CGENTRY cgGetBooleanAnnotationValues(CGannotation ann, int *nvalues);
1265 CG_API int CGENTRY cgGetNumDependentAnnotationParameters(CGannotation ann);
1266 CG_API CGparameter CGENTRY cgGetDependentAnnotationParameter(CGannotation ann, int index);
1267 CG_API void CGENTRY cgEvaluateProgram(CGprogram program, float *buf, int ncomps, int nx, int ny, int nz);
1268 CG_API CGbool CGENTRY cgSetEffectName(CGeffect effect, const char *name);
1269 CG_API const char * CGENTRY cgGetEffectName(CGeffect effect);
1270 CG_API CGeffect CGENTRY cgGetNamedEffect(CGcontext context, const char *name);
1271 CG_API CGparameter CGENTRY cgCreateEffectParameter(CGeffect effect, const char *name, CGtype type);
1272 CG_API CGtechnique CGENTRY cgCreateTechnique(CGeffect effect, const char *name);
1273 CG_API CGparameter CGENTRY cgCreateEffectParameterArray(CGeffect effect, const char *name, CGtype type, int length);
1274 CG_API CGparameter CGENTRY cgCreateEffectParameterMultiDimArray(CGeffect effect, const char *name, CGtype type, int dim, const int *lengths);
1275 CG_API CGpass CGENTRY cgCreatePass(CGtechnique tech, const char *name);
1276 CG_API CGstateassignment CGENTRY cgCreateStateAssignment(CGpass pass, CGstate state);
1277 CG_API CGstateassignment CGENTRY cgCreateStateAssignmentIndex(CGpass pass, CGstate state, int index);
1278 CG_API CGstateassignment CGENTRY cgCreateSamplerStateAssignment(CGparameter param, CGstate state);
1279 CG_API CGbool CGENTRY cgSetFloatStateAssignment(CGstateassignment sa, float value);
1280 CG_API CGbool CGENTRY cgSetIntStateAssignment(CGstateassignment sa, int value);
1281 CG_API CGbool CGENTRY cgSetBoolStateAssignment(CGstateassignment sa, CGbool value);
1282 CG_API CGbool CGENTRY cgSetStringStateAssignment(CGstateassignment sa, const char *value);
1283 CG_API CGbool CGENTRY cgSetProgramStateAssignment(CGstateassignment sa, CGprogram program);
1284 CG_API CGbool CGENTRY cgSetSamplerStateAssignment(CGstateassignment sa, CGparameter param);
1285 CG_API CGbool CGENTRY cgSetTextureStateAssignment(CGstateassignment sa, CGparameter param);
1286 CG_API CGbool CGENTRY cgSetFloatArrayStateAssignment(CGstateassignment sa, const float *vals);
1287 CG_API CGbool CGENTRY cgSetIntArrayStateAssignment(CGstateassignment sa, const int *vals);
1288 CG_API CGbool CGENTRY cgSetBoolArrayStateAssignment(CGstateassignment sa, const CGbool *vals);
1289 CG_API CGannotation CGENTRY cgCreateTechniqueAnnotation(CGtechnique tech, const char *name, CGtype type);
1290 CG_API CGannotation CGENTRY cgCreatePassAnnotation(CGpass pass, const char *name, CGtype type);
1291 CG_API CGannotation CGENTRY cgCreateParameterAnnotation(CGparameter param, const char *name, CGtype type);
1292 CG_API CGannotation CGENTRY cgCreateProgramAnnotation(CGprogram program, const char *name, CGtype type);
1293 CG_API CGannotation CGENTRY cgCreateEffectAnnotation(CGeffect effect, const char *name, CGtype type);
1294 CG_API CGbool CGENTRY cgSetIntAnnotation(CGannotation ann, int value);
1295 CG_API CGbool CGENTRY cgSetFloatAnnotation(CGannotation ann, float value);
1296 CG_API CGbool CGENTRY cgSetBoolAnnotation(CGannotation ann, CGbool value);
1297 CG_API CGbool CGENTRY cgSetStringAnnotation(CGannotation ann, const char *value);
1298 CG_API int CGENTRY cgGetNumStateEnumerants(CGstate state);
1299 CG_API const char * CGENTRY cgGetStateEnumerant(CGstate state, int index, int *value);
1300 CG_API const char * CGENTRY cgGetStateEnumerantName(CGstate state, int value);
1301 CG_API int CGENTRY cgGetStateEnumerantValue(CGstate state, const char *name);
1302 CG_API CGeffect CGENTRY cgGetParameterEffect(CGparameter param);
1303 CG_API CGparameterclass CGENTRY cgGetTypeClass(CGtype type);
1304 CG_API CGtype CGENTRY cgGetTypeBase(CGtype type);
1305 CG_API CGbool CGENTRY cgGetTypeSizes(CGtype type, int *nrows, int *ncols);
1306 CG_API void CGENTRY cgGetMatrixSize(CGtype type, int *nrows, int *ncols);
1307 CG_API int CGENTRY cgGetNumProgramDomains(CGprogram program);
1308 CG_API CGdomain CGENTRY cgGetProfileDomain(CGprofile profile);
1309 CG_API CGprogram CGENTRY cgCombinePrograms(int n, const CGprogram *exeList);
1310 CG_API CGprogram CGENTRY cgCombinePrograms2(const CGprogram exe1, const CGprogram exe2);
1311 CG_API CGprogram CGENTRY cgCombinePrograms3(const CGprogram exe1, const CGprogram exe2, const CGprogram exe3);
1312 CG_API CGprogram CGENTRY cgCombinePrograms4(const CGprogram exe1, const CGprogram exe2, const CGprogram exe3, const CGprogram exe4);
1313 CG_API CGprogram CGENTRY cgCombinePrograms5(const CGprogram exe1, const CGprogram exe2, const CGprogram exe3, const CGprogram exe4, const CGprogram exe5);
1314 CG_API CGprofile CGENTRY cgGetProgramDomainProfile(CGprogram program, int index);
1315 CG_API CGprogram CGENTRY cgGetProgramDomainProgram(CGprogram program, int index);
1316 CG_API CGobj CGENTRY cgCreateObj(CGcontext context, CGenum program_type, const char *source, CGprofile profile, const char **args);
1317 CG_API CGobj CGENTRY cgCreateObjFromFile(CGcontext context, CGenum program_type, const char *source_file, CGprofile profile, const char **args);
1318 CG_API void CGENTRY cgDestroyObj(CGobj obj);
1319 CG_API long CGENTRY cgGetParameterResourceSize(CGparameter param);
1320 CG_API CGtype CGENTRY cgGetParameterResourceType(CGparameter param);
1321 CG_API const char * CGENTRY cgGetParameterResourceName(CGparameter param);
1322 CG_API int CGENTRY cgGetParameterBufferIndex(CGparameter param);
1323 CG_API int CGENTRY cgGetParameterBufferOffset(CGparameter param);
1324 CG_API CGbuffer CGENTRY cgCreateBuffer(CGcontext context, int size, const void *data, CGbufferusage bufferUsage);
1325 CG_API void CGENTRY cgSetBufferData(CGbuffer buffer, int size, const void *data);
1326 CG_API void CGENTRY cgSetBufferSubData(CGbuffer buffer, int offset, int size, const void *data);
1327 CG_API void CGENTRY cgSetProgramBuffer(CGprogram program, int bufferIndex, CGbuffer buffer);
1328 CG_API void * CGENTRY cgMapBuffer(CGbuffer buffer, CGbufferaccess access);
1329 CG_API void CGENTRY cgUnmapBuffer(CGbuffer buffer);
1330 CG_API void CGENTRY cgDestroyBuffer(CGbuffer buffer);
1331 CG_API CGbuffer CGENTRY cgGetProgramBuffer(CGprogram program, int bufferIndex);
1332 CG_API int CGENTRY cgGetBufferSize(CGbuffer buffer);
1333 CG_API int CGENTRY cgGetProgramBufferMaxSize(CGprofile profile);
1334 CG_API int CGENTRY cgGetProgramBufferMaxIndex(CGprofile profile);
1335 CG_API CGbuffer CGENTRY cgGetEffectParameterBuffer(CGparameter param);
1336 CG_API void CGENTRY cgSetEffectParameterBuffer(CGparameter param, CGbuffer buffer);
1337
1338 #endif
1339
1340 #ifdef __cplusplus
1341 }
1342 #endif
1343
1344 #ifdef CG_APIENTRY_DEFINED
1345 # undef CG_APIENTRY_DEFINED
1346 # undef APIENTRY
1347 #endif
1348
1349 #ifdef CG_WINGDIAPI_DEFINED
1350 # undef CG_WINGDIAPI_DEFINED
1351 # undef WINGDIAPI
1352 #endif
1353
1354 #endif

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.22