cg.h   cg.h 
/* /*
* *
* Copyright (c) 2002-2004, NVIDIA Corporation. * Copyright (c) 2002-2006, NVIDIA Corporation.
* *
* *
* *
* NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion * NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion
* of your agreement to the following terms, and your use, installation, * of your agreement to the following terms, and your use, installation,
* modification or redistribution of this NVIDIA software constitutes * modification or redistribution of this NVIDIA software constitutes
* acceptance of these terms. If you do not agree with these terms, please do * acceptance of these terms. If you do not agree with these terms, please do
* not use, install, modify or redistribute this NVIDIA software. * not use, install, modify or redistribute this NVIDIA software.
* *
* *
* *
* In consideration of your agreement to abide by the following terms, and * In consideration of your agreement to abide by the following terms, and
* subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse, * subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse,
* under NVIDIA * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
* Software"), to use, reproduce, modify and redistribute the NVIDIA * Software"), to use, reproduce, modify and redistribute the NVIDIA
* Software, with or without modifications, in source and/or binary forms; * Software, with or without modifications, in source and/or binary forms;
* provided that if you redistribute the NVIDIA Software, you must retain t he * provided that if you redistribute the NVIDIA Software, you must retain t he
* copyright notice of NVIDIA, this notice and the following text and * copyright notice of NVIDIA, this notice and the following text and
* disclaimers in all such redistributions of the NVIDIA Software. Neither the * disclaimers in all such redistributions of the NVIDIA Software. Neither the
* name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed * name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed
* to endorse or promote products derived from the NVIDIA Software without * to endorse or promote products derived from the NVIDIA Software without
* specific prior written permission from NVIDIA. Except as expressly stat ed * specific prior written permission from NVIDIA. Except as expressly stat ed
* in this notice, no other rights or licenses express or implied, are gran ted * in this notice, no other rights or licenses express or implied, are gran ted
* by NVIDIA herein, including but not limited to any patent rights that ma y be * by NVIDIA herein, including but not limited to any patent rights that ma y be
skipping to change at line 55 skipping to change at line 55
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE NVIDIA SOFTWARE, * REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE NVIDIA SOFTWARE,
* HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING * HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING
* NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVI SED * NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVI SED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
#ifndef _cg_h #ifndef _cg_h
#define _cg_h #define _cg_h
#define CG_VERSION_NUM 1400 /*************************************************************************/
/*** CG Run-Time Library API ***/
/*************************************************************************/
// Set up for either Win32 import/export/lib. #define CG_VERSION_NUM 1502
#ifndef CGDLL_API
#ifdef WIN32 #ifdef _WIN32
#ifdef CGDLL_EXPORTS # ifndef APIENTRY /* From Win32's <windef.h> */
#define CGDLL_API __declspec(dllexport) # define CG_APIENTRY_DEFINED
#elif defined (CG_LIB) # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLAND
#define CGDLL_API C__) || defined(__LCC__)
#else # define APIENTRY __stdcall
#define CGDLL_API __declspec(dllimport) # else
#endif # define APIENTRY
#else # endif
#define CGDLL_API # endif
# ifndef WINGDIAPI /* From Win32's <wingdi.h> and <winnt.h> */
# define CG_WINGDIAPI_DEFINED
# define WINGDIAPI __declspec(dllimport)
# endif
#endif /* _WIN32 */
/* Set up for either Win32 import/export/lib. */
#ifndef CG_API
# ifdef _WIN32
# ifdef CG_EXPORTS
# define CG_API __declspec(dllexport)
# elif defined (CG_LIB)
# define CG_API
# else
# define CG_API __declspec(dllimport)
# endif
# else
# define CG_API
# endif
#endif #endif
#ifndef CGFX_API
# define CGFX_API CG_API
#endif #endif
/*************************************************************************/ #ifndef CGENTRY
/*** CG Run-Time Library API ***/ # ifdef _WIN32
/*************************************************************************/ # define CGENTRY __cdecl
# else
# define CGENTRY
# endif
#endif
/*************************************************************************/ /*************************************************************************/
/*** Data types and enumerants ***/ /*** Data types and enumerants ***/
/*************************************************************************/ /*************************************************************************/
typedef int CGbool; typedef int CGbool;
#define CG_FALSE ((CGbool)0) #define CG_FALSE ((CGbool)0)
#define CG_TRUE ((CGbool)1) #define CG_TRUE ((CGbool)1)
typedef struct _CGcontext *CGcontext; typedef struct _CGcontext *CGcontext;
typedef struct _CGprogram *CGprogram; typedef struct _CGprogram *CGprogram;
typedef struct _CGparameter *CGparameter; typedef struct _CGparameter *CGparameter;
#ifndef CG_NO_CGFX_API
typedef struct _CGeffect *CGeffect; typedef struct _CGeffect *CGeffect;
typedef struct _CGtechnique *CGtechnique; typedef struct _CGtechnique *CGtechnique;
typedef struct _CGpass *CGpass; typedef struct _CGpass *CGpass;
typedef struct _CGstate *CGstate; typedef struct _CGstate *CGstate;
typedef struct _CGstateassignment *CGstateassignment; typedef struct _CGstateassignment *CGstateassignment;
typedef struct _CGannotation *CGannotation; typedef struct _CGannotation *CGannotation;
#endif /* CG_NO_CGFX_API */
typedef void *CGhandle; typedef void *CGhandle;
typedef CGbool (*CGstatecallback)(CGstateassignment);
//!!! PREPROCESS BEGIN //!!! PREPROCESS BEGIN
typedef enum typedef enum
{ {
CG_UNKNOWN_TYPE, CG_UNKNOWN_TYPE,
CG_STRUCT, CG_STRUCT,
CG_ARRAY, CG_ARRAY,
CG_TYPE_START_ENUM = 1024, CG_TYPE_START_ENUM = 1024,
# define CG_DATATYPE_MACRO(name, compiler_name, enum_name, base_name, ncols , nrows, pc) \ # define CG_DATATYPE_MACRO(name, compiler_name, enum_name, base_name, ncols , nrows, pc) \
enum_name , enum_name ,
#include <Cg/cg_datatypes.h> #include <Cg/cg_datatypes.h>
# undef CG_DATATYPE_MACRO
} CGtype; } CGtype;
typedef enum typedef enum
{ {
# define CG_BINDLOCATION_MACRO(name,enum_name,compiler_name,\ # define CG_BINDLOCATION_MACRO(name,enum_name,compiler_name,\
enum_int,addressable,param_type) \ enum_int,addressable,param_type) \
enum_name = enum_int, enum_name = enum_int,
#include <Cg/cg_bindlocations.h> #include <Cg/cg_bindlocations.h>
CG_UNDEFINED, CG_UNDEFINED = 3256,
} CGresource; } CGresource;
typedef enum typedef enum
{ {
CG_PROFILE_START = 6144, CG_PROFILE_START = 6144,
CG_PROFILE_UNKNOWN, CG_PROFILE_UNKNOWN,
# define CG_PROFILE_MACRO(name, compiler_id, compiler_id_caps, compiler_opt ,int_id,vertex_profile) \ # define CG_PROFILE_MACRO(name, compiler_id, compiler_id_caps, compiler_opt ,int_id,vertex_profile) \
CG_PROFILE_##compiler_id_caps = int_id, CG_PROFILE_##compiler_id_caps = int_id,
skipping to change at line 167 skipping to change at line 196
//!!! PREPROCESS END //!!! PREPROCESS END
typedef enum typedef enum
{ {
# define CG_ENUM_MACRO(enum_name, enum_val) \ # define CG_ENUM_MACRO(enum_name, enum_val) \
enum_name = enum_val, enum_name = enum_val,
# include <Cg/cg_enums.h> # include <Cg/cg_enums.h>
} CGenum; } CGenum;
#include <stdarg.h> typedef enum
{
CG_UNKNOWN_DOMAIN = 0,
CG_FIRST_DOMAIN = 1,
CG_VERTEX_DOMAIN = 1,
CG_FRAGMENT_DOMAIN,
CG_GEOMETRY_DOMAIN,
CG_NUMBER_OF_DOMAINS
} CGdomain;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
typedef void (*CGerrorCallbackFunc)(void); typedef CGbool (CGENTRY * CGstatecallback)(CGstateassignment);
typedef void (*CGerrorHandlerFunc)(CGcontext ctx, CGerror err, void *data); typedef void (CGENTRY * CGerrorCallbackFunc)(void);
typedef void (CGENTRY * CGerrorHandlerFunc)(CGcontext ctx, CGerror err, voi
d *data);
/*************************************************************************/ /*************************************************************************/
/*** Functions ***/ /*** Functions ***/
/*************************************************************************/ /*************************************************************************/
#ifndef CG_EXPLICIT #ifndef CG_EXPLICIT
/*** Context functions ***/ /*** Context functions ***/
CGDLL_API CGcontext cgCreateContext(void); CG_API CGcontext CGENTRY cgCreateContext(void);
CGDLL_API void cgDestroyContext(CGcontext ctx); CG_API void CGENTRY cgDestroyContext(CGcontext ctx);
CGDLL_API CGbool cgIsContext(CGcontext ctx); CG_API CGbool CGENTRY cgIsContext(CGcontext ctx);
CGDLL_API const char *cgGetLastListing(CGcontext ctx); CG_API const char * CGENTRY cgGetLastListing(CGcontext ctx);
CGDLL_API void cgSetLastListing(CGhandle handle, const char *listing); CG_API void CGENTRY cgSetLastListing(CGhandle handle, const char *listing);
CGDLL_API void cgSetAutoCompile(CGcontext ctx, CGenum flag); CG_API void CGENTRY cgSetAutoCompile(CGcontext ctx, CGenum flag);
CGDLL_API CGenum cgGetAutoCompile(CGcontext ctx); CG_API CGenum CGENTRY cgGetAutoCompile(CGcontext ctx);
/*** Program functions ***/ /*** Program functions ***/
CGDLL_API CGprogram cgCreateProgram(CGcontext ctx,
CG_API CGprogram CGENTRY cgCreateProgram(CGcontext ctx,
CGenum program_type, CGenum program_type,
const char *program, const char *program,
CGprofile profile, CGprofile profile,
const char *entry, const char *entry,
const char **args); const char **args);
CGDLL_API CGprogram cgCreateProgramFromFile(CGcontext ctx, CG_API CGprogram CGENTRY cgCreateProgramFromFile(CGcontext ctx,
CGenum program_type, CGenum program_type,
const char *program_file, const char *program_file,
CGprofile profile, CGprofile profile,
const char *entry, const char *entry,
const char **args); const char **args);
CGDLL_API CGprogram cgCopyProgram(CGprogram program); CG_API CGprogram CGENTRY cgCopyProgram(CGprogram program);
CGDLL_API void cgDestroyProgram(CGprogram program); CG_API void CGENTRY cgDestroyProgram(CGprogram program);
CGDLL_API CGprogram cgGetFirstProgram(CGcontext ctx); CG_API CGprogram CGENTRY cgGetFirstProgram(CGcontext ctx);
CGDLL_API CGprogram cgGetNextProgram(CGprogram current); CG_API CGprogram CGENTRY cgGetNextProgram(CGprogram current);
CGDLL_API CGcontext cgGetProgramContext(CGprogram prog); CG_API CGcontext CGENTRY cgGetProgramContext(CGprogram prog);
CGDLL_API CGbool cgIsProgram(CGprogram program); CG_API CGbool CGENTRY cgIsProgram(CGprogram program);
CGDLL_API void cgCompileProgram(CGprogram program); CG_API void CGENTRY cgCompileProgram(CGprogram program);
CGDLL_API CGbool cgIsProgramCompiled(CGprogram program); CG_API CGbool CGENTRY cgIsProgramCompiled(CGprogram program);
CGDLL_API const char *cgGetProgramString(CGprogram prog, CGenum pname); CG_API const char * CGENTRY cgGetProgramString(CGprogram prog, CGenum pname
CGDLL_API CGprofile cgGetProgramProfile(CGprogram prog); );
CGDLL_API char const * const *cgGetProgramOptions(CGprogram prog); CG_API CGprofile CGENTRY cgGetProgramProfile(CGprogram prog);
CGDLL_API void cgSetProgramProfile(CGprogram prog, CGprofile profile); CG_API char const * const * CGENTRY cgGetProgramOptions(CGprogram prog);
CG_API void CGENTRY cgSetProgramProfile(CGprogram prog, CGprofile profile);
CGDLL_API void cgSetPassProgramParameters(CGprogram); CG_API void CGENTRY cgSetPassProgramParameters(CGprogram);
/*** Parameter functions ***/ /*** Parameter functions ***/
CGDLL_API CGparameter cgCreateParameter(CGcontext ctx, CGtype type); CG_API CGparameter CGENTRY cgCreateParameter(CGcontext ctx, CGtype type);
CGDLL_API CGparameter cgCreateParameterArray(CGcontext ctx, CG_API CGparameter CGENTRY cgCreateParameterArray(CGcontext ctx,
CGtype type, CGtype type,
int length); int length);
CGDLL_API CGparameter cgCreateParameterMultiDimArray(CGcontext ctx, CG_API CGparameter CGENTRY cgCreateParameterMultiDimArray(CGcontext ctx,
CGtype type, CGtype type,
int dim, int dim,
const int *lengths); const int *lengths);
CGDLL_API void cgDestroyParameter(CGparameter param); CG_API void CGENTRY cgDestroyParameter(CGparameter param);
CGDLL_API void cgConnectParameter(CGparameter from, CGparameter to); CG_API void CGENTRY cgConnectParameter(CGparameter from, CGparameter to);
CGDLL_API void cgDisconnectParameter(CGparameter param); CG_API void CGENTRY cgDisconnectParameter(CGparameter param);
CGDLL_API CGparameter cgGetConnectedParameter(CGparameter param); CG_API CGparameter CGENTRY cgGetConnectedParameter(CGparameter param);
CGDLL_API int cgGetNumConnectedToParameters(CGparameter param); CG_API int CGENTRY cgGetNumConnectedToParameters(CGparameter param);
CGDLL_API CGparameter cgGetConnectedToParameter(CGparameter param, int inde CG_API CGparameter CGENTRY cgGetConnectedToParameter(CGparameter param, int
x); index);
CGDLL_API CGparameter cgGetNamedParameter(CGprogram prog, const char *name) CG_API CGparameter CGENTRY cgGetNamedParameter(CGprogram prog, const char *
; name);
CGDLL_API CGparameter cgGetNamedProgramParameter(CGprogram prog, CG_API CGparameter CGENTRY cgGetNamedProgramParameter(CGprogram prog,
CGenum name_space, CGenum name_space,
const char *name); const char *name);
CGDLL_API CGparameter cgGetFirstParameter(CGprogram prog, CGenum name_space CG_API CGparameter CGENTRY cgGetFirstParameter(CGprogram prog, CGenum name_
); space);
CGDLL_API CGparameter cgGetNextParameter(CGparameter current); CG_API CGparameter CGENTRY cgGetNextParameter(CGparameter current);
CGDLL_API CGparameter cgGetFirstLeafParameter(CGprogram prog, CGenum name_s CG_API CGparameter CGENTRY cgGetFirstLeafParameter(CGprogram prog, CGenum n
pace); ame_space);
CGDLL_API CGparameter cgGetNextLeafParameter(CGparameter current); CG_API CGparameter CGENTRY cgGetNextLeafParameter(CGparameter current);
CGDLL_API CGparameter cgGetFirstStructParameter(CGparameter param); CG_API CGparameter CGENTRY cgGetFirstStructParameter(CGparameter param);
CGDLL_API CGparameter cgGetNamedStructParameter(CGparameter param, CG_API CGparameter CGENTRY cgGetNamedStructParameter(CGparameter param,
const char *name); const char *name);
CGDLL_API CGparameter cgGetFirstDependentParameter(CGparameter param); CG_API CGparameter CGENTRY cgGetFirstDependentParameter(CGparameter param);
CGDLL_API CGparameter cgGetArrayParameter(CGparameter aparam, int index); CG_API CGparameter CGENTRY cgGetArrayParameter(CGparameter aparam, int inde
CGDLL_API int cgGetArrayDimension(CGparameter param); x);
CGDLL_API CGtype cgGetArrayType(CGparameter param); CG_API int CGENTRY cgGetArrayDimension(CGparameter param);
CGDLL_API int cgGetArraySize(CGparameter param, int dimension); CG_API CGtype CGENTRY cgGetArrayType(CGparameter param);
CGDLL_API int cgGetArrayTotalSize(CGparameter param); CG_API int CGENTRY cgGetArraySize(CGparameter param, int dimension);
CGDLL_API void cgSetArraySize(CGparameter param, int size); CG_API int CGENTRY cgGetArrayTotalSize(CGparameter param);
CGDLL_API void cgSetMultiDimArraySize(CGparameter param, const int *sizes); CG_API void CGENTRY cgSetArraySize(CGparameter param, int size);
CG_API void CGENTRY cgSetMultiDimArraySize(CGparameter param, const int *si
zes);
CGDLL_API CGprogram cgGetParameterProgram(CGparameter param); CG_API CGprogram CGENTRY cgGetParameterProgram(CGparameter param);
CGDLL_API CGcontext cgGetParameterContext(CGparameter param); CG_API CGcontext CGENTRY cgGetParameterContext(CGparameter param);
CGDLL_API CGbool cgIsParameter(CGparameter param); CG_API CGbool CGENTRY cgIsParameter(CGparameter param);
CGDLL_API const char *cgGetParameterName(CGparameter param); CG_API const char * CGENTRY cgGetParameterName(CGparameter param);
CGDLL_API CGtype cgGetParameterType(CGparameter param); CG_API CGtype CGENTRY cgGetParameterType(CGparameter param);
CGDLL_API CGtype cgGetParameterBaseType(CGparameter param); CG_API CGtype CGENTRY cgGetParameterBaseType(CGparameter param);
CGDLL_API CGparameterclass cgGetParameterClass(CGparameter param); CG_API CGparameterclass CGENTRY cgGetParameterClass(CGparameter param);
CGDLL_API int cgGetParameterRows(CGparameter param); CG_API int CGENTRY cgGetParameterRows(CGparameter param);
CGDLL_API int cgGetParameterColumns(CGparameter param); CG_API int CGENTRY cgGetParameterColumns(CGparameter param);
CGDLL_API CGtype cgGetParameterNamedType(CGparameter param); CG_API CGtype CGENTRY cgGetParameterNamedType(CGparameter param);
CGDLL_API const char *cgGetParameterSemantic(CGparameter param); CG_API const char * CGENTRY cgGetParameterSemantic(CGparameter param);
CGDLL_API CGresource cgGetParameterResource(CGparameter param); CG_API CGresource CGENTRY cgGetParameterResource(CGparameter param);
CGDLL_API CGresource cgGetParameterBaseResource(CGparameter param); CG_API CGresource CGENTRY cgGetParameterBaseResource(CGparameter param);
CGDLL_API unsigned long cgGetParameterResourceIndex(CGparameter param); CG_API unsigned long CGENTRY cgGetParameterResourceIndex(CGparameter param)
CGDLL_API CGenum cgGetParameterVariability(CGparameter param); ;
CGDLL_API CGenum cgGetParameterDirection(CGparameter param); CG_API CGenum CGENTRY cgGetParameterVariability(CGparameter param);
CGDLL_API CGbool cgIsParameterReferenced(CGparameter param); CG_API CGenum CGENTRY cgGetParameterDirection(CGparameter param);
CGDLL_API CGbool cgIsParameterUsed(CGparameter param, CGhandle handle); CG_API CGbool CGENTRY cgIsParameterReferenced(CGparameter param);
CGDLL_API const double *cgGetParameterValues(CGparameter param, CG_API CGbool CGENTRY cgIsParameterUsed(CGparameter param, CGhandle handle)
;
CG_API const double * CGENTRY cgGetParameterValues(CGparameter param,
CGenum value_type, CGenum value_type,
int *nvalues); int *nvalues);
CGDLL_API void cgSetParameterValuedr(CGparameter param, int n, const double CG_API void CGENTRY cgSetParameterValuedr(CGparameter param, int n, const d
*vals); ouble *vals);
CGDLL_API void cgSetParameterValuedc(CGparameter param, int n, const double CG_API void CGENTRY cgSetParameterValuedc(CGparameter param, int n, const d
*vals); ouble *vals);
CGDLL_API void cgSetParameterValuefr(CGparameter param, int n, const float CG_API void CGENTRY cgSetParameterValuefr(CGparameter param, int n, const f
*vals); loat *vals);
CGDLL_API void cgSetParameterValuefc(CGparameter param, int n, const float CG_API void CGENTRY cgSetParameterValuefc(CGparameter param, int n, const f
*vals); loat *vals);
CGDLL_API void cgSetParameterValueir(CGparameter param, int n, const int *v CG_API void CGENTRY cgSetParameterValueir(CGparameter param, int n, const i
als); nt *vals);
CGDLL_API void cgSetParameterValueic(CGparameter param, int n, const int *v CG_API void CGENTRY cgSetParameterValueic(CGparameter param, int n, const i
als); nt *vals);
CGDLL_API int cgGetParameterValuedr(CGparameter param, int n, double *vals) CG_API int CGENTRY cgGetParameterValuedr(CGparameter param, int n, double *
; vals);
CGDLL_API int cgGetParameterValuedc(CGparameter param, int n, double *vals) CG_API int CGENTRY cgGetParameterValuedc(CGparameter param, int n, double *
; vals);
CGDLL_API int cgGetParameterValuefr(CGparameter param, int n, float *vals); CG_API int CGENTRY cgGetParameterValuefr(CGparameter param, int n, float *v
CGDLL_API int cgGetParameterValuefc(CGparameter param, int n, float *vals); als);
CGDLL_API int cgGetParameterValueir(CGparameter param, int n, int *vals); CG_API int CGENTRY cgGetParameterValuefc(CGparameter param, int n, float *v
CGDLL_API int cgGetParameterValueic(CGparameter param, int n, int *vals); als);
CGDLL_API const char *cgGetStringParameterValue(CGparameter param); CG_API int CGENTRY cgGetParameterValueir(CGparameter param, int n, int *val
CGDLL_API void cgSetStringParameterValue(CGparameter param, const char *str s);
); CG_API int CGENTRY cgGetParameterValueic(CGparameter param, int n, int *val
s);
CG_API const char * CGENTRY cgGetStringParameterValue(CGparameter param);
CG_API void CGENTRY cgSetStringParameterValue(CGparameter param, const char
*str);
CGDLL_API int cgGetParameterOrdinalNumber(CGparameter param); CG_API int CGENTRY cgGetParameterOrdinalNumber(CGparameter param);
CGDLL_API CGbool cgIsParameterGlobal(CGparameter param); CG_API CGbool CGENTRY cgIsParameterGlobal(CGparameter param);
CGDLL_API int cgGetParameterIndex(CGparameter param); CG_API int CGENTRY cgGetParameterIndex(CGparameter param);
CGDLL_API void cgSetParameterVariability(CGparameter param, CGenum vary); CG_API void CGENTRY cgSetParameterVariability(CGparameter param, CGenum var
CGDLL_API void cgSetParameterSemantic(CGparameter param, const char *semant y);
ic); CG_API void CGENTRY cgSetParameterSemantic(CGparameter param, const char *s
emantic);
CGDLL_API void cgSetParameter1f(CGparameter param, float x); CG_API void CGENTRY cgSetParameter1f(CGparameter param, float x);
CGDLL_API void cgSetParameter2f(CGparameter param, float x, float y); CG_API void CGENTRY cgSetParameter2f(CGparameter param, float x, float y);
CGDLL_API void cgSetParameter3f(CGparameter param, float x, float y, float CG_API void CGENTRY cgSetParameter3f(CGparameter param, float x, float y, f
z); loat z);
CGDLL_API void cgSetParameter4f(CGparameter param, CG_API void CGENTRY cgSetParameter4f(CGparameter param,
float x, float x,
float y, float y,
float z, float z,
float w); float w);
CGDLL_API void cgSetParameter1d(CGparameter param, double x); CG_API void CGENTRY cgSetParameter1d(CGparameter param, double x);
CGDLL_API void cgSetParameter2d(CGparameter param, double x, double y); CG_API void CGENTRY cgSetParameter2d(CGparameter param, double x, double y)
CGDLL_API void cgSetParameter3d(CGparameter param, ;
CG_API void CGENTRY cgSetParameter3d(CGparameter param,
double x, double x,
double y, double y,
double z); double z);
CGDLL_API void cgSetParameter4d(CGparameter param, CG_API void CGENTRY cgSetParameter4d(CGparameter param,
double x, double x,
double y, double y,
double z, double z,
double w); double w);
CGDLL_API void cgSetParameter1i(CGparameter param, int x); CG_API void CGENTRY cgSetParameter1i(CGparameter param, int x);
CGDLL_API void cgSetParameter2i(CGparameter param, int x, int y); CG_API void CGENTRY cgSetParameter2i(CGparameter param, int x, int y);
CGDLL_API void cgSetParameter3i(CGparameter param, int x, int y, int z); CG_API void CGENTRY cgSetParameter3i(CGparameter param, int x, int y, int z
CGDLL_API void cgSetParameter4i(CGparameter param, );
CG_API void CGENTRY cgSetParameter4i(CGparameter param,
int x, int x,
int y, int y,
int z, int z,
int w); int w);
CGDLL_API void cgSetParameter1iv(CGparameter param, const int *v); CG_API void CGENTRY cgSetParameter1iv(CGparameter param, const int *v);
CGDLL_API void cgSetParameter2iv(CGparameter param, const int *v); CG_API void CGENTRY cgSetParameter2iv(CGparameter param, const int *v);
CGDLL_API void cgSetParameter3iv(CGparameter param, const int *v); CG_API void CGENTRY cgSetParameter3iv(CGparameter param, const int *v);
CGDLL_API void cgSetParameter4iv(CGparameter param, const int *v); CG_API void CGENTRY cgSetParameter4iv(CGparameter param, const int *v);
CGDLL_API void cgSetParameter1fv(CGparameter param, const float *v); CG_API void CGENTRY cgSetParameter1fv(CGparameter param, const float *v);
CGDLL_API void cgSetParameter2fv(CGparameter param, const float *v); CG_API void CGENTRY cgSetParameter2fv(CGparameter param, const float *v);
CGDLL_API void cgSetParameter3fv(CGparameter param, const float *v); CG_API void CGENTRY cgSetParameter3fv(CGparameter param, const float *v);
CGDLL_API void cgSetParameter4fv(CGparameter param, const float *v); CG_API void CGENTRY cgSetParameter4fv(CGparameter param, const float *v);
CGDLL_API void cgSetParameter1dv(CGparameter param, const double *v); CG_API void CGENTRY cgSetParameter1dv(CGparameter param, const double *v);
CGDLL_API void cgSetParameter2dv(CGparameter param, const double *v); CG_API void CGENTRY cgSetParameter2dv(CGparameter param, const double *v);
CGDLL_API void cgSetParameter3dv(CGparameter param, const double *v); CG_API void CGENTRY cgSetParameter3dv(CGparameter param, const double *v);
CGDLL_API void cgSetParameter4dv(CGparameter param, const double *v); CG_API void CGENTRY cgSetParameter4dv(CGparameter param, const double *v);
CGDLL_API void cgSetMatrixParameterir(CGparameter param, const int *matrix) CG_API void CGENTRY cgSetMatrixParameterir(CGparameter param, const int *ma
; trix);
CGDLL_API void cgSetMatrixParameterdr(CGparameter param, const double *matr CG_API void CGENTRY cgSetMatrixParameterdr(CGparameter param, const double
ix); *matrix);
CGDLL_API void cgSetMatrixParameterfr(CGparameter param, const float *matri CG_API void CGENTRY cgSetMatrixParameterfr(CGparameter param, const float *
x); matrix);
CGDLL_API void cgSetMatrixParameteric(CGparameter param, const int *matrix) CG_API void CGENTRY cgSetMatrixParameteric(CGparameter param, const int *ma
; trix);
CGDLL_API void cgSetMatrixParameterdc(CGparameter param, const double *matr CG_API void CGENTRY cgSetMatrixParameterdc(CGparameter param, const double
ix); *matrix);
CGDLL_API void cgSetMatrixParameterfc(CGparameter param, const float *matri CG_API void CGENTRY cgSetMatrixParameterfc(CGparameter param, const float *
x); matrix);
CGDLL_API void cgGetMatrixParameterir(CGparameter param, int *matrix); CG_API void CGENTRY cgGetMatrixParameterir(CGparameter param, int *matrix);
CGDLL_API void cgGetMatrixParameterdr(CGparameter param, double *matrix); CG_API void CGENTRY cgGetMatrixParameterdr(CGparameter param, double *matri
CGDLL_API void cgGetMatrixParameterfr(CGparameter param, float *matrix); x);
CGDLL_API void cgGetMatrixParameteric(CGparameter param, int *matrix); CG_API void CGENTRY cgGetMatrixParameterfr(CGparameter param, float *matrix
CGDLL_API void cgGetMatrixParameterdc(CGparameter param, double *matrix); );
CGDLL_API void cgGetMatrixParameterfc(CGparameter param, float *matrix); CG_API void CGENTRY cgGetMatrixParameteric(CGparameter param, int *matrix);
CG_API void CGENTRY cgGetMatrixParameterdc(CGparameter param, double *matri
x);
CG_API void CGENTRY cgGetMatrixParameterfc(CGparameter param, float *matrix
);
CG_API CGparameter CGENTRY cgGetNamedSubParameter(CGparameter param, const
char *name);
/*** Type Functions ***/ /*** Type Functions ***/
CGDLL_API const char *cgGetTypeString(CGtype type); CG_API const char * CGENTRY cgGetTypeString(CGtype type);
CGDLL_API CGtype cgGetType(const char *type_string); CG_API CGtype CGENTRY cgGetType(const char *type_string);
CGDLL_API CGtype cgGetNamedUserType(CGhandle handle, const char *name); CG_API CGtype CGENTRY cgGetNamedUserType(CGhandle handle, const char *name) ;
CGDLL_API int cgGetNumUserTypes(CGhandle handle); CG_API int CGENTRY cgGetNumUserTypes(CGhandle handle);
CGDLL_API CGtype cgGetUserType(CGhandle handle, int index); CG_API CGtype CGENTRY cgGetUserType(CGhandle handle, int index);
CGDLL_API int cgGetNumParentTypes(CGtype type); CG_API int CGENTRY cgGetNumParentTypes(CGtype type);
CGDLL_API CGtype cgGetParentType(CGtype type, int index); CG_API CGtype CGENTRY cgGetParentType(CGtype type, int index);
CGDLL_API CGbool cgIsParentType(CGtype parent, CGtype child); CG_API CGbool CGENTRY cgIsParentType(CGtype parent, CGtype child);
CGDLL_API CGbool cgIsInterfaceType(CGtype type); CG_API CGbool CGENTRY cgIsInterfaceType(CGtype type);
/*** Resource Functions ***/ /*** Resource Functions ***/
CGDLL_API const char *cgGetResourceString(CGresource resource); CG_API const char * CGENTRY cgGetResourceString(CGresource resource);
CGDLL_API CGresource cgGetResource(const char *resource_string); CG_API CGresource CGENTRY cgGetResource(const char *resource_string);
/*** Enum Functions ***/ /*** Enum Functions ***/
CGDLL_API const char *cgGetEnumString(CGenum en); CG_API const char * CGENTRY cgGetEnumString(CGenum en);
CGDLL_API CGenum cgGetEnum(const char *enum_string); CG_API CGenum CGENTRY cgGetEnum(const char *enum_string);
/*** Profile Functions ***/ /*** Profile Functions ***/
CGDLL_API const char *cgGetProfileString(CGprofile profile); CG_API const char * CGENTRY cgGetProfileString(CGprofile profile);
CGDLL_API CGprofile cgGetProfile(const char *profile_string); CG_API CGprofile CGENTRY cgGetProfile(const char *profile_string);
/*** Error Functions ***/ /*** Error Functions ***/
CGDLL_API CGerror cgGetError(void); CG_API CGerror CGENTRY cgGetError(void);
CGDLL_API CGerror cgGetFirstError(void); CG_API CGerror CGENTRY cgGetFirstError(void);
CGDLL_API const char *cgGetErrorString(CGerror error); CG_API const char * CGENTRY cgGetErrorString(CGerror error);
CGDLL_API const char *cgGetLastErrorString(CGerror *error); CG_API const char * CGENTRY cgGetLastErrorString(CGerror *error);
CGDLL_API void cgSetErrorCallback(CGerrorCallbackFunc func); CG_API void CGENTRY cgSetErrorCallback(CGerrorCallbackFunc func);
CGDLL_API CGerrorCallbackFunc cgGetErrorCallback(void); CG_API CGerrorCallbackFunc CGENTRY cgGetErrorCallback(void);
CGDLL_API void cgSetErrorHandler(CGerrorHandlerFunc func, void *data); CG_API void CGENTRY cgSetErrorHandler(CGerrorHandlerFunc func, void *data);
CGDLL_API CGerrorHandlerFunc cgGetErrorHandler(void **data); CG_API CGerrorHandlerFunc CGENTRY cgGetErrorHandler(void **data);
/*** Misc Functions ***/ /*** Misc Functions ***/
CGDLL_API const char *cgGetString(CGenum sname); CG_API const char * CGENTRY cgGetString(CGenum sname);
/*** CgFX Functions ***/ /*** CgFX Functions ***/
CGDLL_API CGeffect cgCreateEffect(CGcontext, const char *code, const char * #ifndef CG_NO_CGFX_API
*args); CGFX_API CGeffect CGENTRY cgCreateEffect(CGcontext, const char *code, const
CGDLL_API CGeffect cgCreateEffectFromFile(CGcontext, const char *filename, char **args);
CGFX_API CGeffect CGENTRY cgCreateEffectFromFile(CGcontext, const char *fil
ename,
const char **args); const char **args);
CGDLL_API void cgDestroyEffect(CGeffect); CGFX_API void CGENTRY cgDestroyEffect(CGeffect);
CGDLL_API CGcontext cgGetEffectContext(CGeffect); CGFX_API CGcontext CGENTRY cgGetEffectContext(CGeffect);
CGDLL_API CGbool cgIsEffect(CGeffect effect); CGFX_API CGbool CGENTRY cgIsEffect(CGeffect effect);
CGDLL_API CGeffect cgGetFirstEffect(CGcontext); CGFX_API CGeffect CGENTRY cgGetFirstEffect(CGcontext);
CGDLL_API CGeffect cgGetNextEffect(CGeffect); CGFX_API CGeffect CGENTRY cgGetNextEffect(CGeffect);
CGDLL_API CGprogram cgCreateProgramFromEffect(CGeffect effect, CGFX_API CGprogram CGENTRY cgCreateProgramFromEffect(CGeffect effect,
CGprofile profile, CGprofile profile,
const char *entry, const char *entry,
const char **args); const char **args);
CGDLL_API CGtechnique cgGetFirstTechnique(CGeffect); CGFX_API CGtechnique CGENTRY cgGetFirstTechnique(CGeffect);
CGDLL_API CGtechnique cgGetNextTechnique(CGtechnique); CGFX_API CGtechnique CGENTRY cgGetNextTechnique(CGtechnique);
CGDLL_API CGtechnique cgGetNamedTechnique(CGeffect, const char *name); CGFX_API CGtechnique CGENTRY cgGetNamedTechnique(CGeffect, const char *name
CGDLL_API const char *cgGetTechniqueName(CGtechnique); );
CGDLL_API CGbool cgIsTechnique(CGtechnique); CGFX_API const char * CGENTRY cgGetTechniqueName(CGtechnique);
CGDLL_API CGbool cgValidateTechnique(CGtechnique); CGFX_API CGbool CGENTRY cgIsTechnique(CGtechnique);
CGDLL_API CGbool cgIsTechniqueValidated(CGtechnique); CGFX_API CGbool CGENTRY cgValidateTechnique(CGtechnique);
CGDLL_API CGeffect cgGetTechniqueEffect(CGtechnique); CGFX_API CGbool CGENTRY cgIsTechniqueValidated(CGtechnique);
CGFX_API CGeffect CGENTRY cgGetTechniqueEffect(CGtechnique);
CGDLL_API CGpass cgGetFirstPass(CGtechnique); CGFX_API CGpass CGENTRY cgGetFirstPass(CGtechnique);
CGDLL_API CGpass cgGetNamedPass(CGtechnique, const char *name); CGFX_API CGpass CGENTRY cgGetNamedPass(CGtechnique, const char *name);
CGDLL_API CGpass cgGetNextPass(CGpass); CGFX_API CGpass CGENTRY cgGetNextPass(CGpass);
CGDLL_API CGbool cgIsPass(CGpass); CGFX_API CGbool CGENTRY cgIsPass(CGpass);
CGDLL_API const char *cgGetPassName(CGpass); CGFX_API const char * CGENTRY cgGetPassName(CGpass);
CGDLL_API CGtechnique cgGetPassTechnique(CGpass); CGFX_API CGtechnique CGENTRY cgGetPassTechnique(CGpass);
CGDLL_API void cgSetPassState(CGpass); CGFX_API void CGENTRY cgSetPassState(CGpass);
CGDLL_API void cgResetPassState(CGpass); CGFX_API void CGENTRY cgResetPassState(CGpass);
CGDLL_API CGstateassignment cgGetFirstStateAssignment(CGpass); CGFX_API CGstateassignment CGENTRY cgGetFirstStateAssignment(CGpass);
CGDLL_API CGstateassignment cgGetNamedStateAssignment(CGpass, const char *n CGFX_API CGstateassignment CGENTRY cgGetNamedStateAssignment(CGpass, const
ame); char *name);
CGDLL_API CGstateassignment cgGetNextStateAssignment(CGstateassignment); CGFX_API CGstateassignment CGENTRY cgGetNextStateAssignment(CGstateassignme
CGDLL_API CGbool cgIsStateAssignment(CGstateassignment); nt);
CGDLL_API CGbool cgCallStateSetCallback(CGstateassignment); CGFX_API CGbool CGENTRY cgIsStateAssignment(CGstateassignment);
CGDLL_API CGbool cgCallStateValidateCallback(CGstateassignment); CGFX_API CGbool CGENTRY cgCallStateSetCallback(CGstateassignment);
CGDLL_API CGbool cgCallStateResetCallback(CGstateassignment); CGFX_API CGbool CGENTRY cgCallStateValidateCallback(CGstateassignment);
CGDLL_API CGpass cgGetStateAssignmentPass(CGstateassignment); CGFX_API CGbool CGENTRY cgCallStateResetCallback(CGstateassignment);
CGDLL_API CGparameter cgGetSamplerStateAssignmentParameter(CGstateassignmen CGFX_API CGpass CGENTRY cgGetStateAssignmentPass(CGstateassignment);
t); CGFX_API CGparameter CGENTRY cgGetSamplerStateAssignmentParameter(CGstateas
signment);
CGDLL_API const float *cgGetFloatStateAssignmentValues(CGstateassignment, i CGFX_API const float * CGENTRY cgGetFloatStateAssignmentValues(CGstateassig
nt *nVals); nment, int *nVals);
CGDLL_API const int *cgGetIntStateAssignmentValues(CGstateassignment, int * CGFX_API const int * CGENTRY cgGetIntStateAssignmentValues(CGstateassignmen
nVals); t, int *nVals);
CGDLL_API const CGbool *cgGetBoolStateAssignmentValues(CGstateassignment, i CGFX_API const CGbool * CGENTRY cgGetBoolStateAssignmentValues(CGstateassig
nt *nVals); nment, int *nVals);
CGDLL_API const char *cgGetStringStateAssignmentValue(CGstateassignment); CGFX_API const char * CGENTRY cgGetStringStateAssignmentValue(CGstateassign
CGDLL_API CGprogram cgGetProgramStateAssignmentValue(CGstateassignment); ment);
CGDLL_API CGparameter cgGetTextureStateAssignmentValue(CGstateassignment); CGFX_API CGprogram CGENTRY cgGetProgramStateAssignmentValue(CGstateassignme
CGDLL_API CGparameter cgGetSamplerStateAssignmentValue(CGstateassignment); nt);
CGDLL_API int cgGetStateAssignmentIndex(CGstateassignment); CGFX_API CGparameter CGENTRY cgGetTextureStateAssignmentValue(CGstateassign
ment);
CGFX_API CGparameter CGENTRY cgGetSamplerStateAssignmentValue(CGstateassign
ment);
CGFX_API int CGENTRY cgGetStateAssignmentIndex(CGstateassignment);
CGDLL_API int cgGetNumDependentStateAssignmentParameters(CGstateassignment) CGFX_API int CGENTRY cgGetNumDependentStateAssignmentParameters(CGstateassi
; gnment);
CGDLL_API CGparameter cgGetDependentStateAssignmentParameter(CGstateassignm CGFX_API CGparameter CGENTRY cgGetDependentStateAssignmentParameter(CGstate
ent, int index); assignment, int index);
CGDLL_API CGstate cgGetStateAssignmentState(CGstateassignment); CGFX_API CGstate CGENTRY cgGetStateAssignmentState(CGstateassignment);
CGDLL_API CGstate cgGetSamplerStateAssignmentState(CGstateassignment); CGFX_API CGstate CGENTRY cgGetSamplerStateAssignmentState(CGstateassignment
);
CGDLL_API CGstate cgCreateState(CGcontext, const char *name, CGtype); CGFX_API CGstate CGENTRY cgCreateState(CGcontext, const char *name, CGtype)
CGDLL_API CGstate cgCreateArrayState(CGcontext, const char *name, CGtype, i ;
nt nelems); CGFX_API CGstate CGENTRY cgCreateArrayState(CGcontext, const char *name, CG
CGDLL_API void cgSetStateCallbacks(CGstate, CGstatecallback set, CGstatecal type, int nelems);
lback reset, CGFX_API void CGENTRY cgSetStateCallbacks(CGstate, CGstatecallback set, CGs
tatecallback reset,
CGstatecallback validate); CGstatecallback validate);
CGDLL_API CGstatecallback cgGetStateSetCallback(CGstate); CGFX_API CGstatecallback CGENTRY cgGetStateSetCallback(CGstate);
CGDLL_API CGstatecallback cgGetStateResetCallback(CGstate); CGFX_API CGstatecallback CGENTRY cgGetStateResetCallback(CGstate);
CGDLL_API CGstatecallback cgGetStateValidateCallback(CGstate); CGFX_API CGstatecallback CGENTRY cgGetStateValidateCallback(CGstate);
CGDLL_API CGtype cgGetStateType(CGstate); CGFX_API CGcontext CGENTRY cgGetStateContext(CGstate);
CGDLL_API const char *cgGetStateName(CGstate); CGFX_API CGtype CGENTRY cgGetStateType(CGstate);
CGDLL_API CGstate cgGetNamedState(CGcontext, const char *name); CGFX_API const char * CGENTRY cgGetStateName(CGstate);
CGDLL_API CGstate cgGetFirstState(CGcontext); CGFX_API CGstate CGENTRY cgGetNamedState(CGcontext, const char *name);
CGDLL_API CGstate cgGetNextState(CGstate); CGFX_API CGstate CGENTRY cgGetFirstState(CGcontext);
CGDLL_API CGbool cgIsState(CGstate); CGFX_API CGstate CGENTRY cgGetNextState(CGstate);
CGDLL_API void cgAddStateEnumerant(CGstate, const char *name, int value); CGFX_API CGbool CGENTRY cgIsState(CGstate);
CGFX_API void CGENTRY cgAddStateEnumerant(CGstate, const char *name, int va
lue);
CGDLL_API CGstate cgCreateSamplerState(CGcontext, const char *name, CGtype) CGFX_API CGstate CGENTRY cgCreateSamplerState(CGcontext, const char *name,
; CGtype);
CGDLL_API CGstate cgCreateArraySamplerState(CGcontext, const char *name, CG CGFX_API CGstate CGENTRY cgCreateArraySamplerState(CGcontext, const char *n
type, int nelems); ame, CGtype, int nelems);
CGDLL_API CGstate cgGetNamedSamplerState(CGcontext, const char *name); CGFX_API CGstate CGENTRY cgGetNamedSamplerState(CGcontext, const char *name
CGDLL_API CGstate cgGetFirstSamplerState(CGcontext); );
CGFX_API CGstate CGENTRY cgGetFirstSamplerState(CGcontext);
CGDLL_API CGstateassignment cgGetFirstSamplerStateAssignment(CGparameter); CGFX_API CGstateassignment CGENTRY cgGetFirstSamplerStateAssignment(CGparam
CGDLL_API CGstateassignment cgGetNamedSamplerStateAssignment(CGparameter, c eter);
onst char *); CGFX_API CGstateassignment CGENTRY cgGetNamedSamplerStateAssignment(CGparam
CGDLL_API void cgSetSamplerState(CGparameter); eter, const char *);
CGFX_API void CGENTRY cgSetSamplerState(CGparameter);
CGDLL_API CGparameter cgGetNamedEffectParameter(CGeffect, const char *); CGFX_API CGparameter CGENTRY cgGetNamedEffectParameter(CGeffect, const char
CGDLL_API CGparameter cgGetFirstLeafEffectParameter(CGeffect); *);
CGDLL_API CGparameter cgGetFirstEffectParameter(CGeffect); CGFX_API CGparameter CGENTRY cgGetFirstLeafEffectParameter(CGeffect);
CGDLL_API CGparameter cgGetEffectParameterBySemantic(CGeffect, const char * CGFX_API CGparameter CGENTRY cgGetFirstEffectParameter(CGeffect);
); CGFX_API CGparameter CGENTRY cgGetEffectParameterBySemantic(CGeffect, const
char *);
CGDLL_API CGannotation cgGetFirstTechniqueAnnotation(CGtechnique); CGFX_API CGannotation CGENTRY cgGetFirstTechniqueAnnotation(CGtechnique);
CGDLL_API CGannotation cgGetFirstPassAnnotation(CGpass); CGFX_API CGannotation CGENTRY cgGetFirstPassAnnotation(CGpass);
CGDLL_API CGannotation cgGetFirstParameterAnnotation(CGparameter); CGFX_API CGannotation CGENTRY cgGetFirstParameterAnnotation(CGparameter);
CGDLL_API CGannotation cgGetFirstProgramAnnotation(CGprogram); CGFX_API CGannotation CGENTRY cgGetFirstProgramAnnotation(CGprogram);
CGDLL_API CGannotation cgGetNextAnnotation(CGannotation); CGFX_API CGannotation CGENTRY cgGetFirstEffectAnnotation(CGeffect);
CGFX_API CGannotation CGENTRY cgGetNextAnnotation(CGannotation);
CGDLL_API CGannotation cgGetNamedTechniqueAnnotation(CGtechnique, const cha CGFX_API CGannotation CGENTRY cgGetNamedTechniqueAnnotation(CGtechnique, co
r *); nst char *);
CGDLL_API CGannotation cgGetNamedPassAnnotation(CGpass, const char *); CGFX_API CGannotation CGENTRY cgGetNamedPassAnnotation(CGpass, const char *
CGDLL_API CGannotation cgGetNamedParameterAnnotation(CGparameter, const cha );
r *); CGFX_API CGannotation CGENTRY cgGetNamedParameterAnnotation(CGparameter, co
CGDLL_API CGannotation cgGetNamedProgramAnnotation(CGprogram, const char *) nst char *);
; CGFX_API CGannotation CGENTRY cgGetNamedProgramAnnotation(CGprogram, const
char *);
CGFX_API CGannotation CGENTRY cgGetNamedEffectAnnotation(CGeffect, const ch
ar *);
CGDLL_API CGbool cgIsAnnotation(CGannotation); CGFX_API CGbool CGENTRY cgIsAnnotation(CGannotation);
CGDLL_API const char *cgGetAnnotationName(CGannotation); CGFX_API const char * CGENTRY cgGetAnnotationName(CGannotation);
CGDLL_API CGtype cgGetAnnotationType(CGannotation); CGFX_API CGtype CGENTRY cgGetAnnotationType(CGannotation);
CGDLL_API const float *cgGetFloatAnnotationValues(CGannotation, int *nvalue CGFX_API const float * CGENTRY cgGetFloatAnnotationValues(CGannotation, int
s); *nvalues);
CGDLL_API const int *cgGetIntAnnotationValues(CGannotation, int *nvalues); CGFX_API const int * CGENTRY cgGetIntAnnotationValues(CGannotation, int *nv
CGDLL_API const char *cgGetStringAnnotationValue(CGannotation); alues);
CGDLL_API const int *cgGetBooleanAnnotationValues(CGannotation, int *nvalue CGFX_API const char * CGENTRY cgGetStringAnnotationValue(CGannotation);
s); CGFX_API const CGbool * CGENTRY cgGetBoolAnnotationValues(CGannotation, int
*nvalues);
CGFX_API const int * CGENTRY cgGetBooleanAnnotationValues(CGannotation, int
*nvalues);
CGDLL_API int cgGetNumDependentAnnotationParameters(CGannotation); CGFX_API int CGENTRY cgGetNumDependentAnnotationParameters(CGannotation);
CGDLL_API CGparameter cgGetDependentAnnotationParameter(CGannotation, int i CGFX_API CGparameter CGENTRY cgGetDependentAnnotationParameter(CGannotation
ndex); , int index);
CGDLL_API void cgEvaluateProgram(CGprogram, float *, int ncomps, int nx, in CGFX_API void CGENTRY cgEvaluateProgram(CGprogram, float *, int ncomps, int
t ny, int nz); nx, int ny, int nz);
#endif /* CG_NO_CGFX_API */
/*** Cg 1.5 Additions ***/
#ifndef CG_NO_CGFX_API
CGFX_API CGbool CGENTRY cgSetEffectName(CGeffect, const char *name);
CGFX_API const char * CGENTRY cgGetEffectName(CGeffect);
CGFX_API CGeffect CGENTRY cgGetNamedEffect(CGcontext, const char *name);
CGFX_API CGparameter CGENTRY cgCreateEffectParameter(CGeffect, const char *
name, CGtype);
CGFX_API CGtechnique CGENTRY cgCreateTechnique(CGeffect, const char *name);
CGFX_API CGparameter CGENTRY cgCreateEffectParameterArray(CGeffect, const c
har *name, CGtype type, int length);
CGFX_API CGparameter CGENTRY cgCreateEffectParameterMultiDimArray(CGeffect,
const char *name, CGtype type, int dim, const int *lengths);
CGFX_API CGpass CGENTRY cgCreatePass(CGtechnique, const char *name);
CGFX_API CGstateassignment CGENTRY cgCreateStateAssignment(CGpass, CGstate)
;
CGFX_API CGstateassignment CGENTRY cgCreateStateAssignmentIndex(CGpass, CGs
tate, int index);
CGFX_API CGstateassignment CGENTRY cgCreateSamplerStateAssignment(CGparamet
er, CGstate);
CGFX_API CGbool CGENTRY cgSetFloatStateAssignment(CGstateassignment, float)
;
CGFX_API CGbool CGENTRY cgSetIntStateAssignment(CGstateassignment, int);
CGFX_API CGbool CGENTRY cgSetBoolStateAssignment(CGstateassignment, CGbool)
;
CGFX_API CGbool CGENTRY cgSetStringStateAssignment(CGstateassignment, const
char *);
CGFX_API CGbool CGENTRY cgSetProgramStateAssignment(CGstateassignment, CGpr
ogram);
CGFX_API CGbool CGENTRY cgSetSamplerStateAssignment(CGstateassignment, CGpa
rameter);
CGFX_API CGbool CGENTRY cgSetTextureStateAssignment(CGstateassignment, CGpa
rameter);
CGFX_API CGbool CGENTRY cgSetFloatArrayStateAssignment(CGstateassignment, c
onst float *vals);
CGFX_API CGbool CGENTRY cgSetIntArrayStateAssignment(CGstateassignment, con
st int *vals);
CGFX_API CGbool CGENTRY cgSetBoolArrayStateAssignment(CGstateassignment, co
nst CGbool *vals);
CGFX_API CGannotation CGENTRY cgCreateTechniqueAnnotation(CGtechnique, cons
t char *name, CGtype);
CGFX_API CGannotation CGENTRY cgCreatePassAnnotation(CGpass, const char *na
me, CGtype);
CGFX_API CGannotation CGENTRY cgCreateParameterAnnotation(CGparameter, cons
t char *name, CGtype);
CGFX_API CGannotation CGENTRY cgCreateProgramAnnotation(CGprogram, const ch
ar *name, CGtype);
CGFX_API CGannotation CGENTRY cgCreateEffectAnnotation(CGeffect, const char
*name, CGtype);
CGFX_API CGbool CGENTRY cgSetIntAnnotation(CGannotation, int value);
CGFX_API CGbool CGENTRY cgSetFloatAnnotation(CGannotation, float value);
CGFX_API CGbool CGENTRY cgSetBoolAnnotation(CGannotation, CGbool value);
CGFX_API CGbool CGENTRY cgSetStringAnnotation(CGannotation, const char *val
ue);
CGFX_API const char * CGENTRY cgGetStateEnumerantName(CGstate, int value);
CGFX_API int CGENTRY cgGetStateEnumerantValue(CGstate, const char *name);
CGFX_API CGeffect CGENTRY cgGetParameterEffect(CGparameter param);
#endif /* CG_NO_CGFX_API */
CG_API CGparameterclass CGENTRY cgGetTypeClass(CGtype type);
CG_API CGtype CGENTRY cgGetTypeBase(CGtype type);
CG_API CGbool CGENTRY cgGetTypeSizes(CGtype type, int *nrows, int *ncols);
CG_API void CGENTRY cgGetMatrixSize(CGtype type, int *nrows, int *ncols);
CG_API int CGENTRY cgGetNumProgramDomains( CGprogram program );
CG_API CGdomain CGENTRY cgGetProfileDomain( CGprofile profile );
CG_API CGprogram CGENTRY cgCombinePrograms( int n, const CGprogram *exeList
);
CG_API CGprogram CGENTRY cgCombinePrograms2( const CGprogram exe1, const CG
program exe2 );
CG_API CGprogram CGENTRY cgCombinePrograms3( const CGprogram exe1, const CG
program exe2, const CGprogram exe3 );
CG_API CGprofile CGENTRY cgGetProgramDomainProfile(CGprogram program, int i
ndex);
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#ifdef CG_APIENTRY_DEFINED
# undef CG_APIENTRY_DEFINED
# undef APIENTRY
#endif
#ifdef CG_WINGDIAPI_DEFINED
# undef CG_WINGDIAPI_DEFINED
# undef WINGDIAPI
#endif
#endif #endif
 End of changes. 74 change blocks. 
299 lines changed or deleted 477 lines changed or added


 cgGL.h   cgGL.h 
/* /*
* *
* Copyright (c) 2002, NVIDIA Corporation. * Copyright (c) 2002-2006, NVIDIA Corporation.
* *
* *
* *
* NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion * NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion
* of your agreement to the following terms, and your use, installation, * of your agreement to the following terms, and your use, installation,
* modification or redistribution of this NVIDIA software constitutes * modification or redistribution of this NVIDIA software constitutes
* acceptance of these terms. If you do not agree with these terms, please do * acceptance of these terms. If you do not agree with these terms, please do
* not use, install, modify or redistribute this NVIDIA software. * not use, install, modify or redistribute this NVIDIA software.
* *
* *
* *
* In consideration of your agreement to abide by the following terms, and * In consideration of your agreement to abide by the following terms, and
* subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse, * subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse,
* under NVIDIA * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
* Software"), to use, reproduce, modify and redistribute the NVIDIA * Software"), to use, reproduce, modify and redistribute the NVIDIA
* Software, with or without modifications, in source and/or binary forms; * Software, with or without modifications, in source and/or binary forms;
* provided that if you redistribute the NVIDIA Software, you must retain t he * provided that if you redistribute the NVIDIA Software, you must retain t he
* copyright notice of NVIDIA, this notice and the following text and * copyright notice of NVIDIA, this notice and the following text and
* disclaimers in all such redistributions of the NVIDIA Software. Neither the * disclaimers in all such redistributions of the NVIDIA Software. Neither the
* name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed * name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed
* to endorse or promote products derived from the NVIDIA Software without * to endorse or promote products derived from the NVIDIA Software without
* specific prior written permission from NVIDIA. Except as expressly stat ed * specific prior written permission from NVIDIA. Except as expressly stat ed
* in this notice, no other rights or licenses express or implied, are gran ted * in this notice, no other rights or licenses express or implied, are gran ted
* by NVIDIA herein, including but not limited to any patent rights that ma y be * by NVIDIA herein, including but not limited to any patent rights that ma y be
skipping to change at line 57 skipping to change at line 57
* NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVI SED * NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVI SED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
#ifndef _cggl_h #ifndef _cggl_h
#define _cggl_h #define _cggl_h
#include <Cg/cg.h> #include <Cg/cg.h>
#ifdef _WIN32
# ifndef APIENTRY /* From Win32's <windef.h> */
# define CGGL_APIENTRY_DEFINED
# if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLAND
C__) || defined(__LCC__)
# define APIENTRY __stdcall
# else
# define APIENTRY
# endif
# endif
# ifndef WINGDIAPI /* From Win32's <wingdi.h> and <winnt.h> */
# define CGGL_WINGDIAPI_DEFINED
# define WINGDIAPI __declspec(dllimport)
# endif
#endif /* _WIN32 */
/* Set up for either Win32 import/export/lib. */ /* Set up for either Win32 import/export/lib. */
#ifndef CGGLDLL_API #ifndef CGGL_API
#if WIN32 # ifdef _WIN32
# include <windows.h> # ifdef CGGL_EXPORTS
#ifdef CGGLDLL_EXPORTS # define CGGL_API __declspec(dllexport)
#define CGGLDLL_API __declspec(dllexport) # elif defined (CG_LIB)
#elif defined (CG_LIB) # define CGGL_API
#define CGGLDLL_API # else
#else # define CGGL_API __declspec(dllimport)
#define CGGLDLL_API __declspec(dllimport) # endif
#endif # else
#else # define CGGL_API
#define CGGLDLL_API # endif
#endif #endif
#ifndef CGGLENTRY
# ifdef _WIN32
# define CGGLENTRY __cdecl
# else
# define CGGLENTRY
# endif
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
#include <OpenGL/gl.h> #include <OpenGL/gl.h>
#else #else
#include <GL/gl.h> #include <GL/gl.h>
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
skipping to change at line 110 skipping to change at line 132
CG_GL_FRAGMENT, CG_GL_FRAGMENT,
} CGGLenum; } CGGLenum;
#ifndef CGGL_EXPLICIT #ifndef CGGL_EXPLICIT
/************************************************************************** **** /************************************************************************** ****
*** Profile Functions *** Profile Functions
************************************************************************** ***/ ************************************************************************** ***/
CGGLDLL_API CGbool cgGLIsProfileSupported(CGprofile profile); CGGL_API CGbool CGGLENTRY cgGLIsProfileSupported(CGprofile profile);
CGGLDLL_API void cgGLEnableProfile(CGprofile profile); CGGL_API void CGGLENTRY cgGLEnableProfile(CGprofile profile);
CGGLDLL_API void cgGLDisableProfile(CGprofile profile); CGGL_API void CGGLENTRY cgGLDisableProfile(CGprofile profile);
CGGLDLL_API CGprofile cgGLGetLatestProfile(CGGLenum profile_type); CGGL_API CGprofile CGGLENTRY cgGLGetLatestProfile(CGGLenum profile_type);
CGGLDLL_API void cgGLSetOptimalOptions(CGprofile profile); CGGL_API void CGGLENTRY cgGLSetOptimalOptions(CGprofile profile);
/************************************************************************** **** /************************************************************************** ****
*** Program Managment Functions *** Program Managment Functions
************************************************************************** ***/ ************************************************************************** ***/
CGGLDLL_API void cgGLLoadProgram(CGprogram program); CGGL_API void CGGLENTRY cgGLLoadProgram(CGprogram program);
CGGLDLL_API CGbool cgGLIsProgramLoaded(CGprogram program); CGGL_API CGbool CGGLENTRY cgGLIsProgramLoaded(CGprogram program);
CGGLDLL_API void cgGLBindProgram(CGprogram program); CGGL_API void CGGLENTRY cgGLBindProgram(CGprogram program);
CGGLDLL_API void cgGLUnbindProgram(CGprofile profile); CGGL_API void CGGLENTRY cgGLUnbindProgram(CGprofile profile);
CGGLDLL_API GLuint cgGLGetProgramID(CGprogram program); CGGL_API GLuint CGGLENTRY cgGLGetProgramID(CGprogram program);
/************************************************************************** **** /************************************************************************** ****
*** Parameter Managment Functions *** Parameter Managment Functions
************************************************************************** ***/ ************************************************************************** ***/
CGGLDLL_API void cgGLSetParameter1f(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameter1f(CGparameter param,
float x); float x);
CGGLDLL_API void cgGLSetParameter2f(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameter2f(CGparameter param,
float x, float x,
float y); float y);
CGGLDLL_API void cgGLSetParameter3f(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameter3f(CGparameter param,
float x, float x,
float y, float y,
float z); float z);
CGGLDLL_API void cgGLSetParameter4f(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameter4f(CGparameter param,
float x, float x,
float y, float y,
float z, float z,
float w); float w);
CGGLDLL_API void cgGLSetParameter1fv(CGparameter param, const float *v); CGGL_API void CGGLENTRY cgGLSetParameter1fv(CGparameter param, const float *v);
CGGLDLL_API void cgGLSetParameter2fv(CGparameter param, const float *v); CGGL_API void CGGLENTRY cgGLSetParameter2fv(CGparameter param, const float *v);
CGGLDLL_API void cgGLSetParameter3fv(CGparameter param, const float *v); CGGL_API void CGGLENTRY cgGLSetParameter3fv(CGparameter param, const float *v);
CGGLDLL_API void cgGLSetParameter4fv(CGparameter param, const float *v); CGGL_API void CGGLENTRY cgGLSetParameter4fv(CGparameter param, const float *v);
CGGLDLL_API void cgGLSetParameter1d(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameter1d(CGparameter param,
double x); double x);
CGGLDLL_API void cgGLSetParameter2d(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameter2d(CGparameter param,
double x, double x,
double y); double y);
CGGLDLL_API void cgGLSetParameter3d(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameter3d(CGparameter param,
double x, double x,
double y, double y,
double z); double z);
CGGLDLL_API void cgGLSetParameter4d(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameter4d(CGparameter param,
double x, double x,
double y, double y,
double z, double z,
double w); double w);
CGGLDLL_API void cgGLSetParameter1dv(CGparameter param, const double *v); CGGL_API void CGGLENTRY cgGLSetParameter1dv(CGparameter param, const double
*v);
CGGLDLL_API void cgGLSetParameter2dv(CGparameter param, const double *v);
CGGLDLL_API void cgGLSetParameter3dv(CGparameter param, const double *v); CGGL_API void CGGLENTRY cgGLSetParameter2dv(CGparameter param, const double *v);
CGGLDLL_API void cgGLSetParameter4dv(CGparameter param, const double *v); CGGL_API void CGGLENTRY cgGLSetParameter3dv(CGparameter param, const double *v);
CGGLDLL_API void cgGLSetParameter4dv(CGparameter param, const double *v); CGGL_API void CGGLENTRY cgGLSetParameter4dv(CGparameter param, const double *v);
CGGLDLL_API void cgGLGetParameter1f(CGparameter param, float *v); CGGL_API void CGGLENTRY cgGLGetParameter1f(CGparameter param, float *v);
CGGLDLL_API void cgGLGetParameter2f(CGparameter param, float *v); CGGL_API void CGGLENTRY cgGLGetParameter2f(CGparameter param, float *v);
CGGLDLL_API void cgGLGetParameter3f(CGparameter param, float *v); CGGL_API void CGGLENTRY cgGLGetParameter3f(CGparameter param, float *v);
CGGLDLL_API void cgGLGetParameter4f(CGparameter param, float *v); CGGL_API void CGGLENTRY cgGLGetParameter4f(CGparameter param, float *v);
CGGLDLL_API void cgGLGetParameter1d(CGparameter param, double *v); CGGL_API void CGGLENTRY cgGLGetParameter1d(CGparameter param, double *v);
CGGLDLL_API void cgGLGetParameter2d(CGparameter param, double *v); CGGL_API void CGGLENTRY cgGLGetParameter2d(CGparameter param, double *v);
CGGLDLL_API void cgGLGetParameter3d(CGparameter param, double *v); CGGL_API void CGGLENTRY cgGLGetParameter3d(CGparameter param, double *v);
CGGLDLL_API void cgGLGetParameter4d(CGparameter param, double *v); CGGL_API void CGGLENTRY cgGLGetParameter4d(CGparameter param, double *v);
CGGLDLL_API void cgGLSetParameterArray1f(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameterArray1f(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const float *v); const float *v);
CGGLDLL_API void cgGLSetParameterArray2f(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameterArray2f(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const float *v); const float *v);
CGGLDLL_API void cgGLSetParameterArray3f(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameterArray3f(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const float *v); const float *v);
CGGLDLL_API void cgGLSetParameterArray4f(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameterArray4f(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const float *v); const float *v);
CGGLDLL_API void cgGLSetParameterArray1d(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameterArray1d(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const double *v); const double *v);
CGGLDLL_API void cgGLSetParameterArray2d(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameterArray2d(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const double *v); const double *v);
CGGLDLL_API void cgGLSetParameterArray3d(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameterArray3d(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const double *v); const double *v);
CGGLDLL_API void cgGLSetParameterArray4d(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameterArray4d(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const double *v); const double *v);
CGGLDLL_API void cgGLGetParameterArray1f(CGparameter param, CGGL_API void CGGLENTRY cgGLGetParameterArray1f(CGparameter param,
long offset, long offset,
long nelements, long nelements,
float *v); float *v);
CGGLDLL_API void cgGLGetParameterArray2f(CGparameter param, CGGL_API void CGGLENTRY cgGLGetParameterArray2f(CGparameter param,
long offset, long offset,
long nelements, long nelements,
float *v); float *v);
CGGLDLL_API void cgGLGetParameterArray3f(CGparameter param, CGGL_API void CGGLENTRY cgGLGetParameterArray3f(CGparameter param,
long offset, long offset,
long nelements, long nelements,
float *v); float *v);
CGGLDLL_API void cgGLGetParameterArray4f(CGparameter param, CGGL_API void CGGLENTRY cgGLGetParameterArray4f(CGparameter param,
long offset, long offset,
long nelements, long nelements,
float *v); float *v);
CGGLDLL_API void cgGLGetParameterArray1d(CGparameter param, CGGL_API void CGGLENTRY cgGLGetParameterArray1d(CGparameter param,
long offset, long offset,
long nelements, long nelements,
double *v); double *v);
CGGLDLL_API void cgGLGetParameterArray2d(CGparameter param, CGGL_API void CGGLENTRY cgGLGetParameterArray2d(CGparameter param,
long offset, long offset,
long nelements, long nelements,
double *v); double *v);
CGGLDLL_API void cgGLGetParameterArray3d(CGparameter param, CGGL_API void CGGLENTRY cgGLGetParameterArray3d(CGparameter param,
long offset, long offset,
long nelements, long nelements,
double *v); double *v);
CGGLDLL_API void cgGLGetParameterArray4d(CGparameter param, CGGL_API void CGGLENTRY cgGLGetParameterArray4d(CGparameter param,
long offset, long offset,
long nelements, long nelements,
double *v); double *v);
CGGLDLL_API void cgGLSetParameterPointer(CGparameter param, CGGL_API void CGGLENTRY cgGLSetParameterPointer(CGparameter param,
GLint fsize, GLint fsize,
GLenum type, GLenum type,
GLsizei stride, GLsizei stride,
const GLvoid *pointer); const GLvoid *pointer);
CGGLDLL_API void cgGLEnableClientState(CGparameter param); CGGL_API void CGGLENTRY cgGLEnableClientState(CGparameter param);
CGGLDLL_API void cgGLDisableClientState(CGparameter param); CGGL_API void CGGLENTRY cgGLDisableClientState(CGparameter param);
/************************************************************************** **** /************************************************************************** ****
*** Matrix Parameter Managment Functions *** Matrix Parameter Managment Functions
************************************************************************** ***/ ************************************************************************** ***/
CGGLDLL_API void cgGLSetMatrixParameterdr(CGparameter param, CGGL_API void CGGLENTRY cgGLSetMatrixParameterdr(CGparameter param,
const double *matrix); const double *matrix);
CGGLDLL_API void cgGLSetMatrixParameterfr(CGparameter param, CGGL_API void CGGLENTRY cgGLSetMatrixParameterfr(CGparameter param,
const float *matrix); const float *matrix);
CGGLDLL_API void cgGLSetMatrixParameterdc(CGparameter param, CGGL_API void CGGLENTRY cgGLSetMatrixParameterdc(CGparameter param,
const double *matrix); const double *matrix);
CGGLDLL_API void cgGLSetMatrixParameterfc(CGparameter param, CGGL_API void CGGLENTRY cgGLSetMatrixParameterfc(CGparameter param,
const float *matrix); const float *matrix);
CGGLDLL_API void cgGLGetMatrixParameterdr(CGparameter param, double *matrix CGGL_API void CGGLENTRY cgGLGetMatrixParameterdr(CGparameter param, double
); *matrix);
CGGLDLL_API void cgGLGetMatrixParameterfr(CGparameter param, float *matrix) CGGL_API void CGGLENTRY cgGLGetMatrixParameterfr(CGparameter param, float *
; matrix);
CGGLDLL_API void cgGLGetMatrixParameterdc(CGparameter param, double *matrix CGGL_API void CGGLENTRY cgGLGetMatrixParameterdc(CGparameter param, double
); *matrix);
CGGLDLL_API void cgGLGetMatrixParameterfc(CGparameter param, float *matrix) CGGL_API void CGGLENTRY cgGLGetMatrixParameterfc(CGparameter param, float *
; matrix);
CGGLDLL_API void cgGLSetStateMatrixParameter(CGparameter param, CGGL_API void CGGLENTRY cgGLSetStateMatrixParameter(CGparameter param,
CGGLenum matrix, CGGLenum matrix,
CGGLenum transform); CGGLenum transform);
CGGLDLL_API void cgGLSetMatrixParameterArrayfc(CGparameter param, CGGL_API void CGGLENTRY cgGLSetMatrixParameterArrayfc(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const float *matrices); const float *matrices);
CGGLDLL_API void cgGLSetMatrixParameterArrayfr(CGparameter param, CGGL_API void CGGLENTRY cgGLSetMatrixParameterArrayfr(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const float *matrices); const float *matrices);
CGGLDLL_API void cgGLSetMatrixParameterArraydc(CGparameter param, CGGL_API void CGGLENTRY cgGLSetMatrixParameterArraydc(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const double *matrices); const double *matrices);
CGGLDLL_API void cgGLSetMatrixParameterArraydr(CGparameter param, CGGL_API void CGGLENTRY cgGLSetMatrixParameterArraydr(CGparameter param,
long offset, long offset,
long nelements, long nelements,
const double *matrices); const double *matrices);
CGGLDLL_API void cgGLGetMatrixParameterArrayfc(CGparameter param, CGGL_API void CGGLENTRY cgGLGetMatrixParameterArrayfc(CGparameter param,
long offset, long offset,
long nelements, long nelements,
float *matrices); float *matrices);
CGGLDLL_API void cgGLGetMatrixParameterArrayfr(CGparameter param, CGGL_API void CGGLENTRY cgGLGetMatrixParameterArrayfr(CGparameter param,
long offset, long offset,
long nelements, long nelements,
float *matrices); float *matrices);
CGGLDLL_API void cgGLGetMatrixParameterArraydc(CGparameter param, CGGL_API void CGGLENTRY cgGLGetMatrixParameterArraydc(CGparameter param,
long offset, long offset,
long nelements, long nelements,
double *matrices); double *matrices);
CGGLDLL_API void cgGLGetMatrixParameterArraydr(CGparameter param, CGGL_API void CGGLENTRY cgGLGetMatrixParameterArraydr(CGparameter param,
long offset, long offset,
long nelements, long nelements,
double *matrices); double *matrices);
/************************************************************************** **** /************************************************************************** ****
*** Texture Parameter Managment Functions *** Texture Parameter Managment Functions
************************************************************************** ***/ ************************************************************************** ***/
CGGLDLL_API void cgGLSetTextureParameter(CGparameter param, GLuint texobj); CGGL_API void CGGLENTRY cgGLSetTextureParameter(CGparameter param, GLuint t
CGGLDLL_API GLuint cgGLGetTextureParameter(CGparameter param); exobj);
CGGLDLL_API void cgGLEnableTextureParameter(CGparameter param); CGGL_API GLuint CGGLENTRY cgGLGetTextureParameter(CGparameter param);
CGGLDLL_API void cgGLDisableTextureParameter(CGparameter param); CGGL_API void CGGLENTRY cgGLEnableTextureParameter(CGparameter param);
CGGLDLL_API GLenum cgGLGetTextureEnum(CGparameter param); CGGL_API void CGGLENTRY cgGLDisableTextureParameter(CGparameter param);
CGGL_API GLenum CGGLENTRY cgGLGetTextureEnum(CGparameter param);
CGGLDLL_API void cgGLSetManageTextureParameters(CGcontext ctx, CGbool flag) CGGL_API void CGGLENTRY cgGLSetManageTextureParameters(CGcontext ctx, CGboo
; l flag);
CGGLDLL_API CGbool cgGLGetManageTextureParameters(CGcontext ctx); CGGL_API CGbool CGGLENTRY cgGLGetManageTextureParameters(CGcontext ctx);
CGGLDLL_API void cgGLSetupSampler(CGparameter param, GLuint texobj); CGGL_API void CGGLENTRY cgGLSetupSampler(CGparameter param, GLuint texobj);
CGGLDLL_API void cgGLRegisterStates(CGcontext); CGGL_API void CGGLENTRY cgGLRegisterStates(CGcontext);
CGGL_API void CGGLENTRY cgGLEnableProgramProfiles( CGprogram program );
CGGL_API void CGGLENTRY cgGLDisableProgramProfiles( CGprogram program );
/**************************************************************************
****
*** Misc Functions
**************************************************************************
***/
CGGL_API void CGGLENTRY cgGLSetDebugMode( CGbool debug );
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#ifdef CGGL_APIENTRY_DEFINED
# undef CGGL_APIENTRY_DEFINED
# undef APIENTRY
#endif
#ifdef CGGL_WINGDIAPI_DEFINED
# undef CGGL_WINGDIAPI_DEFINED
# undef WINGDIAPI
#endif
#endif #endif
 End of changes. 69 change blocks. 
