⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fxg.h

📁 Mesa is an open-source implementation of the OpenGL specification - a system for rendering interacti
💻 H
📖 第 1 页 / 共 2 页
字号:
** buffer management*/#define grBufferClear                   trap_grBufferClear#define grBufferSwap                    trap_grBufferSwap#define grRenderBuffer                  trap_grRenderBuffer/*** error management*/#define grErrorSetCallback              trap_grErrorSetCallback/*** SST routines*/#define grFinish                        trap_grFinish#define grFlush                         trap_grFlush#define grSstWinOpen                    trap_grSstWinOpen#define grSstWinClose                   trap_grSstWinClose#define grSelectContext                 trap_grSelectContext#define grSstOrigin                     trap_grSstOrigin#define grSstSelect                     trap_grSstSelect/*** Glide configuration and special effect maintenance functions*/#define grAlphaBlendFunction            trap_grAlphaBlendFunction#define grAlphaCombine                  trap_grAlphaCombine#define grAlphaControlsITRGBLighting    trap_grAlphaControlsITRGBLighting#define grAlphaTestFunction             trap_grAlphaTestFunction#define grAlphaTestReferenceValue       trap_grAlphaTestReferenceValue#define grChromakeyMode                 trap_grChromakeyMode#define grChromakeyValue                trap_grChromakeyValue#define grClipWindow                    trap_grClipWindow#define grColorCombine                  trap_grColorCombine#define grColorMask                     trap_grColorMask#define grCullMode                      trap_grCullMode#define grConstantColorValue            trap_grConstantColorValue#define grDepthBiasLevel                trap_grDepthBiasLevel#define grDepthBufferFunction           trap_grDepthBufferFunction#define grDepthBufferMode               trap_grDepthBufferMode#define grDepthMask                     trap_grDepthMask#define grDisableAllEffects             trap_grDisableAllEffects#define grDitherMode                    trap_grDitherMode#define grFogColorValue                 trap_grFogColorValue#define grFogMode                       trap_grFogMode#define grFogTable                      trap_grFogTable#define grLoadGammaTable                trap_grLoadGammaTable#define grSplash                        trap_grSplash#define grGet                           trap_grGet#define grGetString                     trap_grGetString#define grQueryResolutions              trap_grQueryResolutions#define grReset                         trap_grReset#define grGetProcAddress                trap_grGetProcAddress#define grEnable                        trap_grEnable#define grDisable                       trap_grDisable#define grCoordinateSpace               trap_grCoordinateSpace#define grDepthRange                    trap_grDepthRange#define grStippleMode                   trap_grStippleMode#define grStipplePattern                trap_grStipplePattern#define grViewport                      trap_grViewport/*** texture mapping control functions*/#define grTexCalcMemRequired            trap_grTexCalcMemRequired#define grTexTextureMemRequired         trap_grTexTextureMemRequired#define grTexMinAddress                 trap_grTexMinAddress#define grTexMaxAddress                 trap_grTexMaxAddress#define grTexNCCTable                   trap_grTexNCCTable#define grTexSource                     trap_grTexSource#define grTexClampMode                  trap_grTexClampMode#define grTexCombine                    trap_grTexCombine#define grTexDetailControl              trap_grTexDetailControl#define grTexFilterMode                 trap_grTexFilterMode#define grTexLodBiasValue               trap_grTexLodBiasValue#define grTexDownloadMipMap             trap_grTexDownloadMipMap#define grTexDownloadMipMapLevel        trap_grTexDownloadMipMapLevel#define grTexDownloadMipMapLevelPartial trap_grTexDownloadMipMapLevelPartial#define grTexDownloadTable              trap_grTexDownloadTable#define grTexDownloadTablePartial       trap_grTexDownloadTablePartial#define grTexMipMapMode                 trap_grTexMipMapMode#define grTexMultibase                  trap_grTexMultibase#define grTexMultibaseAddress           trap_grTexMultibaseAddress/*** linear frame buffer functions*/#define grLfbLock                       trap_grLfbLock#define grLfbUnlock                     trap_grLfbUnlock#define grLfbConstantAlpha              trap_grLfbConstantAlpha#define grLfbConstantDepth              trap_grLfbConstantDepth#define grLfbWriteColorSwizzle          trap_grLfbWriteColorSwizzle#define grLfbWriteColorFormat           trap_grLfbWriteColorFormat#define grLfbWriteRegion                trap_grLfbWriteRegion#define grLfbReadRegion                 trap_grLfbReadRegion/*** glide management functions*/#define grGlideInit                     trap_grGlideInit#define grGlideShutdown                 trap_grGlideShutdown#define grGlideGetState                 trap_grGlideGetState#define grGlideSetState                 trap_grGlideSetState#define grGlideGetVertexLayout          trap_grGlideGetVertexLayout#define grGlideSetVertexLayout          trap_grGlideSetVertexLayout/*** glide utility functions*/#define guGammaCorrectionRGB            trap_guGammaCorrectionRGB#define guFogTableIndexToW              trap_guFogTableIndexToW#define guFogGenerateExp                trap_guFogGenerateExp#define guFogGenerateExp2               trap_guFogGenerateExp2#define guFogGenerateLinear             trap_guFogGenerateLinear#endif /* FX_TRAP_GLIDE_internal */#endif /* FX_TRAP_GLIDE *//* <texus.h> */#define TX_MAX_LEVEL 16typedef struct _TxMip {        int format;        int width;        int height;        int depth;        int size;        void *data[TX_MAX_LEVEL];        FxU32 pal[256];} TxMip;#define TX_DITHER_NONE                                  0x00000000#define TX_DITHER_4x4                                   0x00000001#define TX_DITHER_ERR                                   0x00000002#define TX_COMPRESSION_STATISTICAL                      0x00000000#define TX_COMPRESSION_HEURISTIC                        0x00000010/* <texus.h> */struct tdfx_glide {   /*   ** glide extensions   */   void (FX_CALL *grSetNumPendingBuffers) (FxI32 NumPendingBuffers);   char * (FX_CALL *grGetRegistryOrEnvironmentStringExt) (char *theEntry);   void (FX_CALL *grGetGammaTableExt) (FxU32 nentries, FxU32 *red, FxU32 *green, FxU32 *blue);   void (FX_CALL *grChromaRangeModeExt) (GrChromakeyMode_t mode);   void (FX_CALL *grChromaRangeExt) (GrColor_t color, GrColor_t range, GrChromaRangeMode_t match_mode);   void (FX_CALL *grTexChromaModeExt) (GrChipID_t tmu, GrChromakeyMode_t mode);   void (FX_CALL *grTexChromaRangeExt) (GrChipID_t tmu, GrColor_t min, GrColor_t max, GrTexChromakeyMode_t mode);   /* pointcast */   void (FX_CALL *grTexDownloadTableExt) (GrChipID_t tmu, GrTexTable_t type, void *data);   void (FX_CALL *grTexDownloadTablePartialExt) (GrChipID_t tmu, GrTexTable_t type, void *data, int start, int end);   void (FX_CALL *grTexNCCTableExt) (GrChipID_t tmu, GrNCCTable_t table);   /* tbext */   void (FX_CALL *grTextureBufferExt) (GrChipID_t tmu, FxU32 startAddress, GrLOD_t thisLOD, GrLOD_t largeLOD, GrAspectRatio_t aspectRatio, GrTextureFormat_t format, FxU32 odd_even_mask);   void (FX_CALL *grTextureAuxBufferExt) (GrChipID_t tmu, FxU32 startAddress, GrLOD_t thisLOD, GrLOD_t largeLOD, GrAspectRatio_t aspectRatio, GrTextureFormat_t format, FxU32 odd_even_mask);   void (FX_CALL *grAuxBufferExt) (GrBuffer_t buffer);   /* napalm */   GrContext_t (FX_CALL *grSstWinOpenExt) (FxU32 hWnd, GrScreenResolution_t resolution, GrScreenRefresh_t refresh, GrColorFormat_t format, GrOriginLocation_t origin, GrPixelFormat_t pixelformat, int nColBuffers, int nAuxBuffers);   void (FX_CALL *grStencilFuncExt) (GrCmpFnc_t fnc, GrStencil_t ref, GrStencil_t mask);   void (FX_CALL *grStencilMaskExt) (GrStencil_t value);   void (FX_CALL *grStencilOpExt) (GrStencilOp_t stencil_fail, GrStencilOp_t depth_fail, GrStencilOp_t depth_pass);   void (FX_CALL *grLfbConstantStencilExt) (GrStencil_t value);   void (FX_CALL *grBufferClearExt) (GrColor_t color, GrAlpha_t alpha, FxU32 depth, GrStencil_t stencil);   void (FX_CALL *grColorCombineExt) (GrCCUColor_t a, GrCombineMode_t a_mode, GrCCUColor_t b, GrCombineMode_t b_mode, GrCCUColor_t c, FxBool c_invert, GrCCUColor_t d, FxBool d_invert, FxU32 shift, FxBool invert);   void (FX_CALL *grAlphaCombineExt) (GrACUColor_t a, GrCombineMode_t a_mode, GrACUColor_t b, GrCombineMode_t b_mode, GrACUColor_t c, FxBool c_invert, GrACUColor_t d, FxBool d_invert, FxU32 shift, FxBool invert);   void (FX_CALL *grTexColorCombineExt) (GrChipID_t tmu, GrTCCUColor_t a, GrCombineMode_t a_mode, GrTCCUColor_t b, GrCombineMode_t b_mode, GrTCCUColor_t c, FxBool c_invert, GrTCCUColor_t d, FxBool d_invert, FxU32 shift, FxBool invert);   void (FX_CALL *grTexAlphaCombineExt) (GrChipID_t tmu, GrTACUColor_t a, GrCombineMode_t a_mode, GrTACUColor_t b, GrCombineMode_t b_mode, GrTACUColor_t c, FxBool c_invert, GrTACUColor_t d, FxBool d_invert, FxU32 shift, FxBool invert);   void (FX_CALL *grConstantColorValueExt) (GrChipID_t tmu, GrColor_t value);   void (FX_CALL *grColorMaskExt) (FxBool r, FxBool g, FxBool b, FxBool a);   void (FX_CALL *grAlphaBlendFunctionExt) (GrAlphaBlendFnc_t rgb_sf, GrAlphaBlendFnc_t rgb_df, GrAlphaBlendOp_t rgb_op, GrAlphaBlendFnc_t alpha_sf, GrAlphaBlendFnc_t alpha_df, GrAlphaBlendOp_t alpha_op);   void (FX_CALL *grTBufferWriteMaskExt) (FxU32 tmask);   /*   ** Texus2 functions   */   void (FX_CALL *txImgQuantize) (char *dst, char *src, int w, int h, FxU32 format, FxU32 dither);   void (FX_CALL *txMipQuantize) (TxMip *pxMip, TxMip *txMip, int fmt, FxU32 d, FxU32 comp);   void (FX_CALL *txPalToNcc) (GuNccTable *ncc_table, const FxU32 *pal);};void tdfx_hook_glide (struct tdfx_glide *Glide, int pointcast);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -