29 #include "../idlib/precompiled.h"
168 hmod = LoadLibrary(
"cg.dll");
269 hmod = LoadLibrary(
"cgGL.dll");
PFNCGGLSETOPTIMALOPTIONSPROC cgGLSetOptimalOptions
PFNCGISCONTEXTPROC cgIsContext
PFNCGCREATEPROGRAMPROC cgCreateProgram
void(* PFNCGGLSETMATRIXPARAMETERARRAYFCPROC)(CGparameter param, long offset, long nelements, const float *matrices)
void(* PFNCGGLGETMATRIXPARAMETERFCPROC)(CGparameter param, float *matrix)
void(* PFNCGGLSETPARAMETERARRAY3DPROC)(CGparameter param, long offset, long nelements, const double *v)
void(* PFNCGGLGETPARAMETER4DPROC)(CGparameter param, double *v)
void(* PFNCGGLSETPARAMETERARRAY1DPROC)(CGparameter param, long offset, long nelements, const double *v)
PFNCGGLSETPARAMETERARRAY2DPROC cgGLSetParameterArray2d
PFNCGGLGETMATRIXPARAMETERFCPROC cgGLGetMatrixParameterfc
unsigned long(* PFNCGGETPARAMETERRESOURCEINDEXPROC)(CGparameter param)
void(* PFNCGGLBINDPROGRAMPROC)(CGprogram program)
void(* PFNCGGLSETMATRIXPARAMETERDCPROC)(CGparameter param, const double *matrix)
void(* PFNCGGLGETPARAMETER4FPROC)(CGparameter param, float *v)
PFNCGGLSETPARAMETER1DPROC cgGLSetParameter1d
CGresource(* PFNCGGETPARAMETERRESOURCEPROC)(CGparameter param)
void(* PFNCGGLGETPARAMETERARRAY4FPROC)(CGparameter param, long offset, long nelements, float *v)
PFNCGGLSETMATRIXPARAMETERFRPROC cgGLSetMatrixParameterfr
void(* PFNCGGLGETPARAMETER2DPROC)(CGparameter param, double *v)
PFNCGGLGETPARAMETERARRAY4FPROC cgGLGetParameterArray4f
PFNCGGETTYPESTRINGPROC cgGetTypeString
void(* PFNCGGLGETPARAMETERARRAY1DPROC)(CGparameter param, long offset, long nelements, double *v)
PFNCGGLGETLATESTPROFILEPROC cgGLGetLatestProfile
PFNCGGLGETMATRIXPARAMETERDRPROC cgGLGetMatrixParameterdr
void(* PFNCGGLDISABLETEXTUREPARAMETERPROC)(CGparameter param)
PFNCGGETTYPEPROC cgGetType
void(* PFNCGCOMPILEPROGRAMPROC)(CGprogram program)
PFNCGGETPROFILESTRINGPROC cgGetProfileString
CGresource(* PFNCGGETRESOURCEPROC)(const char *resource_string)
GLenum(* PFNCGGLGETTEXTUREENUMPROC)(CGparameter param)
PFNCGGETPARAMETERDIRECTIONPROC cgGetParameterDirection
int(* PFNCGGETARRAYSIZEPROC)(CGparameter param, int dimension)
PFNCGGETRESOURCESTRINGPROC cgGetResourceString
void(* PFNCGGLSETPARAMETERPOINTERPROC)(CGparameter param, GLint fsize, GLenum type, GLsizei stride, GLvoid *pointer)
void(* PFNCGGLGETMATRIXPARAMETERDCPROC)(CGparameter param, double *matrix)
PFNCGGLSETPARAMETER4DPROC cgGLSetParameter4d
PFNCGGETFIRSTPROGRAMPROC cgGetFirstProgram
PFNCGGETPARAMETERVARIABILITYPROC cgGetParameterVariability
PFNCGCREATEPROGRAMFROMFILEPROC cgCreateProgramFromFile
void(* PFNCGGLSETPARAMETER4FVPROC)(CGparameter param, const float *v)
void(* PFNCGGLSETPARAMETER3DPROC)(CGparameter param, double x, double y, double z)
void(* PFNCGGLSETPARAMETERARRAY4FPROC)(CGparameter param, long offset, long nelements, const float *v)
void(* PFNCGGLSETPARAMETER4DVPROC)(CGparameter param, const double *v)
void(* PFNCGGLSETMATRIXPARAMETERARRAYDRPROC)(CGparameter param, long offset, long nelements, const double *matrices)
PFNCGGLSETPARAMETERARRAY1DPROC cgGLSetParameterArray1d
void(* PFNCGGLLOADPROGRAMPROC)(CGprogram program)
CGparameter(* PFNCGGETNAMEDPARAMETERPROC)(CGprogram prog, const char *name)
PFNCGGETARRAYSIZEPROC cgGetArraySize
PFNCGGETLASTLISTINGPROC cgGetLastListing
PFNCGGLSETPARAMETERARRAY4DPROC cgGLSetParameterArray4d
PFNCGGETFIRSTSTRUCTPARAMETERPROC cgGetFirstStructParameter
PFNCGGETNEXTLEAFPARAMETERPROC cgGetNextLeafParameter
PFNCGGLISPROFILESUPPORTEDPROC cgGLIsProfileSupported
PFNCGGLGETPARAMETER3DPROC cgGLGetParameter3d
void(* PFNCGGLSETMATRIXPARAMETERDRPROC)(CGparameter param, const double *matrix)
CGbool(* PFNCGISPROGRAMCOMPILEDPROC)(CGprogram program)
void(* PFNCGGLSETPARAMETER4FPROC)(CGparameter param, float x, float y, float z, float w)
void(* PFNCGGLGETMATRIXPARAMETERARRAYFCPROC)(CGparameter param, long offset, long nelements, float *matrices)
PFNCGGLSETPARAMETERARRAY1FPROC cgGLSetParameterArray1f
PFNCGGETPROGRAMCONTEXTPROC cgGetProgramContext
CGprogram(* PFNCGGETFIRSTPROGRAMPROC)(CGcontext ctx)
void(* PFNCGGLSETPARAMETER3FVPROC)(CGparameter param, const float *v)
CGprogram(* PFNCGCREATEPROGRAMPROC)(CGcontext ctx, CGenum program_type, const char *program, CGprofile profile, const char *entry, const char **args)
void(* PFNCGGLSETMATRIXPARAMETERFRPROC)(CGparameter param, const float *matrix)
void(* PFNCGGLSETPARAMETER2FVPROC)(CGparameter param, const float *v)
void(* PFNCGGLSETPARAMETER2DPROC)(CGparameter param, double x, double y)
PFNCGGLGETPARAMETER2FPROC cgGLGetParameter2f
CGprogram(* PFNCGCOPYPROGRAMPROC)(CGprogram program)
PFNCGGLGETMATRIXPARAMETERARRAYDCPROC cgGLGetMatrixParameterArraydc
const char *(* PFNCGGETTYPESTRINGPROC)(CGtype type)
PFNCGGLSETMATRIXPARAMETERARRAYFCPROC cgGLSetMatrixParameterArrayfc
PFNCGGETPROFILEPROC cgGetProfile
PFNCGGLGETPARAMETERARRAY3DPROC cgGLGetParameterArray3d
void(* PFNCGGLGETMATRIXPARAMETERFRPROC)(CGparameter param, float *matrix)
CGprofile(* PFNCGGETPROGRAMPROFILEPROC)(CGprogram prog)
void(* PFNCGGLENABLECLIENTSTATEPROC)(CGparameter param)
PFNCGGLGETMATRIXPARAMETERARRAYFCPROC cgGLGetMatrixParameterArrayfc
void(* PFNCGGLSETOPTIMALOPTIONSPROC)(CGprofile profile)
PFNCGISPARAMETERPROC cgIsParameter
void(* PFNCGGLSETPARAMETER1FVPROC)(CGparameter param, const float *v)
CGbool(* PFNCGISPARAMETERPROC)(CGparameter param)
PFNCGGLGETPARAMETER4FPROC cgGLGetParameter4f
void(* PFNCGGLSETMATRIXPARAMETERARRAYFRPROC)(CGparameter param, long offset, long nelements, const float *matrices)
void(* PFNCGGETPARAMETERVALUESPROC)(CGparameter param, CGenum value_type, int *nvalues)
PFNCGGLSETPARAMETER4FVPROC cgGLSetParameter4fv
PFNCGGETPARAMETERRESOURCEINDEXPROC cgGetParameterResourceIndex
PFNCGSETERRORCALLBACKPROC cgSetErrorCallback
PFNCGGLGETTEXTUREPARAMETERPROC cgGLGetTextureParameter
void(* PFNCGDESTROYCONTEXTPROC)(CGcontext ctx)
void(* PFNCGGLGETPARAMETERARRAY3DPROC)(CGparameter param, long offset, long nelements, double *v)
PFNCGGLSETPARAMETER4DVPROC cgGLSetParameter4dv
PFNCGGLDISABLEPROFILEPROC cgGLDisableProfile
void(* PFNCGGLGETPARAMETERARRAY3FPROC)(CGparameter param, long offset, long nelements, float *v)
PFNCGGLGETMATRIXPARAMETERDCPROC cgGLGetMatrixParameterdc
PFNCGGETPARAMETERBASERESOURCEPROC cgGetParameterBaseResource
GLuint(* PFNCGGLGETTEXTUREPARAMETERPROC)(CGparameter param)
PFNCGDESTROYPROGRAMPROC cgDestroyProgram
PFNCGGETERRORCALLBACKPROC cgGetErrorCallback
PFNCGGLLOADPROGRAMPROC cgGLLoadProgram
PFNCGGLGETPARAMETER3FPROC cgGLGetParameter3f
PFNCGGLGETPARAMETERARRAY4DPROC cgGLGetParameterArray4d
PFNCGGLGETPARAMETERARRAY3FPROC cgGLGetParameterArray3f
void(* PFNCGGLDISABLEPROFILEPROC)(CGprofile profile)
PFNCGGLSETPARAMETER1FVPROC cgGLSetParameter1fv
CGcontext(* PFNCGGETPROGRAMCONTEXTPROC)(CGprogram prog)
PFNCGGLDISABLETEXTUREPARAMETERPROC cgGLDisableTextureParameter
PFNCGGETPROGRAMSTRINGPROC cgGetProgramString
PFNCGGLSETPARAMETERARRAY3FPROC cgGLSetParameterArray3f
void(* PFNCGGLGETMATRIXPARAMETERARRAYDCPROC)(CGparameter param, long offset, long nelements, double *matrices)
PFNCGGETNEXTPROGRAMPROC cgGetNextProgram
PFNCGGLGETPARAMETER2DPROC cgGLGetParameter2d
PFNCGGLGETPARAMETERARRAY2DPROC cgGLGetParameterArray2d
void(* PFNCGGLSETPARAMETER1FPROC)(CGparameter param, float x)
PFNCGGLSETPARAMETER2FVPROC cgGLSetParameter2fv
CGparameter(* PFNCGGETFIRSTLEAFPARAMETERPROC)(CGprogram prog, CGenum name_space)
void(* PFNCGGLGETPARAMETERARRAY2FPROC)(CGparameter param, long offset, long nelements, float *v)
PFNCGGETFIRSTLEAFPARAMETERPROC cgGetFirstLeafParameter
PFNCGGLSETPARAMETER1FPROC cgGLSetParameter1f
void(* PFNCGGLSETPARAMETER4DPROC)(CGparameter param, double x, double y, double z, double w)
PFNCGCREATECONTEXTPROC cgCreateContext
PFNCGGLSETSTATEMATRIXPARAMETERPROC cgGLSetStateMatrixParameter
void(* PFNCGGLSETPARAMETER1DPROC)(CGparameter param, double x)
CGprogram(* PFNCGGETNEXTPROGRAMPROC)(CGprogram current)
PFNCGGLSETTEXTUREPARAMETERPROC cgGLSetTextureParameter
void(* PFNCGGLGETPARAMETER2FPROC)(CGparameter param, float *v)
PFNCGGLSETMATRIXPARAMETERDCPROC cgGLSetMatrixParameterdc
PFNCGGETARRAYPARAMETERPROC cgGetArrayParameter
void(* PFNCGGLDISABLECLIENTSTATEPROC)(CGparameter param)
void(* PFNCGGLGETPARAMETER3DPROC)(CGparameter param, double *v)
CGbool(* PFNCGISPROGRAMPROC)(CGprogram program)
PFNCGISPROGRAMPROC cgIsProgram
PFNCGGLSETMATRIXPARAMETERFCPROC cgGLSetMatrixParameterfc
PFNCGGLSETMATRIXPARAMETERDRPROC cgGLSetMatrixParameterdr
void(* PFNCGGLGETPARAMETER1FPROC)(CGparameter param, float *v)
void(* PFNCGGLSETPARAMETERARRAY3FPROC)(CGparameter param, long offset, long nelements, const float *v)
PFNCGGLGETPARAMETERARRAY2FPROC cgGLGetParameterArray2f
void(* PFNCGGLGETPARAMETER1DPROC)(CGparameter param, double *v)
void(* PFNCGGLSETPARAMETERARRAY2DPROC)(CGparameter param, long offset, long nelements, const double *v)
void(* PFNCGGLENABLETEXTUREPARAMETERPROC)(CGparameter param)
PFNCGGLSETPARAMETER1DVPROC cgGLSetParameter1dv
void(* PFNCGGLGETMATRIXPARAMETERARRAYDRPROC)(CGparameter param, long offset, long nelements, double *matrices)
PFNCGGLGETPARAMETER1DPROC cgGLGetParameter1d
PFNCGGLSETPARAMETERPOINTERPROC cgGLSetParameterPointer
CGbool(* PFNCGGLISPROFILESUPPORTEDPROC)(CGprofile profile)
CGparameter(* PFNCGGETFIRSTSTRUCTPARAMETERPROC)(CGparameter param)
void(* PFNCGGLSETPARAMETER3DVPROC)(CGparameter param, const double *v)
PFNCGGETERRORPROC cgGetError
const char *(* PFNCGGETPARAMETERNAMEPROC)(CGparameter param)
CGprogram(* PFNCGCREATEPROGRAMFROMFILEPROC)(CGcontext ctx, CGenum program_type, const char *program_file, CGprofile profile, const char *entry, const char **args)
CGprogram(* PFNCGGETPARAMETERPROGRAMPROC)(CGparameter prog)
PFNCGGLGETPARAMETERARRAY1FPROC cgGLGetParameterArray1f
void(* PFNCGDESTROYPROGRAMPROC)(CGprogram program)
void(* PFNCGGLGETPARAMETER3FPROC)(CGparameter param, float *v)
PFNCGDESTROYCONTEXTPROC cgDestroyContext
PFNCGGETPARAMETERTYPEPROC cgGetParameterType
void(* PFNCGGLSETSTATEMATRIXPARAMETERPROC)(CGparameter param, GLenum matrix, GLenum transform)
CGenum(* PFNCGGETPARAMETERVARIABILITYPROC)(CGparameter param)
PFNCGGETARRAYDIMENSIONPROC cgGetArrayDimension
CGparameter(* PFNCGGETARRAYPARAMETERPROC)(CGparameter aparam, int index)
PFNCGGLGETMATRIXPARAMETERARRAYFRPROC cgGLGetMatrixParameterArrayfr
PFNCGGLDISABLECLIENTSTATEPROC cgGLDisableClientState
PFNCGGLGETPARAMETER4DPROC cgGLGetParameter4d
CGparameter(* PFNCGGETFIRSTDEPENDENTPARAMETERPROC)(CGparameter param)
PFNCGGLSETMATRIXPARAMETERARRAYDRPROC cgGLSetMatrixParameterArraydr
CGprofile(* PFNCGGETPROFILEPROC)(const char *profile_string)
PFNCGGLSETPARAMETERARRAY3DPROC cgGLSetParameterArray3d
CGprofile(* PFNCGGLGETLATESTPROFILEPROC)(CGGLenum profile_type)
PFNCGGLSETPARAMETER3FPROC cgGLSetParameter3f
CGbool(* PFNCGISCONTEXTPROC)(CGcontext ctx)
void(* PFNCGGLSETPARAMETER3FPROC)(CGparameter param, float x, float y, float z)
PFNCGGETPARAMETERPROGRAMPROC cgGetParameterProgram
void(* PFNCGSETERRORCALLBACKPROC)(CGerrorCallbackFunc func)
PFNCGISPARAMETERREFERENCEDPROC cgIsParameterReferenced
CGparameter(* PFNCGGETFIRSTPARAMETERPROC)(CGprogram prog, CGenum name_space)
CGerror(* PFNCGGETERRORPROC)(void)
CGresource(* PFNCGGETPARAMETERBASERESOURCEPROC)(CGparameter param)
PFNCGGLSETPARAMETER3FVPROC cgGLSetParameter3fv
PFNCGGETFIRSTPARAMETERPROC cgGetFirstParameter
PFNCGGLGETTEXTUREENUMPROC cgGLGetTextureEnum
const char *(* PFNCGGETLASTLISTINGPROC)(CGcontext ctx)
CGenum(* PFNCGGETPARAMETERDIRECTIONPROC)(CGparameter param)
PFNCGGETFIRSTDEPENDENTPARAMETERPROC cgGetFirstDependentParameter
PFNCGGLENABLEPROFILEPROC cgGLEnableProfile
PFNCGGETRESOURCEPROC cgGetResource
void(* PFNCGGLGETMATRIXPARAMETERDRPROC)(CGparameter param, double *matrix)
CGparameter(* PFNCGGETNEXTPARAMETERPROC)(CGparameter current)
PFNCGGETNAMEDPARAMETERPROC cgGetNamedParameter
CGtype(* PFNCGGETTYPEPROC)(const char *type_string)
PFNCGGETPROGRAMPROFILEPROC cgGetProgramProfile
PFNCGGLSETPARAMETER2DVPROC cgGLSetParameter2dv
CGtype(* PFNCGGETPARAMETERTYPEPROC)(CGparameter param)
PFNCGGETERRORSTRINGPROC cgGetErrorString
PFNCGCOMPILEPROGRAMPROC cgCompileProgram
const char *(* PFNCGGETRESOURCESTRINGPROC)(CGresource resource)
void(* PFNCGGLSETPARAMETERARRAY1FPROC)(CGparameter param, long offset, long nelements, const float *v)
PFNCGGETPARAMETERSEMANTICPROC cgGetParameterSemantic
CGcontext(* PFNCGCREATECONTEXTPROC)(void)
CGerrorCallbackFunc(* PFNCGGETERRORCALLBACKPROC)(void)
PFNCGGLSETPARAMETER4FPROC cgGLSetParameter4f
PFNCGGLGETPARAMETERARRAY1DPROC cgGLGetParameterArray1d
PFNCGGLSETPARAMETER3DPROC cgGLSetParameter3d
PFNCGGETNEXTPARAMETERPROC cgGetNextParameter
const char *(* PFNCGGETPROFILESTRINGPROC)(CGprofile profile)
PFNCGGLSETPARAMETER3DVPROC cgGLSetParameter3dv
void(* PFNCGGLSETPARAMETER1DVPROC)(CGparameter param, const double *v)
PFNCGGLENABLECLIENTSTATEPROC cgGLEnableClientState
PFNCGGLBINDPROGRAMPROC cgGLBindProgram
PFNCGGLENABLETEXTUREPARAMETERPROC cgGLEnableTextureParameter
PFNCGGLSETPARAMETERARRAY4FPROC cgGLSetParameterArray4f
int(* PFNCGGETARRAYDIMENSIONPROC)(CGparameter param)
CGparameter(* PFNCGGETNEXTLEAFPARAMETERPROC)(CGparameter current)
void(* PFNCGGLSETTEXTUREPARAMETERPROC)(CGparameter param, GLuint texobj)
PFNCGGLSETMATRIXPARAMETERARRAYDCPROC cgGLSetMatrixParameterArraydc
CGbool(* PFNCGISPARAMETERREFERENCEDPROC)(CGparameter param)
PFNCGGETPARAMETERVALUESPROC cgGetParameterValues
const char *(* PFNCGGETPARAMETERSEMANTICPROC)(CGparameter param)
const char *(* PFNCGGETPROGRAMSTRINGPROC)(CGprogram prog, CGenum pname)
PFNCGGLSETPARAMETERARRAY2FPROC cgGLSetParameterArray2f
void(* PFNCGGLSETPARAMETER2DVPROC)(CGparameter param, const double *v)
PFNCGISPROGRAMCOMPILEDPROC cgIsProgramCompiled
void(* PFNCGGLSETMATRIXPARAMETERFCPROC)(CGparameter param, const float *matrix)
void(* PFNCGGLGETPARAMETERARRAY1FPROC)(CGparameter param, long offset, long nelements, float *v)
void(* PFNCGGLSETMATRIXPARAMETERARRAYDCPROC)(CGparameter param, long offset, long nelements, const double *matrices)
PFNCGGLSETPARAMETER2FPROC cgGLSetParameter2f
void(* PFNCGGLSETPARAMETERARRAY2FPROC)(CGparameter param, long offset, long nelements, const float *v)
const char *(* PFNCGGETERRORSTRINGPROC)(CGerror error)
void(* PFNCGGLGETPARAMETERARRAY4DPROC)(CGparameter param, long offset, long nelements, double *v)
PFNCGGLSETMATRIXPARAMETERARRAYFRPROC cgGLSetMatrixParameterArrayfr
PFNCGGLSETPARAMETER2DPROC cgGLSetParameter2d
PFNCGGLGETPARAMETER1FPROC cgGLGetParameter1f
void(* PFNCGGLSETPARAMETERARRAY4DPROC)(CGparameter param, long offset, long nelements, const double *v)
PFNCGGETPARAMETERRESOURCEPROC cgGetParameterResource
void(* PFNCGGLSETPARAMETER2FPROC)(CGparameter param, float x, float y)
PFNCGGLGETMATRIXPARAMETERARRAYDRPROC cgGLGetMatrixParameterArraydr
PFNCGGETPARAMETERNAMEPROC cgGetParameterName
void(* PFNCGGLENABLEPROFILEPROC)(CGprofile profile)
PFNCGCOPYPROGRAMPROC cgCopyProgram
PFNCGGLGETMATRIXPARAMETERFRPROC cgGLGetMatrixParameterfr
void(* PFNCGGLGETPARAMETERARRAY2DPROC)(CGparameter param, long offset, long nelements, double *v)
void(* PFNCGGLGETMATRIXPARAMETERARRAYFRPROC)(CGparameter param, long offset, long nelements, float *matrices)