00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef OGLDRV_H
00021 #define OGLDRV_H
00022
00023 #include "DCommon.h"
00024 #include "glext.h"
00025
00026
00027
00028
00029 #define COLOR_DEPTH 16 // Bits per pixel to use for OpenGL Window/Context
00030 #define ZBUFFER_DEPTH 16 // Depth of the ZBuffer to use in OpenGL.
00031
00032 #define USE_LIGHTMAPS // Render lightmaps
00033 #define USE_LINEAR_INTERPOLATION // Comment out to use nearest neighbor interpolation
00034
00035
00036
00037 extern DRV_Driver OGLDRV;
00038 extern DRV_Window ClientWindow;
00039
00040 extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;
00041 extern PFNGLMULTITEXCOORD4FARBPROC glMultiTexCoord4fARB;
00042 extern GLboolean multitexture;
00043
00044 extern maxTextureSize;
00045
00046 geBoolean DRIVERCC SetFogEnable(geBoolean Enable, float r, float g, float b, float Start, float End);
00047 geBoolean DRIVERCC DrvInit(DRV_DriverHook *Hook);
00048 geBoolean DRIVERCC DrvShutdown(void);
00049 geBoolean DRIVERCC DrvUpdateWindow(void);
00050 geBoolean DRIVERCC DrvSetActive(geBoolean Active);
00051 geBoolean DRIVERCC SetGamma(float Gamma);
00052 geBoolean DRIVERCC GetGamma(float *Gamma);
00053 geBoolean DRIVERCC ScreenShot(const char *Name);
00054 geBoolean DRIVERCC EnumSubDrivers(DRV_ENUM_DRV_CB *Cb, void *Context);
00055 geBoolean DRIVERCC EnumModes(int32 Driver, char *DriverName, DRV_ENUM_MODES_CB *Cb, void *Context);
00056 geBoolean DRIVERCC EnumPixelFormats(DRV_ENUM_PFORMAT_CB *Cb, void *Context);
00057 void SetLastDrvError(int32 Error, char *ErrorStr);
00058
00059 #endif