00001 /****************************************************************************************/ 00002 /* GMain.h */ 00003 /* */ 00004 /* Author: John Pollard */ 00005 /* Description: Glide initialization code, etc */ 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 /* The Original Code is Genesis3D, released March 25, 1999. */ 00018 /* Genesis3D Version 1.1 released November 15, 1999 */ 00019 /* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */ 00020 /* */ 00021 /****************************************************************************************/ 00022 #ifndef GMAIN_H 00023 #define GMAIN_H 00024 00025 #include <Windows.h> 00026 00027 #include "GTHandle.h" 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 #define GMAIN_MAX_TMU_SUPPORT 8 00034 00035 typedef struct 00036 { 00037 uint32 MainRam; 00038 int32 NumTMU; 00039 uint32 TmuRam[GMAIN_MAX_TMU_SUPPORT]; 00040 } GMain_BoardInfo; 00041 00042 extern GrChipID_t TMU[3]; // TMU number table 00043 00044 extern DRV_Window ClientWindow; 00045 extern GrHwConfiguration GlideHwConfig; 00046 extern GMain_BoardInfo g_BoardInfo; // Global board info for current hardware 00047 00048 extern geBoolean g_FogEnable; 00049 extern geFloat g_FogR; 00050 extern geFloat g_FogG; 00051 extern geFloat g_FogB; 00052 00053 //============================================================================================ 00054 //============================================================================================ 00055 00056 geBoolean GMain_Startup(DRV_DriverHook *Hook); 00057 void GMain_Shutdown(void); 00058 geBoolean GMain_GetBoardInfo(GMain_BoardInfo *Info); 00059 geBoolean GMain_InitGlideRegisters(void); 00060 geBoolean GMain_ResetAll(void); 00061 geBoolean DRIVERCC GMain_ScreenShot(const char *Name); 00062 geBoolean DRIVERCC GMain_SetFogEnable(geBoolean Enable, geFloat r, geFloat g, geFloat b, geFloat Start, geFloat End); 00063 00064 #ifdef __cplusplus 00065 } 00066 #endif 00067 00068 #endif
1.3.2