Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

Dcommon.h File Reference

#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 ULONGPULONG
typedef unsigned short USHORT
typedef USHORTPUSHORT
typedef unsigned char UCHAR
typedef UCHARPUCHAR
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 }


Define Documentation

#define DllExport   __declspec( dllexport )
 

Definition at line 88 of file Dcommon.h.

Referenced by DriverHook().

#define DllImport   __declspec( dllimport )
 

Definition at line 87 of file Dcommon.h.

#define DRIVERCC   _fastcall
 

Definition at line 84 of file Dcommon.h.

Referenced by AddSpanNoUV(), BeginMeshes(), BeginModels(), BeginScene(), BeginWorld(), CreateTexture(), D3DMain_SetActive(), D3DMain_SetFogEnable(), D3DMain_UpdateWindow(), DestroyTexture(), DrawDecal(), Drv_SetFogEnable(), DrvInit(), DrvResetAll(), DrvSetActive(), DrvShutdown(), DrvUpdateWindow(), EdgeOutNoUV(), EndMeshes(), EndModels(), EndScene(), EndWorld(), EnumModes(), EnumModes2(), EnumPixelFormats(), EnumSubDrivers(), EnumSubDrivers2(), ErrorBox(), GetAlpha(), GetDrvRenderState(), GetGamma(), GetPalette(), GMain_ScreenShot(), GMain_SetFogEnable(), GTHandle_Create(), GTHandle_Destroy(), GTHandle_GetInfo(), GThandle_GetPal(), GTHandle_Lock(), GThandle_SetPal(), GTHandle_UnLock(), LockTextureHandle(), Render_DrawDecal(), Render_GouraudPoly(), Render_LinesPoly(), Render_MiscTexturePoly(), Render_WorldPoly(), RenderGouraudPoly(), RenderMiscTexturePoly(), RenderWorldPoly(), ScreenShot(), SetAlpha(), SetDrvRenderState(), SetFogEnable(), SetGamma(), SetPalette(), SoftDrv_BeginMeshes(), SoftDrv_BeginModels(), SoftDrv_BeginScene(), SoftDrv_BeginWorld(), SoftDrv_EndRenderMode(), SoftDrv_EndScene(), SoftDrv_EnumModes(), SoftDrv_EnumSubDrivers(), SoftDrv_GetGamma(), SoftDrv_Init(), SoftDrv_RenderGouraudPoly(), SoftDrv_RenderMiscTexturePoly(), SoftDrv_RenderWorldPoly(), SoftDrv_ResetAll(), SoftDrv_ScreenShot(), SoftDrv_SetActive(), SoftDrv_SetFogEnable(), SoftDrv_SetGamma(), SoftDrv_SetRenderWindowRect(), SoftDrv_Shutdown(), SWTHandle_CreateTexture(), SWTHandle_DestroyTexture(), SWTHandle_EnumPixelFormats(), SWTHandle_GetAlpha(), SWTHandle_GetInfo(), SWTHandle_GetPalette(), SWTHandle_LockTextureHandle(), SWTHandle_SetAlpha(), SWTHandle_SetPalette(), SWTHandle_UnLockTextureHandle(), THandle_Create(), THandle_Destroy(), THandle_GetInfo(), THandle_Lock(), THandle_UnLock(), and UnLockTextureHandle().

#define DRV_ERROR_GENERIC   7
 

Definition at line 484 of file Dcommon.h.

Referenced by BeginMeshes(), BeginModels(), BeginScene(), BeginWorld(), Create2DTexture(), Create3DTexture(), CreateLightmapTexture(), CreatePalTexture(), CreateTexture(), DrvInit(), EndScene(), FindTextureHandle(), GetLod(), GMain_GetBoardInfo(), GMain_ScreenShot(), GMain_Startup(), GTHandle_Create(), GTHandle_Lock(), GTHandle_SetupInfo(), Render_DrawDecal(), SetupCurrent3dDesc(), THandle_Create(), and THandle_CreateSurfaces().

#define DRV_ERROR_INIT_ERROR   3
 

Definition at line 480 of file Dcommon.h.

Referenced by DrvInit(), and GMain_Startup().

#define DRV_ERROR_INVALID_PARMS   1
 

Definition at line 478 of file Dcommon.h.

Referenced by BeginScene().

#define DRV_ERROR_INVALID_REGISTER_MODE   4
 

