#include "XForm3d.h"#include "Vec3d.h"#include "PixelFormat.h"#include "geTypes.h"Go to the source code of this file.
Compounds | |
| struct | DRV_Bitmap |
| struct | DRV_CacheInfo |
| struct | DRV_Debug |
| struct | DRV_Driver |
| struct | DRV_DriverHook |
| struct | DRV_EngineSettings |
| struct | DRV_LInfo |
| struct | DRV_RGB |
| struct | DRV_TexInfo |
| struct | DRV_TLVertex |
| struct | DRV_Window |
| struct | geRDriver_PixelFormat |
| struct | geRDriver_THandleInfo |
| struct | GInfo |
| struct | tagRECT |
Defines | |
| #define | VOID void |
| #define | DRIVERCC _fastcall |
| #define | DllImport __declspec( dllimport ) |
| #define | DllExport __declspec( dllexport ) |
| #define | DRV_VERSION_MAJOR 100 |
| #define | DRV_VERSION_MINOR 3 |
| #define | DRV_VMAJS "100" |
| #define | DRV_VMINS "3" |
| #define | RDRIVER_PF_2D_SHIFT (0) |
| #define | RDRIVER_PF_3D_SHIFT (1) |
| #define | RDRIVER_PF_LIGHTMAP_SHIFT (2) |
| #define | RDRIVER_PF_PALETTE_SHIFT (3) |
| #define | RDRIVER_PF_ALPHA_SHIFT (4) |
| #define | RDRIVER_PF_OPTIONAL_SHIFT (16) |
| #define | RDRIVER_PF_HAS_ALPHA_SHIFT (RDRIVER_PF_OPTIONAL_SHIFT + 0) |
| #define | RDRIVER_PF_CAN_DO_COLORKEY_SHIFT (RDRIVER_PF_OPTIONAL_SHIFT + 1) |
| #define | RDRIVER_PF_COMBINE_LIGHTMAP_SHIFT (RDRIVER_PF_OPTIONAL_SHIFT + 2) |
| #define | RDRIVER_PF_2D (1<<RDRIVER_PF_2D_SHIFT) |
| #define | RDRIVER_PF_3D (1<<RDRIVER_PF_3D_SHIFT) |
| #define | RDRIVER_PF_LIGHTMAP (1<<RDRIVER_PF_LIGHTMAP_SHIFT) |
| #define | RDRIVER_PF_COMBINE_LIGHTMAP (1<<RDRIVER_PF_COMBINE_LIGHTMAP_SHIFT) |
| #define | RDRIVER_PF_PALETTE (1<<RDRIVER_PF_PALETTE_SHIFT) |
| #define | RDRIVER_PF_ALPHA (1<<RDRIVER_PF_ALPHA_SHIFT) |
| #define | RDRIVER_PF_CAN_DO_COLORKEY (1<<RDRIVER_PF_CAN_DO_COLORKEY_SHIFT) |
| #define | RDRIVER_PF_HAS_ALPHA (1<<RDRIVER_PF_HAS_ALPHA_SHIFT) |
| #define | RDRIVER_PF_MAJOR_MASK ((1<<RDRIVER_PF_OPTIONAL_SHIFT)-1) |
| #define | RDRIVER_THANDLE_HAS_COLORKEY (1<<0) |
| #define | DRV_PALETTE_ENTRIES 256 |
| #define | LMAP_TYPE_LIGHT 0 |
| #define | LMAP_TYPE_FOG 1 |
| #define | DRV_RENDER_ALPHA (1<<0) |
| #define | DRV_RENDER_FLUSH (1<<1) |
| #define | DRV_RENDER_NO_ZMASK (1<<2) |
| #define | DRV_RENDER_NO_ZWRITE (1<<3) |
| #define | DRV_RENDER_CLAMP_UV (1<<4) |
| #define | DRV_RENDER_POLY_NO_FOG (1<<5) |
| #define | DRV_POLYMODE_NORMAL 1 |
| #define | DRV_POLYMODE_GOURAUD 2 |
| #define | DRV_POLYMODE_LINES 3 |
| #define | DRV_SUPPORT_ALPHA (1<<0) |
| #define | DRV_SUPPORT_COLORKEY (1<<1) |
| #define | DRV_SUPPORT_GAMMA (1<<2) |
| #define | DRV_PREFERENCE_NO_MIRRORS (1<<0) |
| #define | DRV_PREFERENCE_SORT_WORLD_FB (1<<1) |
| #define | DRV_PREFERENCE_SORT_WORLD_BF (1<<2) |
| #define | DRV_PREFERENCE_DRAW_WALPHA_IN_BSP (1<<3) |
| #define | DRV_ERROR_NONE 0 |
| #define | DRV_ERROR_INVALID_PARMS 1 |
| #define | DRV_ERROR_NULL_WINDOW 2 |
| #define | DRV_ERROR_INIT_ERROR 3 |
| #define | DRV_ERROR_INVALID_REGISTER_MODE 4 |
| #define | DRV_ERROR_NO_MEMORY 5 |
| #define | DRV_ERROR_MAX_TEXTURES 6 |
| #define | DRV_ERROR_GENERIC 7 |
| #define | DRV_ERROR_UNDEFINED 8 |
| #define | DRV_ERROR_INVALID_WINDOW_MODE 9 |
Typedefs | |
| typedef void * | HWND |
| typedef void * | HBITMAP |
| typedef char | CHAR |
| typedef short | SHORT |
| typedef long | LONG |
| typedef unsigned long | ULONG |
| typedef ULONG * | PULONG |
| typedef unsigned short | USHORT |
| typedef USHORT * | PUSHORT |
| typedef unsigned char | UCHAR |
| typedef UCHAR * | PUCHAR |
| typedef char * | PSZ |
| typedef unsigned long | DWORD |
| typedef int | geBoolean |
| typedef unsigned char | BYTE |
| typedef unsigned short | WORD |
| typedef geFloat | FLOAT |
| typedef tagRECT | RECT |
| typedef uint8 | U8 |
| typedef uint16 | U16 |
| typedef uint32 | U32 |
| typedef char | C8 |
| typedef int8 | S8 |
| typedef int16 | S16 |
| typedef int32 | S32 |
| typedef geRDriver_THandle | geRDriver_THandle |
| typedef DRV_RGB | DRV_Palette [DRV_PALETTE_ENTRIES] |
| typedef geBoolean | DRV_ENUM_MODES_CB (S32 Mode, char *ModeName, S32 Width, S32 Height, void *Context) |
| typedef geBoolean | DRV_ENUM_DRV_CB (S32 Driver, char *DriverName, void *Context) |
| typedef geBoolean DRIVERCC | DRV_ENUM_DRIVER (DRV_ENUM_DRV_CB *Cb, void *Context) |
| typedef geBoolean DRIVERCC | DRV_ENUM_MODES (S32 Driver, char *DriverName, DRV_ENUM_MODES_CB *Cb, void *Context) |
| typedef geBoolean | DRV_ENUM_PFORMAT_CB (geRDriver_PixelFormat *Format, void *Context) |
| typedef geBoolean DRIVERCC | DRV_ENUM_PFORMAT (DRV_ENUM_PFORMAT_CB *Cb, void *Context) |
| typedef geBoolean DRIVERCC | DRV_INIT (DRV_DriverHook *Hook) |
| typedef geBoolean DRIVERCC | DRV_SHUTDOWN (void) |
| typedef geBoolean DRIVERCC | DRV_RESET (void) |
| typedef geBoolean DRIVERCC | DRV_UPDATE_WINDOW (void) |
| typedef geBoolean DRIVERCC | DRV_SET_ACTIVE (geBoolean active) |
| typedef geRDriver_THandle *DRIVERCC | CREATE_TEXTURE (int32 Width, int32 Height, int32 NumMipLevels, const geRDriver_PixelFormat *PixelFormat) |
| typedef geBoolean DRIVERCC | DESTROY_TEXTURE (geRDriver_THandle *THandle) |
| typedef geBoolean DRIVERCC | LOCK_THANDLE (geRDriver_THandle *THandle, int32 MipLevel, void **Data) |
| typedef geBoolean DRIVERCC | UNLOCK_THANDLE (geRDriver_THandle *THandle, int32 MipLevel) |
| typedef geBoolean DRIVERCC | SET_PALETTE (geRDriver_THandle *THandle, geRDriver_THandle *PalHandle) |
| typedef geRDriver_THandle *DRIVERCC | GET_PALETTE (geRDriver_THandle *THandle) |
| typedef geBoolean DRIVERCC | SET_ALPHA (geRDriver_THandle *THandle, geRDriver_THandle *PalHandle) |
| typedef geRDriver_THandle *DRIVERCC | GET_ALPHA (geRDriver_THandle *THandle) |
| typedef geBoolean DRIVERCC | THANDLE_GET_INFO (geRDriver_THandle *THandle, int32 MipLevel, geRDriver_THandleInfo *Info) |
| typedef geBoolean DRIVERCC | BEGIN_SCENE (geBoolean Clear, geBoolean ClearZ, RECT *WorldRect) |
| typedef geBoolean DRIVERCC | END_SCENE (void) |
| typedef geBoolean DRIVERCC | BEGIN_WORLD (void) |
| typedef geBoolean DRIVERCC | END_WORLD (void) |
| typedef geBoolean DRIVERCC | BEGIN_MESHES (void) |
| typedef geBoolean DRIVERCC | END_MESHES (void) |
| typedef geBoolean DRIVERCC | BEGIN_MODELS (void) |
| typedef geBoolean DRIVERCC | END_MODELS (void) |
| typedef geBoolean DRIVERCC | RENDER_G_POLY (DRV_TLVertex *Pnts, S32 NumPoints, U32 Flags) |
| typedef geBoolean DRIVERCC | RENDER_W_POLY (DRV_TLVertex *Pnts, S32 NumPoints, geRDriver_THandle *THandle, DRV_TexInfo *TexInfo, DRV_LInfo *LInfo, U32 Flags) |
| typedef geBoolean DRIVERCC | RENDER_MT_POLY (DRV_TLVertex *Pnts, S32 NumPoints, geRDriver_THandle *THandle, U32 Flags) |
| typedef geBoolean DRIVERCC | DRAW_DECAL (geRDriver_THandle *THandle, RECT *SRect, int32 x, int32 y) |
| typedef geBoolean DRIVERCC | SCREEN_SHOT (const char *Name) |
| typedef geBoolean DRIVERCC | SET_GAMMA (geFloat Gamma) |
| typedef geBoolean DRIVERCC | GET_GAMMA (geFloat *Gamma) |
| typedef geBoolean DRIVERCC | DRV_SET_FOG_ENABLE (geBoolean Enable, geFloat r, geFloat g, geFloat b, geFloat Start, geFloat End) |
| typedef void | SETUP_LIGHTMAP_CB (DRV_LInfo *LInfo, geBoolean *Dynamic) |
| typedef geBoolean | DRV_Hook (DRV_Driver **Hook) |
Enumerations | |
| enum | DRV_RENDER_MODE { RENDER_NONE, RENDER_WORLD, RENDER_MESHES, RENDER_MODELS } |
|
|
Definition at line 88 of file Dcommon.h. Referenced by DriverHook(). |
|
|
|
|
|
|
|
Definition at line 480 of file Dcommon.h. Referenced by DrvInit(), and GMain_Startup(). |
|
|
Definition at line 478 of file Dcommon.h. Referenced by BeginScene(). |
|
|
Definition at line 481 of file Dcommon.h. Referenced by GTHandle_CheckTextures(). |
|
|
|
|
|
|
|
|
Definition at line 482 of file Dcommon.h. Referenced by RenderInit(). |
|
|
Definition at line 477 of file Dcommon.h. Referenced by DriverHook(), DrvInit(), and GMain_Startup(). |
|
|
Definition at line 479 of file Dcommon.h. Referenced by GMain_Startup(). |
|
|
|
|
|
|
|
|
Definition at line 259 of file Dcommon.h. Referenced by Render_WorldPoly(). |
|
|
Definition at line 260 of file Dcommon.h. Referenced by Render_WorldPoly(). |
|
|
Definition at line 258 of file Dcommon.h. Referenced by Render_WorldPoly(). |
|
|
Definition at line 323 of file Dcommon.h. Referenced by DriverHook(). |
|
|
Definition at line 320 of file Dcommon.h. Referenced by DriverHook(), and World_WorldRenderQ(). |
|
|
|
|
|
|
|
|
Definition at line 247 of file Dcommon.h. Referenced by geEngine_DrawAlphaBitmap(), PCache_InsertWorldPoly(), Render_GouraudPoly(), Render_MiscTexturePoly(), Render_WorldPoly(), RenderFace(), RenderGouraudPoly(), RenderTexturedPoint(), RenderTexturedPoly(), RenderTransPoly(), RenderWorldPoly(), SoftDrv_RenderWorldPoly(), and User_EngineFillRect(). |
|
|
Definition at line 251 of file Dcommon.h. Referenced by geEngine_DrawAlphaBitmap(), PCache_FlushMiscPolys(), Render_SetHardwareMode(), RenderSkyThroughFrustum(), RenderTexturedPoint(), RenderTexturedPoly(), and RenderWorldPolys(). |
|
|
Definition at line 248 of file Dcommon.h. Referenced by geEngine_DrawAlphaBitmap(), RenderFace(), RenderGouraudPoly(), RenderMiscTexturePoly(), RenderSkyThroughFrustum(), RenderTexturedPoint(), RenderTexturedPoly(), RenderTransPoly(), RenderWorldPoly(), and User_EngineFillRect(). |
|
|
Definition at line 249 of file Dcommon.h. Referenced by EndScene(), geEngine_DrawAlphaBitmap(), PCache_FlushMiscPolys(), Render_MiscTexturePoly(), Render_SetHardwareMode(), RenderGouraudPoly(), RenderMiscTexturePoly(), RenderTexturedPoint(), and RenderTexturedPoly(). |
|
|
Definition at line 250 of file Dcommon.h. Referenced by EndScene(), geEngine_DrawAlphaBitmap(), PCache_FlushMiscPolys(), Render_SetHardwareMode(), RenderGouraudPoly(), RenderMiscTexturePoly(), RenderTexturedPoint(), and RenderTexturedPoly(). |
|
|
Definition at line 252 of file Dcommon.h. Referenced by PCache_FlushMiscPolys(), PCache_InsertMiscPoly(), PCache_InsertWorldPoly(), RenderGouraudPoly(), RenderSkyThroughFrustum(), RenderTexturedPoint(), RenderTexturedPoly(), and RenderWorldPolys(). |
|
|
Definition at line 315 of file Dcommon.h. Referenced by DriverHook(). |
|
|
Definition at line 316 of file Dcommon.h. Referenced by DriverHook(). |
|
|
Definition at line 317 of file Dcommon.h. Referenced by geEngine_UpdateGamma(). |
|
|
Definition at line 94 of file Dcommon.h. Referenced by D3DMain_InitD3D(), Engine_InitDriver(), and EnumSubDrivers(). |
|
|
Definition at line 95 of file Dcommon.h. Referenced by D3DMain_InitD3D(), Engine_InitDriver(), and EnumSubDrivers(). |
|
|
Definition at line 96 of file Dcommon.h. Referenced by EnumSubDrivers(), and SoftDrv_DisplayInfoTable_Create(). |
|
|
Definition at line 97 of file Dcommon.h. Referenced by EnumSubDrivers(), and SoftDrv_DisplayInfoTable_Create(). |
|
|
Definition at line 223 of file Dcommon.h. Referenced by RenderLightmapPoly(). |
|
|
Definition at line 222 of file Dcommon.h. Referenced by RenderLightmapPoly(). |
|
|
Definition at line 125 of file Dcommon.h. Referenced by Engine_SetupPixelFormats(), EnumPixelFormats(), geBitmap_CreateTHandle(), geEngine_AddBitmap(), GTHandle_Create(), SWTHandle_EnumPixelFormats(), THandle_Create(), and THandle_Update(). |
|
|
|
|
|
Definition at line 126 of file Dcommon.h. Referenced by CreateTexture(), Engine_SetupPixelFormats(), EnumPixelFormats(), geBitmap_AttachToDriver(), geBitmap_CreateTHandle(), geBitmap_FixDriverFlags(), geWBitmap_Pool_CreateAllWBitmaps(), geWorld_AddBitmap(), GTHandle_Create(), SWTHandle_CreateTexture(), SWTHandle_EnumPixelFormats(), and THandle_Create(). |
|
|
|
|
|
Definition at line 130 of file Dcommon.h. Referenced by Engine_CreateTHandle(), Engine_SetupPixelFormats(), geBitmap_ChooseDriverFormat(), geBitmap_CreateTHandle(), geBitmap_Update_SystemToDriver(), SetAlpha(), and SWTHandle_SetAlpha(). |
|
|
|
|
|
Definition at line 131 of file Dcommon.h. Referenced by CreateTexture(), EnumPixelFormats(), geBitmap_ChooseDriverFormat(), geBitmap_CreateTHandle(), geBitmap_FixDriverFlags(), GTHandle_GetInfo(), SWTHandle_CreateTexture(), SWTHandle_EnumPixelFormats(), and THandle_GetInfo(). |
|
|
|
|
|
Definition at line 128 of file Dcommon.h. Referenced by Engine_SetupPixelFormats(), EnumPixelFormats(), geBitmap_FixDriverFlags(), geWBitmap_Pool_CreateAllWBitmaps(), geWorld_AddBitmap(), and SWTHandle_EnumPixelFormats(). |
|
|
|
|
|
Definition at line 132 of file Dcommon.h. Referenced by Engine_CreateTHandle(), geBitmap_ChooseDriverFormat(), geBitmap_Update_SystemToDriver(), Hack_FindPixelFormat(), RenderMiscTexturePoly(), SetAlpha(), and SWTHandle_SetAlpha(). |
|
|
|
|
|
Definition at line 127 of file Dcommon.h. Referenced by CreateLightmapTexture(), Engine_SetupPixelFormats(), EnumPixelFormats(), geBitmap_CreateTHandle(), geBitmap_FixDriverFlags(), GTHandle_Create(), GTHandle_Lock(), SWTHandle_EnumPixelFormats(), and THandle_Create(). |
|
|
|
|
|
Definition at line 133 of file Dcommon.h. Referenced by geBitmap_ChooseDriverFormat(), and geBitmap_FixDriverFlags(). |
|
|
|
|
|
Definition at line 129 of file Dcommon.h. Referenced by CreateTexture(), Engine_SetupPixelFormats(), geBitmap_ChooseDriverFormat(), geBitmap_CreateTHandle(), geBitmap_FixDriverFlags(), geBitmap_Palette_CreateFromDriver(), GTHandle_Create(), GTHandle_GetInfo(), GThandle_SetPal(), SWTHandle_CreateTexture(), and SWTHandle_EnumPixelFormats(). |
|
|
|
|
|
Definition at line 141 of file Dcommon.h. Referenced by geBitmap_MakeDriverLockInfo(), geBitmap_Palette_CreateFromDriver(), GTHandle_GetInfo(), SWTHandle_GetInfo(), and THandle_GetInfo(). |
|
|
Definition at line 51 of file Dcommon.h. Referenced by CreateDDFromDriver(), D3DMain_CreateZBuffer(), and DDEnumCallback(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 70 of file Dcommon.h. Referenced by BlitData_DePalettize(), DSParseWaveResource(), FillSoundChannel(), geBitmapUtil_SmoothBits(), and ReloadData(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 471 of file Dcommon.h. Referenced by Engine_InitDriver(), and EnumSubDrivers(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 69 of file Dcommon.h. Referenced by gePath_ReadChannel_F0_(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 103 of file Dcommon.h. Referenced by CreateTexture(), DIB_startup(), DrawDecal(), FillLMapSurface(), LoadLMapFromSystem(), RenderInit(), SetupWavyColorLight1(), SetupWavyColorLight2(), SoftDrv_BeginScene(), SoftDrv_Init(), SpanOutWorldTri(), SpanOutWorldTri3DNow(), SpanOutWorldTriAlpha(), SpanOutWorldTriAlpha3DNow(), TmapTriangle_16(), and TmapTriangle_32(). |
|
|
|
Definition at line 102 of file Dcommon.h. Referenced by BuildLightLUTS(), CreateTexture(), DDrawLoadSurface(), DrawDecal(), FillLMapSurface(), LoadLMapFromSystem(), LockDDrawBackBuffer(), RenderMiscTexturePoly(), RenderWorldPoly(), and SoftDrv_Init(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 61 of file Dcommon.h. Referenced by LoadLMapFromSystem(). |
|
|
Definition at line 71 of file Dcommon.h. Referenced by BlitData_DePalettize(). |
|
|
Definition at line 488 of file Dcommon.h.
00489 {
00490 RENDER_NONE,
00491 RENDER_WORLD,
00492 RENDER_MESHES,
00493 RENDER_MODELS
00494 } DRV_RENDER_MODE;
|
1.3.2