100 lines changed or deleted 144 lines changed or added


 cgGL_profiles.h   cgGL_profiles.h 
skipping to change at line 17 skipping to change at line 17
* NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion * NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion
* of your agreement to the following terms, and your use, installation, * of your agreement to the following terms, and your use, installation,
* modification or redistribution of this NVIDIA software constitutes * modification or redistribution of this NVIDIA software constitutes
* acceptance of these terms. If you do not agree with these terms, please do * acceptance of these terms. If you do not agree with these terms, please do
* not use, install, modify or redistribute this NVIDIA software. * not use, install, modify or redistribute this NVIDIA software.
* *
* *
* *
* In consideration of your agreement to abide by the following terms, and * In consideration of your agreement to abide by the following terms, and
* subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse, * subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse,
* under NVIDIA * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
* Software"), to use, reproduce, modify and redistribute the NVIDIA * Software"), to use, reproduce, modify and redistribute the NVIDIA
* Software, with or without modifications, in source and/or binary forms; * Software, with or without modifications, in source and/or binary forms;
* provided that if you redistribute the NVIDIA Software, you must retain t he * provided that if you redistribute the NVIDIA Software, you must retain t he
* copyright notice of NVIDIA, this notice and the following text and * copyright notice of NVIDIA, this notice and the following text and
* disclaimers in all such redistributions of the NVIDIA Software. Neither the * disclaimers in all such redistributions of the NVIDIA Software. Neither the
* name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed * name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed
* to endorse or promote products derived from the NVIDIA Software without * to endorse or promote products derived from the NVIDIA Software without
* specific prior written permission from NVIDIA. Except as expressly stat ed * specific prior written permission from NVIDIA. Except as expressly stat ed
* in this notice, no other rights or licenses express or implied, are gran ted * in this notice, no other rights or licenses express or implied, are gran ted
* by NVIDIA herein, including but not limited to any patent rights that ma y be * by NVIDIA herein, including but not limited to any patent rights that ma y be
skipping to change at line 60 skipping to change at line 60
*/ */
CG_PROFILE_MACRO(Vertex,vp20,VP20,"vp20",6146,1) CG_PROFILE_MACRO(Vertex,vp20,VP20,"vp20",6146,1)
CG_PROFILE_MACRO(Fragment20,fp20,FP20,"fp20",6147,0) CG_PROFILE_MACRO(Fragment20,fp20,FP20,"fp20",6147,0)
CG_PROFILE_MACRO(Vertex30,vp30,VP30,"vp30",6148,1) CG_PROFILE_MACRO(Vertex30,vp30,VP30,"vp30",6148,1)
CG_PROFILE_MACRO(Fragment,fp30,FP30,"fp30",6149,0) CG_PROFILE_MACRO(Fragment,fp30,FP30,"fp30",6149,0)
CG_PROFILE_MACRO(ARBVertex,arbvp1,ARBVP1,"arbvp1",6150,1) CG_PROFILE_MACRO(ARBVertex,arbvp1,ARBVP1,"arbvp1",6150,1)
CG_PROFILE_MACRO(Fragment40,fp40,FP40,"fp40",6151,0) CG_PROFILE_MACRO(Fragment40,fp40,FP40,"fp40",6151,0)
CG_PROFILE_MACRO(ARBFragment,arbfp1,ARBFP1,"arbfp1",7000,0) CG_PROFILE_MACRO(ARBFragment,arbfp1,ARBFP1,"arbfp1",7000,0)
CG_PROFILE_MACRO(Vertex40,vp40,VP40,"vp40",7001,1) CG_PROFILE_MACRO(Vertex40,vp40,VP40,"vp40",7001,1)
CG_PROFILE_MACRO(GLSLVertex,glslv,GLSLV,"glslv",7007,1)
CG_PROFILE_MACRO(GLSLFragment,glslf,GLSLF,"glslf",7008,0)
CG_PROFILE_MACRO(GLSLCombined, glslc, GLSLC, "glslc", 7009, 0)
#ifndef CG_IN_PROFILES_INCLUDE #ifndef CG_IN_PROFILES_INCLUDE
# undef CG_PROFILE_MACRO # undef CG_PROFILE_MACRO
#endif #endif
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added


 cg_bindlocations.h   cg_bindlocations.h 