Definition at line 481 of file Dcommon.h.

Referenced by GTHandle_CheckTextures().

#define DRV_ERROR_INVALID_WINDOW_MODE   9
 

Definition at line 486 of file Dcommon.h.

#define DRV_ERROR_MAX_TEXTURES   6
 

Definition at line 483 of file Dcommon.h.

#define DRV_ERROR_NO_MEMORY   5
 

Definition at line 482 of file Dcommon.h.

Referenced by RenderInit().

#define DRV_ERROR_NONE   0
 

Definition at line 477 of file Dcommon.h.

Referenced by DriverHook(), DrvInit(), and GMain_Startup().

#define DRV_ERROR_NULL_WINDOW   2
 

Definition at line 479 of file Dcommon.h.

Referenced by GMain_Startup().

#define DRV_ERROR_UNDEFINED   8
 

Definition at line 485 of file Dcommon.h.

#define DRV_PALETTE_ENTRIES   256
 

Definition at line 202 of file Dcommon.h.

#define DRV_POLYMODE_GOURAUD   2
 

Definition at line 259 of file Dcommon.h.

Referenced by Render_WorldPoly().

#define DRV_POLYMODE_LINES   3
 

Definition at line 260 of file Dcommon.h.

Referenced by Render_WorldPoly().

#define DRV_POLYMODE_NORMAL   1
 

Definition at line 258 of file Dcommon.h.

Referenced by Render_WorldPoly().

#define DRV_PREFERENCE_DRAW_WALPHA_IN_BSP   (1<<3)
 

Definition at line 323 of file Dcommon.h.

Referenced by DriverHook().

#define DRV_PREFERENCE_NO_MIRRORS   (1<<0)
 

Definition at line 320 of file Dcommon.h.

Referenced by DriverHook(), and World_WorldRenderQ().

#define DRV_PREFERENCE_SORT_WORLD_BF   (1<<2)
 

Definition at line 322 of file Dcommon.h.

#define DRV_PREFERENCE_SORT_WORLD_FB   (1<<1)
 

Definition at line 321 of file Dcommon.h.

#define DRV_RENDER_ALPHA   (1<<0)
 

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().

#define DRV_RENDER_CLAMP_UV   (1<<4)
 

Definition at line 251 of file Dcommon.h.

Referenced by geEngine_DrawAlphaBitmap(), PCache_FlushMiscPolys(), Render_SetHardwareMode(), RenderSkyThroughFrustum(), RenderTexturedPoint(), RenderTexturedPoly(), and RenderWorldPolys().

#define DRV_RENDER_FLUSH   (1<<1)
 

Definition at line 248 of file Dcommon.h.

Referenced by geEngine_DrawAlphaBitmap(), RenderFace(), RenderGouraudPoly(), RenderMiscTexturePoly(), RenderSkyThroughFrustum(), RenderTexturedPoint(), RenderTexturedPoly(), RenderTransPoly(), RenderWorldPoly(), and User_EngineFillRect().

#define DRV_RENDER_NO_ZMASK   (1<<2)
 

Definition at line 249 of file Dcommon.h.

Referenced by EndScene(), geEngine_DrawAlphaBitmap(), PCache_FlushMiscPolys(), Render_MiscTexturePoly(), Render_SetHardwareMode(), RenderGouraudPoly(), RenderMiscTexturePoly(), RenderTexturedPoint(), and RenderTexturedPoly().

#define DRV_RENDER_NO_ZWRITE   (1<<3)
 

Definition at line 250 of file Dcommon.h.

Referenced by EndScene(), geEngine_DrawAlphaBitmap(), PCache_FlushMiscPolys(), Render_SetHardwareMode(), RenderGouraudPoly(), RenderMiscTexturePoly(), RenderTexturedPoint(), and RenderTexturedPoly().

#define DRV_RENDER_POLY_NO_FOG   (1<<5)
 

Definition at line 252 of file Dcommon.h.

Referenced by PCache_FlushMiscPolys(), PCache_InsertMiscPoly(), PCache_InsertWorldPoly(), RenderGouraudPoly(), RenderSkyThroughFrustum(), RenderTexturedPoint(), RenderTexturedPoly(), and RenderWorldPolys().

#define DRV_SUPPORT_ALPHA   (1<<0)
 

Definition at line 315 of file Dcommon.h.

