-ADD_LIBRARY (genesis3d STATIC CSNetMgr.c Camera.c Ge.c)
+ADD_LIBRARY (Genesis3D STATIC CSNetMgr.c Camera.c Ge.c)
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
-#include <Math.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <math.h>\r
\r
#include "GBSPPrep.h"\r
#include "BSP.h"\r
#include "Light.h"\r
#include "GBSPFile.h"\r
\r
-#include "Ram.h"\r
+#include "include/Ram.h"\r
\r
// Globals\r
GBSP_Model BSPModels[MAX_BSP_MODELS];\r
#ifndef BSP_H\r
#define BSP_H\r
\r
-#include <Windows.h>\r
+#include <windows.h>\r
\r
#include "GBSPLib.h"\r
\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Assert.h>\r
-#include <Math.h>\r
+#include <windows.h>\r
+#include <assert.h>\r
+#include <math.h>\r
\r
-#include "Mathlib.h"\r
+#include "MathLib.h"\r
#include "Poly.h"\r
#include "BSP.h"\r
#include "GBSPFile.h"\r
#include "Fill.h"\r
#include "Brush2.h"\r
\r
-#include "Vec3d.h"\r
-#include "Ram.h"\r
+#include "include/Vec3d.h"\r
+#include "include/Ram.h"\r
\r
#define USE_VOLUMES\r
\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Math.h>\r
+#include <windows.h>\r
+#include <math.h>\r
\r
#include "Brush2.h"\r
-#include "Mathlib.h"\r
+#include "MathLib.h"\r
#include "Poly.h"\r
#include "BSP.h"\r
#include "Texture.h"\r
\r
-#include "VFile.h"\r
-#include "Vec3d.h"\r
-#include "Ram.h"\r
+#include "include/VFile.h"\r
+#include "include/Vec3d.h"\r
+#include "include/Ram.h"\r
\r
#define BSP_BRUSH_SIZE(s) ((sizeof(GBSP_Brush)-sizeof(GBSP_Side[NUM_BRUSH_DEFAULT_SIDES]))+(sizeof(GBSP_Side)*(s)));\r
#define MAP_BRUSH_SIZE(s) ((sizeof(MAP_Brush)-sizeof(GBSP_Side[NUM_BRUSH_DEFAULT_SIDES]))+(sizeof(GBSP_Side)*(s)));\r
#ifndef BRUSH2_H\r
#define BRUSH2_H\r
\r
-#include <Windows.h>\r
+#include <windows.h>\r
\r
-#include "Mathlib.h"\r
+#include "MathLib.h"\r
#include "Map.h"\r
\r
-#include "VFile.h"\r
-#include "Vec3d.h"\r
+#include "include/VFile.h"\r
+#include "include/Vec3d.h"\r
\r
#define NUM_BRUSH_DEFAULT_SIDES 6\r
\r
geBoolean OutputBrushes(char *FileName, GBSP_Brush *Brushes);\r
geBoolean OutputMapBrushes(char *FileName, MAP_Brush *Brushes);\r
\r
-#endif
\ No newline at end of file
+#endif\r
-ADD_LIBRARY (GBSPLib STATIC Brush2.cpp)
+ADD_LIBRARY (GBSPLib STATIC BSP.cpp BSP2.cpp Brush2.cpp Fill.cpp GBSPFile.cpp GBSPLib.cpp GBSPPrep.cpp
+ Leaf.cpp Light.cpp Map.cpp MathLib.cpp Poly.cpp PortFile.cpp Portals.cpp Rad.cpp
+ TJunct.cpp Texture.cpp Utils.cpp Vis.cpp VisFlood.cpp)
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
#include "Fill.h"\r
#include "Map.h"\r
#include "Leaf.h"\r
#include "Poly.h"\r
#include "GBSPFile.h"\r
-#include "Bsp.h"\r
+#include "BSP.h"\r
\r
int32 CurrentFill;\r
geBoolean HitEntity = GE_FALSE;\r
#ifndef FILL_H\r
#define FILL_H\r
\r
-#include <Windows.h>\r
+#include <windows.h>\r
\r
#include "BSP.h"\r
\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
-#include "DCommon.h"\r
+#include "G3D/Engine/Drivers/DCommon.h"\r
#include "GBSPFile.h"\r
-#include "VFile.h"\r
-#include "Ram.h"\r
+#include "include/VFile.h"\r
+#include "include/Ram.h"\r
\r
//========================================================================================\r
// Globals\r
#ifndef GBSPFILE_H\r
#define GBSPFILE_H\r
\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
-#include "DCommon.h"\r
+#include "G3D/Engine/Drivers/DCommon.h"\r
#include "MathLib.h"\r
-#include "vfile.h"\r
-#include "motion.h"\r
-#include "Vec3d.h"\r
+#include "include/VFile.h"\r
+#include "include/Motion.h"\r
+#include "include/Vec3d.h"\r
\r
#define GBSP_VERSION 15\r
\r
geBoolean WriteChunks(GBSP_ChunkData *Data, int32 NumChunkData, geVFile *f);\r
\r
\r
-#endif
\ No newline at end of file
+#endif\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
+#include <windows.h>\r
\r
#include "GBSPPrep.h"\r
#include "BSP.h"\r
GHook.Printf("** Build Date/Time: "__DATE__","__TIME__"\n");\r
\r
#ifdef HANDLE_EXCEPTIONS\r
- __try\r
+ try\r
{\r
if (!CreateBSP(FileName, Parms))\r
{\r
\r
return GBSP_OK;\r
}\r
- __except(1)\r
+ catch (...)\r
{\r
// Clean up all errors, free any possible left-over data\r
GHook.Printf("GBSPLib: Fatal error in BSP! Doing Clean-up work.\n");\r
CancelRequest = GE_FALSE;\r
\r
#ifdef HANDLE_EXCEPTIONS\r
- __try\r
+ try\r
{\r
if (!ConvertGBSPToFile(FileName))\r
{\r
return GBSP_ERROR;\r
}\r
}\r
- __except(1)\r
+ catch (...)\r
{\r
// Clean up all errors, free any possible left-over data\r
GHook.Printf("GBSPLib: Fatal error Saving BSP! Doing Clean-up work.\n");\r
CancelRequest = GE_FALSE;\r
\r
#ifdef HANDLE_EXCEPTIONS\r
- __try\r
+ try\r
{\r
if (!VisGBSPFile(FileName, Parms))\r
{\r
return GBSP_ERROR;\r
}\r
}\r
- __except(1)\r
+ catch (...)\r
{\r
// Clean up all errors, free any possible left-over data\r
GHook.Printf("GBSPLib: Fatal error in Vis! Doing Clean-up work.\n");\r
CancelRequest = GE_FALSE;\r
\r
#ifdef HANDLE_EXCEPTIONS\r
- __try\r
+ try\r
{\r
if (!LightGBSPFile(FileName, Parms))\r
{\r
return GBSP_ERROR;\r
}\r
}\r
- __except(1)\r
+ catch (...)\r
{\r
// Clean up all errors, free any possible left-over data\r
GHook.Printf("GBSPLib: Fatal error in Radiosity! Doing Clean-up work.\n");\r
#ifndef GBSPLIB_H\r
#define GBSPLIB_H\r
\r
-#include <Windows.h>\r
+#include <windows.h>\r
\r
#include "MathLib.h"\r
\r
-#include "Vec3d.h"\r
+#include "include/Vec3d.h"\r
\r
#define GBSP_VERSION_MAJOR 6\r
#define GBSP_VERSION_MINOR 0\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
\r
#include "GBSPPrep.h"\r
#include "Portals.h"\r
#include "Leaf.h"\r
\r
-#include "VFile.h"\r
-#include "Ram.h"\r
+#include "include/VFile.h"\r
+#include "include/Ram.h"\r
\r
geBoolean SaveGFXModelData(geVFile *f);\r
geBoolean SaveGFXNodes(geVFile *f);\r
#ifndef GBSPPREP_H\r
#define GBSPPREP_H\r
\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
#include "BSP.h"\r
\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
-#include "Ram.h"\r
+#include "include/Ram.h"\r
#include "Portals.h"\r
#include "GBSPFile.h"\r
#include "BSP.h"\r
#include "Leaf.h"\r
#include "Brush2.h"\r
\r
-#include "Vec3d.h"\r
+#include "include/Vec3d.h"\r
\r
int32 NumLeafClusters;\r
\r
#ifndef LEAF_H\r
#define LEAF_H\r
\r
-#include <Windows.h>\r
+#include <windows.h>\r
\r
#include "BSP.h"\r
\r
geBoolean CreateAreas(GBSP_Node *RootNode);\r
GBSP_Node *FindLeaf(GBSP_Node *Node, geVec3d *Origin);\r
\r
-#endif
\ No newline at end of file
+#endif\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
-#include <Assert.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <assert.h>\r
+#include <math.h>\r
\r
-#include "Math.h"\r
#include "MathLib.h"\r
#include "GBSPFile.h"\r
#include "Light.h"\r
#include "Utils.h"\r
#include "BSP.h"\r
\r
-#include "Vec3d.h"\r
-#include "XForm3d.h"\r
-\r
-#include "Ram.h"\r
+#include "include/Vec3d.h"\r
+#include "include/XForm3d.h"\r
+#include "include/Ram.h"\r
\r
#define RWM_GOURAUD 1\r
#define DEBUG_RWM_GOURAUD 1\r
#ifndef LIGHT_H\r
#define LIGHT_H\r
\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
-#include "GBSPfile.h"\r
+#include "GBSPFile.h"\r
#include "GBSPLib.h" // Lightparms\r
#include "BSP.h"\r
\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <math.h>\r
\r
#include "Map.h"\r
#include "GBSPFile.h"\r
#include "Texture.h"\r
#include "BSP.h"\r
-#include "Stdio.h"\r
-#include "Math.h"\r
#include "Brush2.h"\r
#include "Poly.h"\r
-#include "Mathlib.h"\r
+#include "MathLib.h"\r
\r
-#include "Motion.h" // From Genesis (in include path)\r
-#include "Errorlog.h"\r
-#include "Ram.h"\r
+#include "include/Motion.h" // From Genesis (in include path)\r
+#include "include/ErrorLog.h"\r
+#include "include/Ram.h"\r
\r
int32 NumEntities;\r
MAP_Entity Entities[MAX_MAP_ENTITIES];\r
#ifndef MAP_H\r
#define MAP_H\r
\r
-#include <Windows.h>\r
+#include <windows.h>\r
\r
#include "BSP.h"\r
-#include "Motion.h"\r
+#include "include/Motion.h"\r
\r
#define MAX_MAP_ENTITIES 4096*2\r
#define MAX_MAP_TEXINFO 8192*2\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
+#include <windows.h>\r
+#include <math.h>\r
\r
-#include "Math.h"\r
#include "MathLib.h"\r
\r
geVec3d VecOrigin = {0.0f, 0.0f, 0.0f};\r
#ifndef MATHLIB_H\r
#define MATHLIB_H\r
\r
-#include "Vec3d.h"\r
+#include "include/Vec3d.h"\r
\r
//#define ON_EPSILON (geFloat)0.05\r
#define ON_EPSILON (geFloat)0.1\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
+#include <windows.h>\r
#include <math.h>\r
\r
#include "BSP.h"\r
-#include "Mathlib.h"\r
+#include "MathLib.h"\r
#include "Map.h"\r
#include "Poly.h"\r
#include "Texture.h"\r
#include "GBSPFile.h"\r
#include "Light.h"\r
\r
-#include "Ram.h"\r
+#include "include/Ram.h"\r
\r
int32 NumSubdivides;\r
geFloat SubdivideSize = 235.0f;\r
#ifndef POLY_H\r
#define POLY_H\r
\r
-#include <Windows.h>\r
+#include <windows.h>\r
\r
#include "BSP.h"\r
#include "MathLib.h"\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
-#include "Bsp.h"\r
+#include "BSP.h"\r
#include "Portals.h"\r
#include "Leaf.h"\r
-#include "GBspFile.h"\r
+#include "GBSPFile.h"\r
#include "Poly.h"\r
#include "Utils.h"\r
\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
-#include <Assert.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <assert.h>\r
\r
#include "Portals.h"\r
#include "Poly.h"\r
-#include "Bsp.h"\r
+#include "BSP.h"\r
#include "GBSPFile.h"\r
#include "Leaf.h"\r
#include "Utils.h"\r
#include "Map.h"\r
\r
-#include "Ram.h"\r
+#include "include/Ram.h"\r
\r
GBSP_Node *OutsideNode;\r
geVec3d NodeMins, NodeMaxs;\r
#ifndef PORTALS_H\r
#define PORTALS_H\r
\r
-#include <Windows.h>\r
+#include <windows.h>\r
\r
#include "BSP.h"\r
\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <math.h>\r
\r
-#include "DCommon.h"\r
+#include "G3D/Engine/Drivers/DCommon.h"\r
#include "BSP.h"\r
#include "GBSPFile.h"\r
-#include "Math.h"\r
#include "MathLib.h"\r
#include "Poly.h"\r
#include "Light.h"\r
#include "Texture.h"\r
\r
-#include "Ram.h"\r
+#include "include/Ram.h"\r
\r
pRAD_Patch *FacePatches;\r
pRAD_Patch *PatchList;\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
-#include <Math.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <math.h>\r
\r
#include "BSP.h"\r
#include "Poly.h"\r
#include "Texture.h"\r
\r
-#include "Ram.h"\r
+#include "include/Ram.h"\r
\r
#define OFF_EPSILON 0.05f\r
\r
}\r
\r
return GE_TRUE;\r
-}
\ No newline at end of file
+}\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-\r
-#include <Stdio.h>\r
-#include <Assert.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <assert.h>\r
\r
#include "Map.h"\r
#include "BSP.h"\r
#include "Texture.h"\r
#include "Utils.h"\r
\r
-#include "vfile.h"\r
-#include "bitmap.h"\r
-#include "ram.h"\r
+#include "include/VFile.h"\r
+#include "include/Bitmap.h"\r
+#include "include/Ram.h"\r
\r
int32 NumTextures;\r
GFX_Texture Textures[MAX_MAP_TEXTURES];\r
\r
//#include <Windows.h>\r
\r
-#include <Stdio.h>\r
+#include <stdio.h>\r
#include "Map.h"\r
-#include "DCommon.h"\r
+#include "G3D/Engine/Drivers/DCommon.h"\r
#include "GBSPFile.h"\r
-#include "VFile.h"\r
+#include "include/VFile.h"\r
\r
#define TEXTURE_SKYBOX (1<<0)\r
\r
/* */\r
/****************************************************************************************/\r
\r
-#include <Windows.h>\r
-#include <StdIo.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
#include "Utils.h"\r
-#include "Basetype.h"\r
+#include "include/BaseType.h"\r
\r
//====================================================================================\r
// DefaultExtension\r
#ifndef UTILS_H\r
#define UTILS_H\r
\r
-#include <StdIo.h>\r
+#include <stdio.h>\r
\r
#define PATH_SEPERATOR '/'\r
\r
void ExtractFileExtension (char *Path, char *Dest);\r
\r
\r
-#endif
\ No newline at end of file
+#endif\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
#include "Utils.h"\r
#include "Vis.h"\r
#include "GBSPFile.h"\r
#include "Poly.h"\r
-#include "Bsp.h"\r
+#include "BSP.h"\r
\r
-#include "Ram.h"\r
+#include "include/Ram.h"\r
\r
int32 NumVisPortals; // Total portals\r
int32 NumVisPortalBytes; // Total portals / 8\r
Portal->Radius = BestDist;\r
\r
return GE_TRUE;\r
-}
\ No newline at end of file
+}\r
#ifndef VIS_H\r
#define VIS_H\r
\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
#include "BSP.h"\r
#include "GBSPFile.h"\r
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */\r
/* */\r
/****************************************************************************************/\r
-#include <Windows.h>\r
-#include <Stdio.h>\r
+#include <windows.h>\r
+#include <stdio.h>\r
\r
#include "Utils.h"\r
#include "Vis.h"\r
#include "GBSPFile.h"\r
#include "Poly.h"\r
-#include "Bsp.h"\r
+#include "BSP.h"\r
\r
-#include "Ram.h"\r
+#include "include/Ram.h"\r
\r
extern int32 NumVisPortals; // Total portals\r
extern int32 NumVisPortalBytes; // Total portals / 8\r