skipping to change at line 18 skipping to change at line 18
* NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion * NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion
* of your agreement to the following terms, and your use, installation, * of your agreement to the following terms, and your use, installation,
* modification or redistribution of this NVIDIA software constitutes * modification or redistribution of this NVIDIA software constitutes
* acceptance of these terms. If you do not agree with these terms, please do * acceptance of these terms. If you do not agree with these terms, please do
* not use, install, modify or redistribute this NVIDIA software. * not use, install, modify or redistribute this NVIDIA software.
* *
* *
* *
* In consideration of your agreement to abide by the following terms, and * In consideration of your agreement to abide by the following terms, and
* subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse, * subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse,
* under NVIDIA * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
* Software"), to use, reproduce, modify and redistribute the NVIDIA * Software"), to use, reproduce, modify and redistribute the NVIDIA
* Software, with or without modifications, in source and/or binary forms; * Software, with or without modifications, in source and/or binary forms;
* provided that if you redistribute the NVIDIA Software, you must retain t he * provided that if you redistribute the NVIDIA Software, you must retain t he
* copyright notice of NVIDIA, this notice and the following text and * copyright notice of NVIDIA, this notice and the following text and
* disclaimers in all such redistributions of the NVIDIA Software. Neither the * disclaimers in all such redistributions of the NVIDIA Software. Neither the
* name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed * name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed
* to endorse or promote products derived from the NVIDIA Software without * to endorse or promote products derived from the NVIDIA Software without
* specific prior written permission from NVIDIA. Except as expressly stat ed * specific prior written permission from NVIDIA. Except as expressly stat ed
* in this notice, no other rights or licenses express or implied, are gran ted * in this notice, no other rights or licenses express or implied, are gran ted
* by NVIDIA herein, including but not limited to any patent rights that ma y be * by NVIDIA herein, including but not limited to any patent rights that ma y be
skipping to change at line 65 skipping to change at line 65
* bind locations. * bind locations.
* *
* The macros have the form : * The macros have the form :
* *
* CG_BINDLOCATION_MACRO(name, compiler_name, enum_int) * CG_BINDLOCATION_MACRO(name, compiler_name, enum_int)
* *
* name : The name of the location. * name : The name of the location.
* enum_name : The C enumerant. * enum_name : The C enumerant.
* compiler_name : The name of the location within the compiler syntax. * compiler_name : The name of the location within the compiler syntax.
* int_id : Integer enumerant associated with this bind location . * int_id : Integer enumerant associated with this bind location .
* (3256 is reservered for CG_UNDEFINED)
* addressable : The bind location must have an integer address * addressable : The bind location must have an integer address
* associated with it. * associated with it.
* ParamType : the cgParamType of this register. * ParamType : the cgParamType of this register.
* *
*/ */
CG_BINDLOCATION_MACRO(TexUnit0,CG_TEXUNIT0,"texunit 0",2048,0,CG_TEXOBJ_PAR AM) CG_BINDLOCATION_MACRO(TexUnit0,CG_TEXUNIT0,"texunit 0",2048,0,CG_TEXOBJ_PAR AM)
CG_BINDLOCATION_MACRO(TexUnit1,CG_TEXUNIT1,"texunit 1",2049,0,CG_TEXOBJ_PAR AM) CG_BINDLOCATION_MACRO(TexUnit1,CG_TEXUNIT1,"texunit 1",2049,0,CG_TEXOBJ_PAR AM)
CG_BINDLOCATION_MACRO(TexUnit2,CG_TEXUNIT2,"texunit 2",2050,0,CG_TEXOBJ_PAR AM) CG_BINDLOCATION_MACRO(TexUnit2,CG_TEXUNIT2,"texunit 2",2050,0,CG_TEXOBJ_PAR AM)
CG_BINDLOCATION_MACRO(TexUnit3,CG_TEXUNIT3,"texunit 3",2051,0,CG_TEXOBJ_PAR AM) CG_BINDLOCATION_MACRO(TexUnit3,CG_TEXUNIT3,"texunit 3",2051,0,CG_TEXOBJ_PAR AM)
skipping to change at line 122 skipping to change at line 123
CG_BINDLOCATION_MACRO(Tex5,CG_TEX5,"TEX5",2194,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(Tex5,CG_TEX5,"TEX5",2194,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Tex6,CG_TEX6,"TEX6",2195,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(Tex6,CG_TEX6,"TEX6",2195,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Tex7,CG_TEX7,"TEX7",2196,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(Tex7,CG_TEX7,"TEX7",2196,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(HPos,CG_HPOS,"HPOS",2243,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(HPos,CG_HPOS,"HPOS",2243,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Col0,CG_COL0,"COL0",2245,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(Col0,CG_COL0,"COL0",2245,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Col1,CG_COL1,"COL1",2246,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(Col1,CG_COL1,"COL1",2246,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Col2,CG_COL2,"COL2",2247,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(Col2,CG_COL2,"COL2",2247,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Col3,CG_COL3,"COL3",2248,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(Col3,CG_COL3,"COL3",2248,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(PSiz,CG_PSIZ,"PSIZ",2309,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(PSiz,CG_PSIZ,"PSIZ",2309,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Clp0,CG_CLP0,"CLP0",2310,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Clp1,CG_CLP1,"CLP1",2311,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Clp2,CG_CLP2,"CLP2",2312,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Clp3,CG_CLP3,"CLP3",2313,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Clp4,CG_CLP4,"CLP4",2314,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Clp5,CG_CLP5,"CLP5",2315,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(WPos,CG_WPOS,"WPOS",2373,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(WPos,CG_WPOS,"WPOS",2373,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(PointCoord,CG_POINTCOORD,"POINTCOORD",2374,0,CG_VARYI NG_PARAM)
CG_BINDLOCATION_MACRO(Position0,CG_POSITION0,"POSITION0",2437,0,CG_VARYING_ PARAM) CG_BINDLOCATION_MACRO(Position0,CG_POSITION0,"POSITION0",2437,0,CG_VARYING_ PARAM)
CG_BINDLOCATION_MACRO(Position1,CG_POSITION1,"POSITION1",2438,0,CG_VARYING_ PARAM) CG_BINDLOCATION_MACRO(Position1,CG_POSITION1,"POSITION1",2438,0,CG_VARYING_ PARAM)
CG_BINDLOCATION_MACRO(Position2,CG_POSITION2,"POSITION2",2439,0,CG_VARYING_ PARAM) CG_BINDLOCATION_MACRO(Position2,CG_POSITION2,"POSITION2",2439,0,CG_VARYING_ PARAM)
CG_BINDLOCATION_MACRO(Position3,CG_POSITION3,"POSITION3",2440,0,CG_VARYING_ PARAM) CG_BINDLOCATION_MACRO(Position3,CG_POSITION3,"POSITION3",2440,0,CG_VARYING_ PARAM)
CG_BINDLOCATION_MACRO(Position4,CG_POSITION4,"POSITION4",2441,0,CG_VARYING_ PARAM) CG_BINDLOCATION_MACRO(Position4,CG_POSITION4,"POSITION4",2441,0,CG_VARYING_ PARAM)
CG_BINDLOCATION_MACRO(Position5,CG_POSITION5,"POSITION5",2442,0,CG_VARYING_ PARAM) CG_BINDLOCATION_MACRO(Position5,CG_POSITION5,"POSITION5",2442,0,CG_VARYING_ PARAM)
CG_BINDLOCATION_MACRO(Position6,CG_POSITION6,"POSITION6",2443,0,CG_VARYING_ PARAM) CG_BINDLOCATION_MACRO(Position6,CG_POSITION6,"POSITION6",2443,0,CG_VARYING_ PARAM)
CG_BINDLOCATION_MACRO(Position7,CG_POSITION7,"POSITION7",2444,0,CG_VARYING_ PARAM) CG_BINDLOCATION_MACRO(Position7,CG_POSITION7,"POSITION7",2444,0,CG_VARYING_ PARAM)
CG_BINDLOCATION_MACRO(Position8,CG_POSITION8,"POSITION8",2445,0,CG_VARYING_ PARAM) CG_BINDLOCATION_MACRO(Position8,CG_POSITION8,"POSITION8",2445,0,CG_VARYING_ PARAM)
skipping to change at line 247 skipping to change at line 255
CG_BINDLOCATION_MACRO(FOG15,CG_FOG15,"FOG15",2932,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(FOG15,CG_FOG15,"FOG15",2932,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH0,CG_DEPTH0,"DEPTH0",2933,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH0,CG_DEPTH0,"DEPTH0",2933,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH1,CG_DEPTH1,"DEPTH1",2934,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH1,CG_DEPTH1,"DEPTH1",2934,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH2,CG_DEPTH2,"DEPTH2",2935,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH2,CG_DEPTH2,"DEPTH2",2935,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH3,CG_DEPTH3,"DEPTH3",2936,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH3,CG_DEPTH3,"DEPTH3",2936,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH4,CG_DEPTH4,"DEPTH4",2937,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH4,CG_DEPTH4,"DEPTH4",2937,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH5,CG_DEPTH5,"DEPTH5",2938,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH5,CG_DEPTH5,"DEPTH5",2938,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH6,CG_DEPTH6,"DEPTH6",2939,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH6,CG_DEPTH6,"DEPTH6",2939,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH7,CG_DEPTH7,"DEPTH7",2940,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH7,CG_DEPTH7,"DEPTH7",2940,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH8,CG_DEPTH8,"DEPTH8",2941,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH8,CG_DEPTH8,"DEPTH8",2941,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH9,CG_DEPTH9,"DEPTH9",29542,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH9,CG_DEPTH9,"DEPTH9",2942,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH10,CG_DEPTH10,"DEPTH10",2943,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH10,CG_DEPTH10,"DEPTH10",2943,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH11,CG_DEPTH11,"DEPTH11",2944,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH11,CG_DEPTH11,"DEPTH11",2944,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH12,CG_DEPTH12,"DEPTH12",2945,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH12,CG_DEPTH12,"DEPTH12",2945,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH13,CG_DEPTH13,"DEPTH13",2946,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH13,CG_DEPTH13,"DEPTH13",2946,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH14,CG_DEPTH14,"DEPTH14",2947,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH14,CG_DEPTH14,"DEPTH14",2947,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(DEPTH15,CG_DEPTH15,"DEPTH15",2948,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(DEPTH15,CG_DEPTH15,"DEPTH15",2948,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(SAMPLE0,CG_SAMPLE0,"SAMPLE0",2949,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(SAMPLE0,CG_SAMPLE0,"SAMPLE0",2949,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(SAMPLE1,CG_SAMPLE1,"SAMPLE1",2950,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(SAMPLE1,CG_SAMPLE1,"SAMPLE1",2950,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(SAMPLE2,CG_SAMPLE2,"SAMPLE2",2951,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(SAMPLE2,CG_SAMPLE2,"SAMPLE2",2951,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(SAMPLE3,CG_SAMPLE3,"SAMPLE3",2952,0,CG_VARYING_PARAM) CG_BINDLOCATION_MACRO(SAMPLE3,CG_SAMPLE3,"SAMPLE3",2952,0,CG_VARYING_PARAM)
skipping to change at line 327 skipping to change at line 335
CG_BINDLOCATION_MACRO(TexCoord14,CG_TEXCOORD14,"TEXCOORD14",3234,0,CG_VARYI NG_PARAM) CG_BINDLOCATION_MACRO(TexCoord14,CG_TEXCOORD14,"TEXCOORD14",3234,0,CG_VARYI NG_PARAM)
CG_BINDLOCATION_MACRO(TexCoord15,CG_TEXCOORD15,"TEXCOORD15",3235,0,CG_VARYI NG_PARAM) CG_BINDLOCATION_MACRO(TexCoord15,CG_TEXCOORD15,"TEXCOORD15",3235,0,CG_VARYI NG_PARAM)
CG_BINDLOCATION_MACRO(CombinerConst0,CG_COMBINER_CONST0,"COMBINER_CONST0",3 284,0,CGI_UNIFORM_PARAM) CG_BINDLOCATION_MACRO(CombinerConst0,CG_COMBINER_CONST0,"COMBINER_CONST0",3 284,0,CGI_UNIFORM_PARAM)
CG_BINDLOCATION_MACRO(CombinerConst1,CG_COMBINER_CONST1,"COMBINER_CONST1",3 285,0,CGI_UNIFORM_PARAM) CG_BINDLOCATION_MACRO(CombinerConst1,CG_COMBINER_CONST1,"COMBINER_CONST1",3 285,0,CGI_UNIFORM_PARAM)
CG_BINDLOCATION_MACRO(CombinerStageConst0,CG_COMBINER_STAGE_CONST0,"COMBINE R_STAGE_CONST0",3286,1,CGI_UNIFORM_PARAM) CG_BINDLOCATION_MACRO(CombinerStageConst0,CG_COMBINER_STAGE_CONST0,"COMBINE R_STAGE_CONST0",3286,1,CGI_UNIFORM_PARAM)
CG_BINDLOCATION_MACRO(CombinerStageConst1,CG_COMBINER_STAGE_CONST1,"COMBINE R_STAGE_CONST1",3287,1,CGI_UNIFORM_PARAM) CG_BINDLOCATION_MACRO(CombinerStageConst1,CG_COMBINER_STAGE_CONST1,"COMBINE R_STAGE_CONST1",3287,1,CGI_UNIFORM_PARAM)
CG_BINDLOCATION_MACRO(OffsetTextureMatrix,CG_OFFSET_TEXTURE_MATRIX,"OFFSET_ TEXTURE_MATRIX",3288,0,CGI_UNIFORM_PARAM) CG_BINDLOCATION_MACRO(OffsetTextureMatrix,CG_OFFSET_TEXTURE_MATRIX,"OFFSET_ TEXTURE_MATRIX",3288,0,CGI_UNIFORM_PARAM)
CG_BINDLOCATION_MACRO(OffsetTextureScale,CG_OFFSET_TEXTURE_SCALE,"OFFSET_TE XTURE_SCALE",3289,0,CGI_UNIFORM_PARAM) CG_BINDLOCATION_MACRO(OffsetTextureScale,CG_OFFSET_TEXTURE_SCALE,"OFFSET_TE XTURE_SCALE",3289,0,CGI_UNIFORM_PARAM)
CG_BINDLOCATION_MACRO(OffsetTextureBias,CG_OFFSET_TEXTURE_BIAS,"OFFSET_TEXT URE_BIAS",3290,0,CGI_UNIFORM_PARAM) CG_BINDLOCATION_MACRO(OffsetTextureBias,CG_OFFSET_TEXTURE_BIAS,"OFFSET_TEXT URE_BIAS",3290,0,CGI_UNIFORM_PARAM)
CG_BINDLOCATION_MACRO(ConstEye,CG_CONST_EYE,"CONST_EYE",3291,0,CGI_UNIFORM_ PARAM) CG_BINDLOCATION_MACRO(ConstEye,CG_CONST_EYE,"CONST_EYE",3291,0,CGI_UNIFORM_ PARAM)
CG_BINDLOCATION_MACRO(Coverage, CG_COVERAGE, "COVERAGE", 3292, 0, CG_VARYIN
G_PARAM)
CG_BINDLOCATION_MACRO(TessFactor,CG_TESSFACTOR,"TESSFACTOR",3255,0,CG_VARYI NG_PARAM) CG_BINDLOCATION_MACRO(TessFactor,CG_TESSFACTOR,"TESSFACTOR",3255,0,CG_VARYI NG_PARAM)
CG_BINDLOCATION_MACRO(GLSLUniform,CG_GLSL_UNIFORM,"glsl_uniform",3300,1,CGI
_UNIFORM_PARAM)
CG_BINDLOCATION_MACRO(GLSLAttrib,CG_GLSL_ATTRIB,"glsl_attrib",3301,1,CG_VAR
YING_PARAM)
CG_BINDLOCATION_MACRO(Env,CG_ENV,"ENV",3302,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env0,CG_ENV0,"ENV0",3303,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env1,CG_ENV1,"ENV1",3304,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env2,CG_ENV2,"ENV2",3305,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env3,CG_ENV3,"ENV3",3306,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env4,CG_ENV4,"ENV4",3307,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env5,CG_ENV5,"ENV5",3308,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env6,CG_ENV6,"ENV6",3309,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env7,CG_ENV7,"ENV7",3310,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env8,CG_ENV8,"ENV8",3311,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env9,CG_ENV9,"ENV9",3312,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env10,CG_ENV10,"ENV10",3313,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env11,CG_ENV11,"ENV11",3314,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env12,CG_ENV12,"ENV12",3315,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env13,CG_ENV13,"ENV13",3316,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env14,CG_ENV14,"ENV14",3317,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env15,CG_ENV15,"ENV15",3318,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env16,CG_ENV16,"ENV16",3319,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env17,CG_ENV17,"ENV17",3320,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env18,CG_ENV18,"ENV18",3321,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env19,CG_ENV19,"ENV19",3322,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env20,CG_ENV20,"ENV20",3323,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env21,CG_ENV21,"ENV21",3324,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env22,CG_ENV22,"ENV22",3325,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env23,CG_ENV23,"ENV23",3326,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env24,CG_ENV24,"ENV24",3327,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env25,CG_ENV25,"ENV25",3328,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env26,CG_ENV26,"ENV26",3329,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env27,CG_ENV27,"ENV27",3330,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env28,CG_ENV28,"ENV28",3331,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env29,CG_ENV29,"ENV29",3332,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env30,CG_ENV30,"ENV30",3333,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env31,CG_ENV31,"ENV31",3334,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env32,CG_ENV32,"ENV32",3335,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env33,CG_ENV33,"ENV33",3336,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env34,CG_ENV34,"ENV34",3337,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env35,CG_ENV35,"ENV35",3338,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env36,CG_ENV36,"ENV36",3339,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env37,CG_ENV37,"ENV37",3340,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env38,CG_ENV38,"ENV38",3341,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env39,CG_ENV39,"ENV39",3342,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env40,CG_ENV40,"ENV40",3343,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env41,CG_ENV41,"ENV41",3344,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env42,CG_ENV42,"ENV42",3345,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env43,CG_ENV43,"ENV43",3346,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env44,CG_ENV44,"ENV44",3347,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env45,CG_ENV45,"ENV45",3348,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env46,CG_ENV46,"ENV46",3349,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env47,CG_ENV47,"ENV47",3350,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env48,CG_ENV48,"ENV48",3351,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env49,CG_ENV49,"ENV49",3352,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env50,CG_ENV50,"ENV50",3353,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env51,CG_ENV51,"ENV51",3354,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env52,CG_ENV52,"ENV52",3355,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env53,CG_ENV53,"ENV53",3356,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env54,CG_ENV54,"ENV54",3357,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env55,CG_ENV55,"ENV55",3358,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env56,CG_ENV56,"ENV56",3359,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env57,CG_ENV57,"ENV57",3360,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env58,CG_ENV58,"ENV58",3361,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env59,CG_ENV59,"ENV59",3362,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env60,CG_ENV60,"ENV60",3363,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env61,CG_ENV61,"ENV61",3364,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env62,CG_ENV62,"ENV62",3365,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env63,CG_ENV63,"ENV63",3366,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env64,CG_ENV64,"ENV64",3367,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env65,CG_ENV65,"ENV65",3368,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env66,CG_ENV66,"ENV66",3369,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env67,CG_ENV67,"ENV67",3370,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env68,CG_ENV68,"ENV68",3371,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env69,CG_ENV69,"ENV69",3372,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env70,CG_ENV70,"ENV70",3373,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env71,CG_ENV71,"ENV71",3374,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env72,CG_ENV72,"ENV72",3375,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env73,CG_ENV73,"ENV73",3376,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env74,CG_ENV74,"ENV74",3377,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env75,CG_ENV75,"ENV75",3378,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env76,CG_ENV76,"ENV76",3379,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env77,CG_ENV77,"ENV77",3380,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env78,CG_ENV78,"ENV78",3381,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env79,CG_ENV79,"ENV79",3382,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env80,CG_ENV80,"ENV80",3383,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env81,CG_ENV81,"ENV81",3384,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env82,CG_ENV82,"ENV82",3385,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env83,CG_ENV83,"ENV83",3386,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env84,CG_ENV84,"ENV84",3387,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env85,CG_ENV85,"ENV85",3388,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env86,CG_ENV86,"ENV86",3389,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env87,CG_ENV87,"ENV87",3390,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env88,CG_ENV88,"ENV88",3391,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env89,CG_ENV89,"ENV89",3392,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env90,CG_ENV90,"ENV90",3393,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env91,CG_ENV91,"ENV91",3394,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env92,CG_ENV92,"ENV92",3395,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env93,CG_ENV93,"ENV93",3396,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env94,CG_ENV94,"ENV94",3397,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env95,CG_ENV95,"ENV95",3398,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env96,CG_ENV96,"ENV96",3399,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env97,CG_ENV97,"ENV97",3400,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env98,CG_ENV98,"ENV98",3401,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env99,CG_ENV99,"ENV99",3402,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env100,CG_ENV100,"ENV100",3403,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env101,CG_ENV101,"ENV101",3404,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env102,CG_ENV102,"ENV102",3405,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env103,CG_ENV103,"ENV103",3406,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env104,CG_ENV104,"ENV104",3407,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env105,CG_ENV105,"ENV105",3408,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env106,CG_ENV106,"ENV106",3409,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env107,CG_ENV107,"ENV107",3410,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env108,CG_ENV108,"ENV108",3411,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env109,CG_ENV109,"ENV109",3412,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env110,CG_ENV110,"ENV110",3413,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env111,CG_ENV111,"ENV111",3414,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env112,CG_ENV112,"ENV112",3415,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env113,CG_ENV113,"ENV113",3416,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env114,CG_ENV114,"ENV114",3417,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env115,CG_ENV115,"ENV115",3418,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env116,CG_ENV116,"ENV116",3419,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env117,CG_ENV117,"ENV117",3420,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env118,CG_ENV118,"ENV118",3421,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env119,CG_ENV119,"ENV119",3422,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env120,CG_ENV120,"ENV120",3423,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env121,CG_ENV121,"ENV121",3424,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env122,CG_ENV122,"ENV122",3425,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env123,CG_ENV123,"ENV123",3426,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env124,CG_ENV124,"ENV124",3427,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env125,CG_ENV125,"ENV125",3428,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env126,CG_ENV126,"ENV126",3429,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env127,CG_ENV127,"ENV127",3430,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env128,CG_ENV128,"ENV128",3431,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env129,CG_ENV129,"ENV129",3432,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env130,CG_ENV130,"ENV130",3433,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env131,CG_ENV131,"ENV131",3434,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env132,CG_ENV132,"ENV132",3435,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env133,CG_ENV133,"ENV133",3436,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env134,CG_ENV134,"ENV134",3437,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env135,CG_ENV135,"ENV135",3438,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env136,CG_ENV136,"ENV136",3439,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env137,CG_ENV137,"ENV137",3440,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env138,CG_ENV138,"ENV138",3441,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env139,CG_ENV139,"ENV139",3442,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env140,CG_ENV140,"ENV140",3443,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env141,CG_ENV141,"ENV141",3444,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env142,CG_ENV142,"ENV142",3445,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env143,CG_ENV143,"ENV143",3446,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env144,CG_ENV144,"ENV144",3447,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env145,CG_ENV145,"ENV145",3448,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env146,CG_ENV146,"ENV146",3449,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env147,CG_ENV147,"ENV147",3450,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env148,CG_ENV148,"ENV148",3451,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env149,CG_ENV149,"ENV149",3452,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env150,CG_ENV150,"ENV150",3453,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env151,CG_ENV151,"ENV151",3454,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env152,CG_ENV152,"ENV152",3455,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env153,CG_ENV153,"ENV153",3456,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env154,CG_ENV154,"ENV154",3457,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env155,CG_ENV155,"ENV155",3458,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env156,CG_ENV156,"ENV156",3459,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env157,CG_ENV157,"ENV157",3460,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env158,CG_ENV158,"ENV158",3461,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env159,CG_ENV159,"ENV159",3462,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env160,CG_ENV160,"ENV160",3463,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env161,CG_ENV161,"ENV161",3464,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env162,CG_ENV162,"ENV162",3465,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env163,CG_ENV163,"ENV163",3466,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env164,CG_ENV164,"ENV164",3467,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env165,CG_ENV165,"ENV165",3468,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env166,CG_ENV166,"ENV166",3469,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env167,CG_ENV167,"ENV167",3470,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env168,CG_ENV168,"ENV168",3471,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env169,CG_ENV169,"ENV169",3472,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env170,CG_ENV170,"ENV170",3473,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env171,CG_ENV171,"ENV171",3474,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env172,CG_ENV172,"ENV172",3475,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env173,CG_ENV173,"ENV173",3476,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env174,CG_ENV174,"ENV174",3477,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env175,CG_ENV175,"ENV175",3478,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env176,CG_ENV176,"ENV176",3479,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env177,CG_ENV177,"ENV177",3480,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env178,CG_ENV178,"ENV178",3481,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env179,CG_ENV179,"ENV179",3482,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env180,CG_ENV180,"ENV180",3483,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env181,CG_ENV181,"ENV181",3484,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env182,CG_ENV182,"ENV182",3485,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env183,CG_ENV183,"ENV183",3486,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env184,CG_ENV184,"ENV184",3487,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env185,CG_ENV185,"ENV185",3488,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env186,CG_ENV186,"ENV186",3489,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env187,CG_ENV187,"ENV187",3490,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env188,CG_ENV188,"ENV188",3491,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env189,CG_ENV189,"ENV189",3492,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env190,CG_ENV190,"ENV190",3493,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env191,CG_ENV191,"ENV191",3494,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env192,CG_ENV192,"ENV192",3495,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env193,CG_ENV193,"ENV193",3496,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env194,CG_ENV194,"ENV194",3497,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env195,CG_ENV195,"ENV195",3498,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env196,CG_ENV196,"ENV196",3499,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env197,CG_ENV197,"ENV197",3500,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env198,CG_ENV198,"ENV198",3501,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env199,CG_ENV199,"ENV199",3502,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env200,CG_ENV200,"ENV200",3503,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env201,CG_ENV201,"ENV201",3504,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env202,CG_ENV202,"ENV202",3505,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env203,CG_ENV203,"ENV203",3506,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env204,CG_ENV204,"ENV204",3507,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env205,CG_ENV205,"ENV205",3508,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env206,CG_ENV206,"ENV206",3509,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env207,CG_ENV207,"ENV207",3510,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env208,CG_ENV208,"ENV208",3511,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env209,CG_ENV209,"ENV209",3512,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env210,CG_ENV210,"ENV210",3513,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env211,CG_ENV211,"ENV211",3514,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env212,CG_ENV212,"ENV212",3515,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env213,CG_ENV213,"ENV213",3516,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env214,CG_ENV214,"ENV214",3517,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env215,CG_ENV215,"ENV215",3518,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env216,CG_ENV216,"ENV216",3519,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env217,CG_ENV217,"ENV217",3520,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env218,CG_ENV218,"ENV218",3521,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env219,CG_ENV219,"ENV219",3522,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env220,CG_ENV220,"ENV220",3523,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env221,CG_ENV221,"ENV221",3524,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env222,CG_ENV222,"ENV222",3525,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env223,CG_ENV223,"ENV223",3526,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env224,CG_ENV224,"ENV224",3527,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env225,CG_ENV225,"ENV225",3528,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env226,CG_ENV226,"ENV226",3529,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env227,CG_ENV227,"ENV227",3530,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env228,CG_ENV228,"ENV228",3531,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env229,CG_ENV229,"ENV229",3532,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env230,CG_ENV230,"ENV230",3533,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env231,CG_ENV231,"ENV231",3534,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env232,CG_ENV232,"ENV232",3535,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env233,CG_ENV233,"ENV233",3536,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env234,CG_ENV234,"ENV234",3537,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env235,CG_ENV235,"ENV235",3538,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env236,CG_ENV236,"ENV236",3539,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env237,CG_ENV237,"ENV237",3540,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env238,CG_ENV238,"ENV238",3541,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env239,CG_ENV239,"ENV239",3542,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env240,CG_ENV240,"ENV240",3543,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env241,CG_ENV241,"ENV241",3544,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env242,CG_ENV242,"ENV242",3545,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env243,CG_ENV243,"ENV243",3546,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env244,CG_ENV244,"ENV244",3547,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env245,CG_ENV245,"ENV245",3548,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env246,CG_ENV246,"ENV246",3549,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env247,CG_ENV247,"ENV247",3550,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env248,CG_ENV248,"ENV248",3551,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env249,CG_ENV249,"ENV249",3552,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env250,CG_ENV250,"ENV250",3553,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env251,CG_ENV251,"ENV251",3554,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env252,CG_ENV252,"ENV252",3555,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env253,CG_ENV253,"ENV253",3556,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env254,CG_ENV254,"ENV254",3557,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(Env255,CG_ENV255,"ENV255",3558,0,CG_VARYING_PARAM)
CG_BINDLOCATION_MACRO(LastColor0, CG_LASTCOL0, "LASTCOL0", 4400, 0, CG_VARY
ING_PARAM)
CG_BINDLOCATION_MACRO(LastColor1, CG_LASTCOL1, "LASTCOL1", 4401, 0, CG_VARY
ING_PARAM)
CG_BINDLOCATION_MACRO(LastColor2, CG_LASTCOL2, "LASTCOL2", 4402, 0, CG_VARY
ING_PARAM)
CG_BINDLOCATION_MACRO(LastColor3, CG_LASTCOL3, "LASTCOL3", 4403, 0, CG_VARY
ING_PARAM)
CG_BINDLOCATION_MACRO(LastColor4, CG_LASTCOL4, "LASTCOL4", 4404, 0, CG_VARY
ING_PARAM)
CG_BINDLOCATION_MACRO(LastColor5, CG_LASTCOL5, "LASTCOL5", 4405, 0, CG_VARY
ING_PARAM)
CG_BINDLOCATION_MACRO(LastColor6, CG_LASTCOL6, "LASTCOL6", 4406, 0, CG_VARY
ING_PARAM)
CG_BINDLOCATION_MACRO(LastColor7, CG_LASTCOL7, "LASTCOL7", 4407, 0, CG_VARY
ING_PARAM)
#undef CG_BINDLOCATION_MACRO #undef CG_BINDLOCATION_MACRO
 End of changes. 7 change blocks. 
2 lines changed or deleted 293 lines changed or added


 cg_datatypes.h   cg_datatypes.h 
skipping to change at line 17 skipping to change at line 17
* NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion * NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion
* of your agreement to the following terms, and your use, installation, * of your agreement to the following terms, and your use, installation,
* modification or redistribution of this NVIDIA software constitutes * modification or redistribution of this NVIDIA software constitutes
* acceptance of these terms. If you do not agree with these terms, please do * acceptance of these terms. If you do not agree with these terms, please do
* not use, install, modify or redistribute this NVIDIA software. * not use, install, modify or redistribute this NVIDIA software.
* *
* *
* *
* In consideration of your agreement to abide by the following terms, and * In consideration of your agreement to abide by the following terms, and
* subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse, * subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse,
* under NVIDIA * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
* Software"), to use, reproduce, modify and redistribute the NVIDIA * Software"), to use, reproduce, modify and redistribute the NVIDIA
* Software, with or without modifications, in source and/or binary forms; * Software, with or without modifications, in source and/or binary forms;
* provided that if you redistribute the NVIDIA Software, you must retain t he * provided that if you redistribute the NVIDIA Software, you must retain t he
* copyright notice of NVIDIA, this notice and the following text and * copyright notice of NVIDIA, this notice and the following text and
* disclaimers in all such redistributions of the NVIDIA Software. Neither the * disclaimers in all such redistributions of the NVIDIA Software. Neither the
* name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed * name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed
* to endorse or promote products derived from the NVIDIA Software without * to endorse or promote products derived from the NVIDIA Software without
* specific prior written permission from NVIDIA. Except as expressly stat ed * specific prior written permission from NVIDIA. Except as expressly stat ed
* in this notice, no other rights or licenses express or implied, are gran ted * in this notice, no other rights or licenses express or implied, are gran ted
* by NVIDIA herein, including but not limited to any patent rights that ma y be * by NVIDIA herein, including but not limited to any patent rights that ma y be
skipping to change at line 57 skipping to change at line 57
* NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVI SED * NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVI SED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
/* /*
* The following macro invocations define the supported CG basic data types . * The following macro invocations define the supported CG basic data types .
* *
* The macros have the form : * The macros have the form :
* *
* CG_DATATYPE_MACRO(name, compiler_name, nrows, ncols) * CG_DATATYPE_MACRO(name, compiler_name, enum_name, base_name, nrows, nc ols, pc_name)
* *
* name : The name of the data type. * name : The name of the data type.
* compiler_name : The name of the data type within the compiler syntax . * compiler_name : The name of the data type within the compiler syntax .
* enum_name : The C enumerant. * enum_name : The C enumerant.
* base_name : The C enumerant of the base type.
* nrows : Number of rows for matrix types. Should be 0 other- wise. * nrows : Number of rows for matrix types. Should be 0 other- wise.
* ncols : Number of columns for scalar, vector, and matrix typ es. * ncols : Number of columns for scalar, vector, and matrix typ es.
* pc_name : The C enumerant of the parameter class.
* *
*/ */
CG_DATATYPE_MACRO(Half,half,CG_HALF,CG_HALF,0,1,CG_PARAMETERCLASS_SCALAR) CG_DATATYPE_MACRO(Half,half,CG_HALF,CG_HALF,0,1,CG_PARAMETERCLASS_SCALAR)
CG_DATATYPE_MACRO(Half2,half2,CG_HALF2,CG_HALF,0,2,CG_PARAMETERCLASS_VECTOR ) CG_DATATYPE_MACRO(Half2,half2,CG_HALF2,CG_HALF,0,2,CG_PARAMETERCLASS_VECTOR )
CG_DATATYPE_MACRO(Half3,half3,CG_HALF3,CG_HALF,0,3,CG_PARAMETERCLASS_VECTOR ) CG_DATATYPE_MACRO(Half3,half3,CG_HALF3,CG_HALF,0,3,CG_PARAMETERCLASS_VECTOR )
CG_DATATYPE_MACRO(Half4,half4,CG_HALF4,CG_HALF,0,4,CG_PARAMETERCLASS_VECTOR ) CG_DATATYPE_MACRO(Half4,half4,CG_HALF4,CG_HALF,0,4,CG_PARAMETERCLASS_VECTOR )
CG_DATATYPE_MACRO(Half1x1,half1x1,CG_HALF1x1,CG_HALF,1,1,CG_PARAMETERCLASS_ MATRIX) CG_DATATYPE_MACRO(Half1x1,half1x1,CG_HALF1x1,CG_HALF,1,1,CG_PARAMETERCLASS_ MATRIX)
CG_DATATYPE_MACRO(Half1x2,half1x2,CG_HALF1x2,CG_HALF,1,2,CG_PARAMETERCLASS_ MATRIX) CG_DATATYPE_MACRO(Half1x2,half1x2,CG_HALF1x2,CG_HALF,1,2,CG_PARAMETERCLASS_ MATRIX)
CG_DATATYPE_MACRO(Half1x3,half1x3,CG_HALF1x3,CG_HALF,1,3,CG_PARAMETERCLASS_ MATRIX) CG_DATATYPE_MACRO(Half1x3,half1x3,CG_HALF1x3,CG_HALF,1,3,CG_PARAMETERCLASS_ MATRIX)
 End of changes. 4 change blocks. 
2 lines changed or deleted 4 lines changed or added


 cg_enums.h   cg_enums.h 
skipping to change at line 18 skipping to change at line 18
* NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion * NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion
* of your agreement to the following terms, and your use, installation, * of your agreement to the following terms, and your use, installation,
* modification or redistribution of this NVIDIA software constitutes * modification or redistribution of this NVIDIA software constitutes
* acceptance of these terms. If you do not agree with these terms, please do * acceptance of these terms. If you do not agree with these terms, please do
* not use, install, modify or redistribute this NVIDIA software. * not use, install, modify or redistribute this NVIDIA software.
* *
* *
* *
* In consideration of your agreement to abide by the following terms, and * In consideration of your agreement to abide by the following terms, and
* subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse, * subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse,
* under NVIDIA * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
* Software"), to use, reproduce, modify and redistribute the NVIDIA * Software"), to use, reproduce, modify and redistribute the NVIDIA
* Software, with or without modifications, in source and/or binary forms; * Software, with or without modifications, in source and/or binary forms;
* provided that if you redistribute the NVIDIA Software, you must retain t he * provided that if you redistribute the NVIDIA Software, you must retain t he
* copyright notice of NVIDIA, this notice and the following text and * copyright notice of NVIDIA, this notice and the following text and
* disclaimers in all such redistributions of the NVIDIA Software. Neither the * disclaimers in all such redistributions of the NVIDIA Software. Neither the
* name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed * name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed
* to endorse or promote products derived from the NVIDIA Software without * to endorse or promote products derived from the NVIDIA Software without
* specific prior written permission from NVIDIA. Except as expressly stat ed * specific prior written permission from NVIDIA. Except as expressly stat ed
* in this notice, no other rights or licenses express or implied, are gran ted * in this notice, no other rights or licenses express or implied, are gran ted
* by NVIDIA herein, including but not limited to any patent rights that ma y be * by NVIDIA herein, including but not limited to any patent rights that ma y be
skipping to change at line 58 skipping to change at line 58
* NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVI SED * NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVI SED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
/* /*
* The following macro invocations define the supported CG basic data types . * The following macro invocations define the supported CG basic data types .
* *
* The macros have the form : * The macros have the form :
* *
* CG_DATATYPE_MACRO(enum_name, enum_val) * CG_ENUM_MACRO(enum_name, enum_val)
* *
* enum_name : The C enumerant name. * enum_name : The C enumerant name.
* enum_val : The enumerant value. * enum_val : The enumerant value.
* *
*/ */
CG_ENUM_MACRO(CG_UNKNOWN, 4096) CG_ENUM_MACRO(CG_UNKNOWN, 4096)
CG_ENUM_MACRO(CG_IN, 4097) CG_ENUM_MACRO(CG_IN, 4097)
CG_ENUM_MACRO(CG_OUT, 4098) CG_ENUM_MACRO(CG_OUT, 4098)
CG_ENUM_MACRO(CG_INOUT, 4099) CG_ENUM_MACRO(CG_INOUT, 4099)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added


 cg_errors.h   cg_errors.h 
skipping to change at line 17 skipping to change at line 17
* NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion * NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion
* of your agreement to the following terms, and your use, installation, * of your agreement to the following terms, and your use, installation,
* modification or redistribution of this NVIDIA software constitutes * modification or redistribution of this NVIDIA software constitutes
* acceptance of these terms. If you do not agree with these terms, please do * acceptance of these terms. If you do not agree with these terms, please do
* not use, install, modify or redistribute this NVIDIA software. * not use, install, modify or redistribute this NVIDIA software.
* *
* *
* *
* In consideration of your agreement to abide by the following terms, and * In consideration of your agreement to abide by the following terms, and
* subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse, * subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse,
* under NVIDIA * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
* Software"), to use, reproduce, modify and redistribute the NVIDIA * Software"), to use, reproduce, modify and redistribute the NVIDIA
* Software, with or without modifications, in source and/or binary forms; * Software, with or without modifications, in source and/or binary forms;
* provided that if you redistribute the NVIDIA Software, you must retain t he * provided that if you redistribute the NVIDIA Software, you must retain t he
* copyright notice of NVIDIA, this notice and the following text and * copyright notice of NVIDIA, this notice and the following text and
* disclaimers in all such redistributions of the NVIDIA Software. Neither the * disclaimers in all such redistributions of the NVIDIA Software. Neither the
* name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed * name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed
* to endorse or promote products derived from the NVIDIA Software without * to endorse or promote products derived from the NVIDIA Software without
* specific prior written permission from NVIDIA. Except as expressly stat ed * specific prior written permission from NVIDIA. Except as expressly stat ed
* in this notice, no other rights or licenses express or implied, are gran ted * in this notice, no other rights or licenses express or implied, are gran ted
* by NVIDIA herein, including but not limited to any patent rights that ma y be * by NVIDIA herein, including but not limited to any patent rights that ma y be
skipping to change at line 224 skipping to change at line 224
CG_ARRAY_TYPES_DO_NOT_MATCH_ERROR, CG_ARRAY_TYPES_DO_NOT_MATCH_ERROR,
"Cannot bind the given parameters. Array types do not match .") "Cannot bind the given parameters. Array types do not match .")
CG_ERROR_MACRO(37, CG_ERROR_MACRO(37,
CG_ARRAY_DIMENSIONS_DO_NOT_MATCH_ERROR, CG_ARRAY_DIMENSIONS_DO_NOT_MATCH_ERROR,
"Cannot bind the given parameters. " "Cannot bind the given parameters. "
"Array dimensions do not match.") "Array dimensions do not match.")
CG_ERROR_MACRO(38, CG_ERROR_MACRO(38,
CG_ARRAY_HAS_WRONG_DIMENSION_ERROR, CG_ARRAY_HAS_WRONG_DIMENSION_ERROR,
"The array is has the wrong dimension.") "The array has the wrong dimension.")
CG_ERROR_MACRO(39, CG_ERROR_MACRO(39,
CG_TYPE_IS_NOT_DEFINED_IN_PROGRAM_ERROR, CG_TYPE_IS_NOT_DEFINED_IN_PROGRAM_ERROR,
"Connecting the parameters failed because The type of the " "Connecting the parameters failed because The type of the "
"source parameter is not defined within the given program " "source parameter is not defined within the given program "
"or does not match the type with the same name in the progra m.") "or does not match the type with the same name in the progra m.")
CG_ERROR_MACRO(40, CG_ERROR_MACRO(40,
CG_INVALID_EFFECT_HANDLE_ERROR, CG_INVALID_EFFECT_HANDLE_ERROR,
"Invalid effect handle.") "Invalid effect handle.")
skipping to change at line 256 skipping to change at line 256
"Invalid pass handle.") "Invalid pass handle.")
CG_ERROR_MACRO(44, CG_ERROR_MACRO(44,
CG_INVALID_ANNOTATION_HANDLE_ERROR, CG_INVALID_ANNOTATION_HANDLE_ERROR,
"Invalid annotation handle.") "Invalid annotation handle.")
CG_ERROR_MACRO(45, CG_ERROR_MACRO(45,
CG_INVALID_TECHNIQUE_HANDLE_ERROR, CG_INVALID_TECHNIQUE_HANDLE_ERROR,
"Invalid technique handle.") "Invalid technique handle.")
// Do not use this! Use CG_INVALID_PARAM_HANDLE_ERROR instead.
CG_ERROR_MACRO(46, CG_ERROR_MACRO(46,
CG_INVALID_PARAMETER_HANDLE_ERROR, CG_INVALID_PARAMETER_HANDLE_ERROR,
"Invalid parameter handle.") "Invalid parameter handle.")
CG_ERROR_MACRO(47, CG_ERROR_MACRO(47,
CG_STATE_ASSIGNMENT_TYPE_MISMATCH_ERROR, CG_STATE_ASSIGNMENT_TYPE_MISMATCH_ERROR,
"Invalid parameter handle.") "Operation is not valid for this type of stateassignment.")
CG_ERROR_MACRO(48, CG_ERROR_MACRO(48,
CG_INVALID_FUNCTION_HANDLE_ERROR, CG_INVALID_FUNCTION_HANDLE_ERROR,
"Invalid function handle.") "Invalid function handle.")
CG_ERROR_MACRO(49, CG_ERROR_MACRO(49,
CG_INVALID_TECHNIQUE_ERROR, CG_INVALID_TECHNIQUE_ERROR,
"Technique did not pass validation.") "Technique did not pass validation.")
CG_ERROR_MACRO(50, CG_ERROR_MACRO(50,
skipping to change at line 288 skipping to change at line 289
"Not enough data was provided.") "Not enough data was provided.")
CG_ERROR_MACRO(52, CG_ERROR_MACRO(52,
CG_NON_NUMERIC_PARAMETER_ERROR, CG_NON_NUMERIC_PARAMETER_ERROR,
"The parameter is not of a numeric type.") "The parameter is not of a numeric type.")
CG_ERROR_MACRO(53, CG_ERROR_MACRO(53,
CG_ARRAY_SIZE_MISMATCH_ERROR, CG_ARRAY_SIZE_MISMATCH_ERROR,
"The specified array sizes are not compatible with the given array.") "The specified array sizes are not compatible with the given array.")
CG_ERROR_MACRO(54,
CG_CANNOT_SET_NON_UNIFORM_PARAMETER_ERROR,
"Cannot set the value of a non-uniform parameter.")
CG_ERROR_MACRO(55,
CG_DUPLICATE_NAME_ERROR,
"This name is already in use.")
#undef CG_ERROR_MACRO #undef CG_ERROR_MACRO
 End of changes. 5 change blocks. 
3 lines changed or deleted 12 lines changed or added


 cg_profiles.h   cg_profiles.h 
skipping to change at line 17 skipping to change at line 17
* NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion * NVIDIA Corporation("NVIDIA") supplies this software to you in considerat ion
* of your agreement to the following terms, and your use, installation, * of your agreement to the following terms, and your use, installation,
* modification or redistribution of this NVIDIA software constitutes * modification or redistribution of this NVIDIA software constitutes
* acceptance of these terms. If you do not agree with these terms, please do * acceptance of these terms. If you do not agree with these terms, please do
* not use, install, modify or redistribute this NVIDIA software. * not use, install, modify or redistribute this NVIDIA software.
* *
* *
* *
* In consideration of your agreement to abide by the following terms, and * In consideration of your agreement to abide by the following terms, and
* subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse, * subject to these terms, NVIDIA grants you a personal, non-exclusive lice nse,
* under NVIDIA * under NVIDIA's copyrights in this original NVIDIA software (the "NVIDIA
* Software"), to use, reproduce, modify and redistribute the NVIDIA * Software"), to use, reproduce, modify and redistribute the NVIDIA
* Software, with or without modifications, in source and/or binary forms; * Software, with or without modifications, in source and/or binary forms;
* provided that if you redistribute the NVIDIA Software, you must retain t he * provided that if you redistribute the NVIDIA Software, you must retain t he
* copyright notice of NVIDIA, this notice and the following text and * copyright notice of NVIDIA, this notice and the following text and
* disclaimers in all such redistributions of the NVIDIA Software. Neither the * disclaimers in all such redistributions of the NVIDIA Software. Neither the
* name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed * name, trademarks, service marks nor logos of NVIDIA Corporation may be u sed
* to endorse or promote products derived from the NVIDIA Software without * to endorse or promote products derived from the NVIDIA Software without
* specific prior written permission from NVIDIA. Except as expressly stat ed * specific prior written permission from NVIDIA. Except as expressly stat ed
* in this notice, no other rights or licenses express or implied, are gran ted * in this notice, no other rights or licenses express or implied, are gran ted
* by NVIDIA herein, including but not limited to any patent rights that ma y be * by NVIDIA herein, including but not limited to any patent rights that ma y be
skipping to change at line 78 skipping to change at line 78
* *
*/ */
#define CG_IN_PROFILES_INCLUDE #define CG_IN_PROFILES_INCLUDE
#include <Cg/cgGL_profiles.h> #include <Cg/cgGL_profiles.h>
CG_PROFILE_MACRO(DX9Vertex11,vs_1_1,VS_1_1,"vs_1_1",6153,1) CG_PROFILE_MACRO(DX9Vertex11,vs_1_1,VS_1_1,"vs_1_1",6153,1)
CG_PROFILE_MACRO(DX9Vertex20,vs_2_0,VS_2_0,"vs_2_0",6154,1) CG_PROFILE_MACRO(DX9Vertex20,vs_2_0,VS_2_0,"vs_2_0",6154,1)
CG_PROFILE_MACRO(DX9Vertex2x,vs_2_x,VS_2_X,"vs_2_x",6155,1) CG_PROFILE_MACRO(DX9Vertex2x,vs_2_x,VS_2_X,"vs_2_x",6155,1)
CG_PROFILE_MACRO(DX9Vertex2sw,vs_2_sw,VS_2_SW,"vs_2_sw",6156,1)
CG_PROFILE_MACRO(DX9Vertex30,vs_3_0,VS_3_0,"vs_3_0",6157,1)
CG_PROFILE_MACRO(DX9Pixel11,ps_1_1,PS_1_1,"ps_1_1",6159,0) CG_PROFILE_MACRO(DX9Pixel11,ps_1_1,PS_1_1,"ps_1_1",6159,0)
CG_PROFILE_MACRO(DX9Pixel12,ps_1_2,PS_1_2,"ps_1_2",6160,0) CG_PROFILE_MACRO(DX9Pixel12,ps_1_2,PS_1_2,"ps_1_2",6160,0)
CG_PROFILE_MACRO(DX9Pixel13,ps_1_3,PS_1_3,"ps_1_3",6161,0) CG_PROFILE_MACRO(DX9Pixel13,ps_1_3,PS_1_3,"ps_1_3",6161,0)
CG_PROFILE_MACRO(DX9Pixel20,ps_2_0,PS_2_0,"ps_2_0",6162,0) CG_PROFILE_MACRO(DX9Pixel20,ps_2_0,PS_2_0,"ps_2_0",6162,0)
CG_PROFILE_MACRO(DX9Pixel2x,ps_2_x,PS_2_X,"ps_2_x",6163,0) CG_PROFILE_MACRO(DX9Pixel2x,ps_2_x,PS_2_X,"ps_2_x",6163,0)
CG_PROFILE_MACRO(DX9Pixel2sw,ps_2_sw,PS_2_SW,"ps_2_sw",6164,0)
CG_PROFILE_MACRO(DX9Pixel30,ps_3_0,PS_3_0,"ps_3_0",6165,0)
CG_PROFILE_MACRO(Generic, generic, GENERIC, "generic", 7002,0) CG_PROFILE_MACRO(Generic, generic, GENERIC, "generic", 7002,0)
#undef CG_PROFILE_MACRO #undef CG_PROFILE_MACRO
#undef CG_IN_PROFILES_INCLUDE #undef CG_IN_PROFILES_INCLUDE
 End of changes. 3 change blocks. 
1 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/