Referenced by DriverHook().

#define DRV_SUPPORT_COLORKEY   (1<<1)
 

Definition at line 316 of file Dcommon.h.

Referenced by DriverHook().

#define DRV_SUPPORT_GAMMA   (1<<2)
 

Definition at line 317 of file Dcommon.h.

Referenced by geEngine_UpdateGamma().

#define DRV_VERSION_MAJOR   100
 

Definition at line 94 of file Dcommon.h.

Referenced by D3DMain_InitD3D(), Engine_InitDriver(), and EnumSubDrivers().

#define DRV_VERSION_MINOR   3
 

Definition at line 95 of file Dcommon.h.

Referenced by D3DMain_InitD3D(), Engine_InitDriver(), and EnumSubDrivers().

#define DRV_VMAJS   "100"
 

Definition at line 96 of file Dcommon.h.

Referenced by EnumSubDrivers(), and SoftDrv_DisplayInfoTable_Create().

#define DRV_VMINS   "3"
 

Definition at line 97 of file Dcommon.h.

Referenced by EnumSubDrivers(), and SoftDrv_DisplayInfoTable_Create().

#define LMAP_TYPE_FOG   1
 

Definition at line 223 of file Dcommon.h.

Referenced by RenderLightmapPoly().

#define LMAP_TYPE_LIGHT   0
 

Definition at line 222 of file Dcommon.h.

Referenced by RenderLightmapPoly().

#define RDRIVER_PF_2D   (1<<RDRIVER_PF_2D_SHIFT)
 

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().

#define RDRIVER_PF_2D_SHIFT   (0)
 

Definition at line 115 of file Dcommon.h.

#define RDRIVER_PF_3D   (1<<RDRIVER_PF_3D_SHIFT)
 

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().

#define RDRIVER_PF_3D_SHIFT   (1)
 

Definition at line 116 of file Dcommon.h.

#define RDRIVER_PF_ALPHA   (1<<RDRIVER_PF_ALPHA_SHIFT)
 

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().

#define RDRIVER_PF_ALPHA_SHIFT   (4)
 

Definition at line 119 of file Dcommon.h.

#define RDRIVER_PF_CAN_DO_COLORKEY   (1<<RDRIVER_PF_CAN_DO_COLORKEY_SHIFT)
 

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().

#define RDRIVER_PF_CAN_DO_COLORKEY_SHIFT   (RDRIVER_PF_OPTIONAL_SHIFT + 1)
 

Definition at line 122 of file Dcommon.h.

#define RDRIVER_PF_COMBINE_LIGHTMAP   (1<<RDRIVER_PF_COMBINE_LIGHTMAP_SHIFT)
 

Definition at line 128 of file Dcommon.h.

Referenced by Engine_SetupPixelFormats(), EnumPixelFormats(), geBitmap_FixDriverFlags(), geWBitmap_Pool_CreateAllWBitmaps(), geWorld_AddBitmap(), and SWTHandle_EnumPixelFormats().

#define RDRIVER_PF_COMBINE_LIGHTMAP_SHIFT   (RDRIVER_PF_OPTIONAL_SHIFT + 2)
 

Definition at line 123 of file Dcommon.h.

#define RDRIVER_PF_HAS_ALPHA   (1<<RDRIVER_PF_HAS_ALPHA_SHIFT)
 

Definition at line 132 of file Dcommon.h.

Referenced by Engine_CreateTHandle(), geBitmap_ChooseDriverFormat(), geBitmap_Update_SystemToDriver(), Hack_FindPixelFormat(), RenderMiscTexturePoly(), SetAlpha(), and SWTHandle_SetAlpha().

#define RDRIVER_PF_HAS_ALPHA_SHIFT   (RDRIVER_PF_OPTIONAL_SHIFT + 0)
 

Definition at line 121 of file Dcommon.h.

#define RDRIVER_PF_LIGHTMAP   (1<<RDRIVER_PF_LIGHTMAP_SHIFT)
 

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().

#define RDRIVER_PF_LIGHTMAP_SHIFT   (2)
 

Definition at line 117 of file Dcommon.h.

#define RDRIVER_PF_MAJOR_MASK   ((1<<RDRIVER_PF_OPTIONAL_SHIFT)-1)
 

Definition at line 133 of file Dcommon.h.

Referenced by geBitmap_ChooseDriverFormat(), and geBitmap_FixDriverFlags().

