mirror of https://github.com/snes9xgit/snes9x.git
73 lines
2.9 KiB
C
73 lines
2.9 KiB
C
#ifndef CGFUNCTIONS_H
|
|
#define CGFUNCTIONS_H
|
|
|
|
#define CG_EXPLICIT
|
|
#define CGD3D9_EXPLICIT
|
|
#define CGGL_EXPLICIT
|
|
|
|
#include <cg/cg.h>
|
|
#include <cg/cgd3d9.h>
|
|
#include <cg/cggl.h>
|
|
|
|
//cg.dll
|
|
typedef CG_API CGcontext (CGENTRY *CGCC)(void);
|
|
extern CGCC cgCreateContext;
|
|
typedef CG_API void (CGENTRY *CGDC)(CGcontext context);
|
|
extern CGDC cgDestroyContext;
|
|
typedef CG_API CGparameter (CGENTRY *CGGNP)(CGprogram program, const char *name);
|
|
extern CGGNP cgGetNamedParameter;
|
|
typedef CG_API CGerror (CGENTRY *CGGE)(void);
|
|
extern CGGE cgGetError;
|
|
typedef CG_API const char * (CGENTRY *CGGES)(CGerror error);
|
|
extern CGGES cgGetErrorString;
|
|
typedef CG_API const char * (CGENTRY *CGGLL)(CGcontext context);
|
|
extern CGGLL cgGetLastListing;
|
|
typedef CG_API CGprogram (CGENTRY *CGCP)(CGcontext context, CGenum program_type, const char *program, CGprofile profile, const char *entry, const char **args);
|
|
extern CGCP cgCreateProgram;
|
|
typedef CG_API void (CGENTRY *CGDP)(CGprogram program);
|
|
extern CGDP cgDestroyProgram;
|
|
|
|
//cgD3D9.dll
|
|
typedef CGD3D9DLL_API HRESULT (CGD3D9ENTRY *CGD3DSD)(IDirect3DDevice9 *pDevice);
|
|
extern CGD3DSD cgD3D9SetDevice;
|
|
typedef CGD3D9DLL_API HRESULT (CGD3D9ENTRY *CGD3DBP)(CGprogram prog);
|
|
extern CGD3DBP cgD3D9BindProgram;
|
|
typedef CGD3D9DLL_API CGprofile (CGD3D9ENTRY *CGD3DGLVP)(void);
|
|
extern CGD3DGLVP cgD3D9GetLatestVertexProfile;
|
|
typedef CGD3D9DLL_API CGprofile (CGD3D9ENTRY *CGD3DGLPP)(void);
|
|
extern CGD3DGLPP cgD3D9GetLatestPixelProfile;
|
|
typedef CGD3D9DLL_API const char ** (CGD3D9ENTRY *CGD3DGOO)(CGprofile profile);
|
|
extern CGD3DGOO cgD3D9GetOptimalOptions;
|
|
typedef CGD3D9DLL_API HRESULT (CGD3D9ENTRY *CGD3DLP)(CGprogram prog, CGbool paramShadowing, DWORD assemFlags);
|
|
extern CGD3DLP cgD3D9LoadProgram;
|
|
typedef CGD3D9DLL_API HRESULT (CGD3D9ENTRY *CGD3DSUM)(CGparameter param, const D3DMATRIX *matrix);
|
|
extern CGD3DSUM cgD3D9SetUniformMatrix;
|
|
typedef CGD3D9DLL_API HRESULT (CGD3D9ENTRY *CGD3DSU)(CGparameter param, const void *floats);
|
|
extern CGD3DSU cgD3D9SetUniform;
|
|
|
|
//cggl.dll
|
|
typedef CGGL_API void (CGGLENTRY *CGGLSSMP)(CGparameter param, CGGLenum matrix, CGGLenum transform);
|
|
extern CGGLSSMP cgGLSetStateMatrixParameter;
|
|
typedef CGGL_API void (CGGLENTRY *CGGLSP2FV)(CGparameter param, const float *v);
|
|
extern CGGLSP2FV cgGLSetParameter2fv;
|
|
typedef CGGL_API CGprofile (CGGLENTRY *CGGLGLP)(CGGLenum profile_type);
|
|
extern CGGLGLP cgGLGetLatestProfile;
|
|
typedef CGGL_API void (CGGLENTRY *CGGLEP)(CGprofile profile);
|
|
extern CGGLEP cgGLEnableProfile;
|
|
typedef CGGL_API void (CGGLENTRY *CGGLDP)(CGprofile profile);
|
|
extern CGGLDP cgGLDisableProfile;
|
|
typedef CGGL_API void (CGGLENTRY *CGGLSOO)(CGprofile profile);
|
|
extern CGGLSOO cgGLSetOptimalOptions;
|
|
typedef CGGL_API void (CGGLENTRY *CGGLLP)(CGprogram program);
|
|
extern CGGLLP cgGLLoadProgram;
|
|
typedef CGGL_API void (CGGLENTRY *CGGLBP)(CGprogram program);
|
|
extern CGGLBP cgGLBindProgram;
|
|
|
|
|
|
|
|
//cgfunctions.cpp
|
|
bool loadCgFunctions();
|
|
void unloadCgLibrary();
|
|
|
|
#endif
|