EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GaPreReqs.h
Go to the documentation of this file.
1 /*
2  This file is part of the Gangsta Wrapper physics SDK abstraction library suite.
3  Copyright (C) 2005 Ed Jones (Green Eyed Monster)
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 
19  See also the files README.txt and LICENSE.txt in the root directory of this module.
20 */
21 
22 #ifndef GAPREREQS_H
23 #define GAPREREQS_H
24 
25 #define GANGSTA_DOUBLE
26 
27 #if defined ( WIN32 )
28 # define WIN32_LEAN_AND_MEAN
29 # ifndef NOMINMAX
30 # define NOMINMAX
31 # endif
32 # include <windows.h>
33 #else
34 # define USE_LTDL
35 #endif
36 
37 #include <assert.h>
38 
39 #define _USE_MATH_DEFINES
40 #include <float.h>
41 #include <math.h>
42 #include <limits>
43 
44 #include <string>
45 #include <sstream>
46 #include <vector>
47 #include <exception>
48 
49 namespace Ga
50 {
51  #if defined ( WIN32 )
52  # pragma warning (disable : 4251)
53  # pragma warning (disable : 4244)
54  # pragma warning (disable : 4305)
55  # define GaExport
56  #else
57  # define GaExport
58  #endif
59 
60  #if defined ( __GCCWIN32__ )
61  # define GaExpInl
62  #else
63  # define GaExpInl inline
64  #endif
65 
66  typedef unsigned int GaUint;
67  typedef unsigned char GaByte;
68  #ifdef GANGSTA_DOUBLE
69  typedef double GaFloat;
70  static const GaFloat GaInfinity = DBL_MAX;
71  #else
72  typedef float GaFloat;
73  static const GaFloat GaInfinity = FLT_MAX;
74  #endif
75 
76  typedef std::string GaString;
77  typedef std::stringstream GaStringStream;
78  typedef std::vector<GaString> GaStringList;
79 
80  class GaVec3;
81  class GaQuat;
82  class GaMat3x3;
83  class GaMat4x4;
84  class GaDegree;
85  class GaRadian;
86 
87  class Parameter;
88  template<class _Ty> class GaPtr;
89 }
90 
91 #endif
unsigned int GaUint
Definition: GaPreReqs.h:66
Definition: GaMath.h:26
unsigned char GaByte
Definition: GaPreReqs.h:67
std::stringstream GaStringStream
Definition: GaPreReqs.h:77
std::string GaString
Definition: GaPreReqs.h:76
std::vector< GaString > GaStringList
Definition: GaPreReqs.h:78
double GaFloat
Definition: GaPreReqs.h:69
static const GaFloat GaInfinity
Definition: GaPreReqs.h:70