#define RDRIVER_PF_OPTIONAL_SHIFT   (16)
 

Definition at line 120 of file Dcommon.h.

#define RDRIVER_PF_PALETTE   (1<<RDRIVER_PF_PALETTE_SHIFT)
 

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().

#define RDRIVER_PF_PALETTE_SHIFT   (3)
 

Definition at line 118 of file Dcommon.h.

#define RDRIVER_THANDLE_HAS_COLORKEY   (1<<0)
 

Definition at line 141 of file Dcommon.h.

Referenced by geBitmap_MakeDriverLockInfo(), geBitmap_Palette_CreateFromDriver(), GTHandle_GetInfo(), SWTHandle_GetInfo(), and THandle_GetInfo().

#define VOID   void
 

Definition at line 51 of file Dcommon.h.

Referenced by CreateDDFromDriver(), D3DMain_CreateZBuffer(), and DDEnumCallback().


Typedef Documentation

typedef geBoolean DRIVERCC BEGIN_MESHES(void)
 

Definition at line 370 of file Dcommon.h.

typedef geBoolean DRIVERCC BEGIN_MODELS(void)
 

Definition at line 372 of file Dcommon.h.

typedef geBoolean DRIVERCC BEGIN_SCENE(geBoolean Clear, geBoolean ClearZ, RECT *WorldRect)
 

Definition at line 366 of file Dcommon.h.

typedef geBoolean DRIVERCC BEGIN_WORLD(void)
 

Definition at line 368 of file Dcommon.h.

typedef unsigned char BYTE
 

Definition at line 70 of file Dcommon.h.

Referenced by BlitData_DePalettize(), DSParseWaveResource(), FillSoundChannel(), geBitmapUtil_SmoothBits(), and ReloadData().

typedef char C8
 

Definition at line 105 of file Dcommon.h.

typedef char CHAR
 

Definition at line 52 of file Dcommon.h.

typedef geRDriver_THandle* DRIVERCC CREATE_TEXTURE(int32 Width, int32 Height, int32 NumMipLevels, const geRDriver_PixelFormat *PixelFormat)
 

Definition at line 351 of file Dcommon.h.

typedef geBoolean DRIVERCC DESTROY_TEXTURE(geRDriver_THandle *THandle)
 

Definition at line 352 of file Dcommon.h.

typedef geBoolean DRIVERCC DRAW_DECAL(geRDriver_THandle *THandle, RECT *SRect, int32 x, int32 y)
 

Definition at line 380 of file Dcommon.h.

typedef geBoolean DRIVERCC DRV_ENUM_DRIVER(DRV_ENUM_DRV_CB *Cb, void *Context)
 

Definition at line 337 of file Dcommon.h.

typedef geBoolean DRV_ENUM_DRV_CB( S32 Driver, char *DriverName, void *Context)
 

Definition at line 335 of file Dcommon.h.

typedef geBoolean DRIVERCC DRV_ENUM_MODES(S32 Driver, char *DriverName, DRV_ENUM_MODES_CB *Cb, void *Context)
 

Definition at line 338 of file Dcommon.h.

typedef geBoolean DRV_ENUM_MODES_CB( S32 Mode, char *ModeName, S32 Width, S32 Height, void *Context)
 

Definition at line 334 of file Dcommon.h.

typedef geBoolean DRIVERCC DRV_ENUM_PFORMAT(DRV_ENUM_PFORMAT_CB *Cb, void *Context)
 

Definition at line 341 of file Dcommon.h.

typedef geBoolean DRV_ENUM_PFORMAT_CB(geRDriver_PixelFormat *Format, void *Context)
 

Definition at line 340 of file Dcommon.h.

typedef geBoolean DRV_Hook(DRV_Driver **Hook)
 

Definition at line 471 of file Dcommon.h.

Referenced by Engine_InitDriver(), and EnumSubDrivers().

typedef geBoolean DRIVERCC DRV_INIT(DRV_DriverHook *Hook)
 

Definition at line 344 of file Dcommon.h.

typedef DRV_RGB DRV_Palette[DRV_PALETTE_ENTRIES]
 

Definition at line 203 of file Dcommon.h.

typedef geBoolean DRIVERCC DRV_RESET(void)
 

Definition at line 346 of file Dcommon.h.

