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

OGLDrv.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  OglDrv.h                                                                            */
00003 /*                                                                                      */
00004 /*  Author: George McBay (gfm@my-deja.com)                                              */
00005 /*  Description: Exposed interface for OpenGL version of Genesis Driver                 */
00006 /*                                                                                      */
00007 /*  The contents of this file are subject to the Genesis3D Public License               */
00008 /*  Version 1.01 (the "License"); you may not use this file except in                   */
00009 /*  compliance with the License. You may obtain a copy of the License at                */
00010 /*  http://www.genesis3d.com                                                            */
00011 /*                                                                                      */
00012 /*  Software distributed under the License is distributed on an "AS IS"                 */
00013 /*  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See                */
00014 /*  the License for the specific language governing rights and limitations              */
00015 /*  under the License.                                                                  */
00016 /*                                                                                      */
00017 /*                                                                                      */
00018 /****************************************************************************************/
00019 
00020 #ifndef OGLDRV_H
00021 #define OGLDRV_H
00022 
00023 #include "DCommon.h"
00024 #include "glext.h"
00025 
00026 // Here are some useful values you can change to meet your needs.
00027 // These should, in the future, really be handled at run-time as opposed to compile-time.
00028 // The defaults work well with TNT2 based cards.
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 //#define TRILINEAR_INTERPOLATION               // Comment out to use bilinear interpolation
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

Generated on Tue Sep 30 12:36:03 2003 for GTestAndEngine by doxygen 1.3.2