typedef geBoolean DRIVERCC DRV_SET_ACTIVE(geBoolean active)
 

Definition at line 348 of file Dcommon.h.

typedef geBoolean DRIVERCC DRV_SET_FOG_ENABLE(geBoolean Enable, geFloat r, geFloat g, geFloat b, geFloat Start, geFloat End)
 

Definition at line 386 of file Dcommon.h.

typedef geBoolean DRIVERCC DRV_SHUTDOWN(void)
 

Definition at line 345 of file Dcommon.h.

typedef geBoolean DRIVERCC DRV_UPDATE_WINDOW(void)
 

Definition at line 347 of file Dcommon.h.

typedef unsigned long DWORD
 

Definition at line 68 of file Dcommon.h.

Referenced by BeginScene(), BlitData_DePalettize(), BPPToDDBD(), ChannelPlaying(), D3DMain_GetTextureMemory(), D3DMain_PickDevice(), DSFillSoundBuffer(), DSParseWaveResource(), FSDos_EOF(), FSDos_GetS(), FSDos_Open(), FSDos_Read(), FSDos_SetAttributes(), FSDos_Write(), geCSNetMgr_JoinSession(), geCSNetMgr_ProcessSystemMessage(), geCSNetMgr_ReceiveAllMessages(), geCSNetMgr_ReceiveFromClient(), geCSNetMgr_ReceiveFromServer(), geCSNetMgr_ReceiveSystemMessage(), geCSNetMgr_SendToClient(), geCSNetMgr_SendToServer(), geFont_AddCharacters(), GetCDPosition(), GetSurfacePixelMask(), Main_BuildRGBGammaTables(), ModifyChannel(), MyRGB(), NetPlayCreatePlayer(), NetPlayEnumSession(), OpenCDPlayer(), PCache_InsertMiscPoly(), PCache_InsertWorldPoly(), PlayCDTrack(), ProcEng_Create(), RenderGouraudPoly(), and WindowSetup().

typedef geBoolean DRIVERCC END_MESHES(void)
 

Definition at line 371 of file Dcommon.h.

typedef geBoolean DRIVERCC END_MODELS(void)
 

Definition at line 373 of file Dcommon.h.

typedef geBoolean DRIVERCC END_SCENE(void)
 

Definition at line 367 of file Dcommon.h.

typedef geBoolean DRIVERCC END_WORLD(void)
 

Definition at line 369 of file Dcommon.h.

typedef geFloat FLOAT
 

Definition at line 72 of file Dcommon.h.

typedef int geBoolean
 

Definition at line 69 of file Dcommon.h.

Referenced by gePath_ReadChannel_F0_().

typedef struct geRDriver_THandle geRDriver_THandle
 

Definition at line 112 of file Dcommon.h.

typedef geRDriver_THandle* DRIVERCC GET_ALPHA(geRDriver_THandle *THandle)
 

Definition at line 361 of file Dcommon.h.

typedef geBoolean DRIVERCC GET_GAMMA(geFloat *Gamma)
 

Definition at line 385 of file Dcommon.h.

typedef geRDriver_THandle* DRIVERCC GET_PALETTE(geRDriver_THandle *THandle)
 

Definition at line 358 of file Dcommon.h.

typedef void* HBITMAP
 

Definition at line 47 of file Dcommon.h.

typedef void* HWND
 

Definition at line 46 of file Dcommon.h.

typedef geBoolean DRIVERCC LOCK_THANDLE(geRDriver_THandle *THandle, int32 MipLevel, void **Data)
 

Definition at line 354 of file Dcommon.h.

typedef long LONG
 

Definition at line 54 of file Dcommon.h.

typedef char* PSZ
 

Definition at line 65 of file Dcommon.h.

typedef UCHAR* PUCHAR
 

Definition at line 64 of file Dcommon.h.

typedef ULONG* PULONG
 

Definition at line 60 of file Dcommon.h.

typedef USHORT* PUSHORT
 

Definition at line 62 of file Dcommon.h.

typedef struct tagRECT RECT
 

typedef geBoolean DRIVERCC RENDER_G_POLY(DRV_TLVertex *Pnts, S32 NumPoints, U32 Flags)
 

Definition at line 376 of file Dcommon.h.

typedef geBoolean DRIVERCC RENDER_MT_POLY(DRV_TLVertex *Pnts, S32 NumPoints, geRDriver_THandle *THandle, U32 Flags)
 

Definition at line 378 of file Dcommon.h.

typedef geBoolean DRIVERCC RENDER_W_POLY(DRV_TLVertex *Pnts, S32 NumPoints, geRDriver_THandle *THandle, DRV_TexInfo *TexInfo, DRV_LInfo *LInfo, U32 Flags)
 

Definition at line 377 of file Dcommon.h.

typedef int16 S16
 

Definition at line 107 of file Dcommon.h.

typedef int32 S32
 

Definition at line 108 of file Dcommon.h.

Referenced by AddSpan(), BuildLightLUTS(), ClearZBuffer(), DDrawLoadSurface(), DIB_startup(), GetLog(), GetSurfInfo(), Log2(), RenderGouraudPoly(), SAL_error_box(), SAL_get_pixel_format(), SAL_get_preference(), SAL_is_app_active(), SAL_serve_message_queue(), SAL_set_display_mode(), SAL_set_palette_range(), SAL_set_preference(), SAL_startup(), SAL_window_status(), SnapToPower2(), and Vis_MarkWaterFaces().

typedef int8 S8
 

Definition at line 106 of file Dcommon.h.

typedef geBoolean DRIVERCC SCREEN_SHOT(const char *Name)
 

Definition at line 382 of file Dcommon.h.

typedef geBoolean DRIVERCC SET_ALPHA(geRDriver_THandle *THandle, geRDriver_THandle *PalHandle)
 

Definition at line 360 of file Dcommon.h.

typedef geBoolean DRIVERCC SET_GAMMA(geFloat Gamma)
 

Definition at line 384 of file Dcommon.h.

typedef geBoolean DRIVERCC SET_PALETTE(geRDriver_THandle *THandle, geRDriver_THandle *PalHandle)
 

Definition at line 357 of file Dcommon.h.

typedef void SETUP_LIGHTMAP_CB(DRV_LInfo *LInfo, geBoolean *Dynamic)
 

Definition at line 388 of file Dcommon.h.

typedef short SHORT
 

Definition at line 53 of file Dcommon.h.

typedef geBoolean DRIVERCC THANDLE_GET_INFO(geRDriver_THandle *THandle, int32 MipLevel, geRDriver_THandleInfo *Info)
 

Definition at line 363 of file Dcommon.h.

typedef uint16 U16
 

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().

typedef uint32 U32
 

Definition at line 104 of file Dcommon.h.

Referenced by CalcGradients(), CreateTexture(), DDrawBlitDecal(), DDrawBlitDecalToFront(), DDrawLoadSurface(), DIB_startup(), DrawDecal(), GetCPUIDEAX(), GetCPUIDEDX(), GetCPUIDString(), GetCPUIDStringAMD(), GetCPUInfo(), GetDDrawPixelFormat(), GetLog(), GMain_Startup(), RenderMiscTexturePoly(), RenderWorldPoly(), SAL_get_pixel_format(), SoftDrv_Init(), SWTHandle_CreateTexture(), and TmapTriangle_32().

typedef uint8 U8
 

Definition at line 102 of file Dcommon.h.

Referenced by BuildLightLUTS(), CreateTexture(), DDrawLoadSurface(), DrawDecal(), FillLMapSurface(), LoadLMapFromSystem(), LockDDrawBackBuffer(), RenderMiscTexturePoly(), RenderWorldPoly(), and SoftDrv_Init().

typedef unsigned char UCHAR
 

Definition at line 63 of file Dcommon.h.

typedef unsigned long ULONG
 

Definition at line 59 of file Dcommon.h.

typedef geBoolean DRIVERCC UNLOCK_THANDLE(geRDriver_THandle *THandle, int32 MipLevel)
 

Definition at line 355 of file Dcommon.h.

typedef unsigned short USHORT
 

Definition at line 61 of file Dcommon.h.

Referenced by LoadLMapFromSystem().

typedef unsigned short WORD
 

Definition at line 71 of file Dcommon.h.

Referenced by BlitData_DePalettize().


Enumeration Type Documentation

enum DRV_RENDER_MODE
 

Enumeration values:
RENDER_NONE 
RENDER_WORLD 
RENDER_MESHES 
RENDER_MODELS 

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;


Generated on Tue Sep 30 12:37:23 2003 for GTestAndEngine by doxygen 1.3.2