Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __SP_STANDARD_H__
00009 #define __SP_STANDARD_H__
00010
00011
00012
00013
00014 #define __SOFTPIXELENGINE__ // SoftPixel Engine identity
00015
00016 #define __SP_EXPORT_TO_LIBRARY__ // Exports the SoftPixel Engine to a library
00017
00018 #define SOFTPIXEL_VERSION_MAJOR 3
00019 #define SOFTPIXEL_VERSION_MINOR 2
00020 #define SOFTPIXEL_VERSION_REVISION 0
00021 #define SOFTPIXEL_VERSION_STATUS "alpha" // "beta"/ "alpha" or undef
00022
00023 #if defined(_ANDROID)
00024 # define SP_PLATFORM_ANDROID
00025 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(_WINDOWS) || defined(_MSC_VER)
00026 # define SP_PLATFORM_WINDOWS
00027 #elif defined(__linux__) || defined(__unix__)
00028 # define SP_PLATFORM_LINUX
00029 #elif defined(__APPLE__)
00030 # include "TargetConditionals.h"
00031 # if defined(__MACOSX__)//TARGET_OS_MAC)
00032 # define SP_PLATFORM_MACOSX
00033 # elif defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR)
00034 # define SP_PLATFORM_IOS
00035 # endif
00036 #elif defined(__FreeBSD__)
00037 # define SP_PLATFORM_FREEBSD // unsupported yet
00038 # error The "SoftPixel Engine" is not supported under "FreeBSD" yet!
00039 #elif defined(__sparc__) || defined(__sun__)
00040 # define SP_PLATFORM_SOLARIS // unsupported yet
00041 # error The "SoftPixel Engine" is not supported under "Sun Solaris" yet!
00042 #elif defined(_XBOX)
00043 # define SP_PLATFORM_XBOX // unsupported yet
00044 # error The "SoftPixel Engine" is not supported under "XBox" yet!
00045 #else
00046 # error Unknown platform, no support!
00047 #endif
00048
00049 #if defined(__SP_EXPORT_TO_LIBRARY__) && defined(SP_PLATFORM_WINDOWS)
00050 # define SP_EXPORT __declspec(dllexport)
00051 #else
00052 # define SP_EXPORT
00053 #endif
00054
00055 #if defined(SP_PLATFORM_WINDOWS) && defined(_DEBUG)
00056 # define SP_DEBUGMODE // More debugging information
00057 #endif
00058
00059 #if defined(__GNUC__)
00060 # define SP_COMPILER_GCC // GNU Compiler Collection
00061 # define SP_SDK_VERSION 1
00062 #elif defined(_MSC_VER)
00063 # define SP_COMPILER_VC // VisualC++
00064 # ifdef SP_DEBUGMODE
00065 # define SP_SDK_VERSION (_MSC_VER + 1)
00066 # else
00067 # define SP_SDK_VERSION (_MSC_VER)
00068 # endif
00069 #else
00070 # define SP_SDK_VERSION 0
00071 #endif
00072
00073 #if defined(SP_COMPILER_VC)
00074 # define _USE_MATH_DEFINES
00075 #endif
00076
00077 #ifndef SP_DONT_DEFINE_BOOST_MACROS
00078 # define foreach BOOST_FOREACH
00079 # define foreach_reverse BOOST_REVERSE_FOREACH
00080 #endif
00081
00082
00083
00084
00085 #include "Base/spCompilationOptions.hpp"
00086
00087
00088
00089
00090 #if !defined(SP_PLATFORM_WINDOWS) && !defined(SP_PLATFORM_XBOX)
00091 # undef SP_COMPILE_WITH_DIRECT3D9
00092 # undef SP_COMPILE_WITH_XAUDIO2
00093 # undef SP_COMPILE_WITH_XBOX360GAMEPAD
00094 #endif
00095
00096 #if !defined(SP_PLATFORM_WINDOWS)
00097 # undef SP_COMPILE_WITH_DIRECT3D11
00098 # undef SP_COMPILE_WITH_WINMM
00099 # undef SP_COMPILE_WITH_NEWTONPHYSICS
00100 #endif
00101
00102 #if defined(SP_PLATFORM_ANDROID) || defined(SP_PLATFORM_IOS)
00103 # undef SP_COMPILE_WITH_OPENGL
00104 # undef SP_COMPILE_WITH_NETWORKSYSTEM
00105 # undef SP_COMPILE_WITH_SOUNDSYSTEM
00106 # undef SP_COMPILE_WITH_GUI
00107 # undef SP_COMPILE_WITH_PHYSICS
00108 # undef SP_COMPILE_WITH_NEWTON
00109 # undef SP_COMPILE_WITH_BULLET
00110 # undef SP_COMPILE_WITH_PHYSX
00111 # undef SP_COMPILE_WITH_CG
00112 # undef SP_COMPILE_WITH_DEFERREDRENDERER
00113 # undef SP_COMPILE_WITH_OPENCL
00114 # undef SP_COMPILE_WITH_INPUTSERVICE
00115 #else
00116 # undef SP_COMPILE_WITH_OPENGLES1
00117 # undef SP_COMPILE_WITH_OPENGLES2
00118 # undef SP_COMPILE_WITH_OPENSLES
00119 #endif
00120
00121 #if defined(SP_PLATFORM_IOS)
00122 # undef SP_COMPILE_WITH_OPENSLES
00123 #endif
00124
00125 #if defined(SP_PLATFORM_ANDROID)
00126 # define SP_USE_GLES_EGL
00127 #endif
00128
00129 #if defined(SP_PLATFORM_MACOSX) || defined(SP_PLATFORM_LINUX)
00130 # undef SP_COMPILE_WITH_CG
00131 #endif
00132
00133 #ifndef SP_COMPILE_WITH_XMLPARSER
00134 # undef SP_COMPILE_WITH_WEBPAGERENDERER
00135 #endif
00136
00137
00138
00139
00140 #if defined(SP_COMPILER_VC)
00141 # define _USE_MATH_DEFINES
00142 #else
00143 # undef SP_COMPILE_WITH_DIRECT3D11
00144 # undef SP_COMPILE_WITH_XAUDIO2
00145 # undef SP_COMPILE_WITH_XBOX360GAMEPAD
00146 #endif
00147
00148
00149
00150
00151 #ifdef __DOXYGEN__
00152 # define SP_COMPILE_WITH_OPENGL
00153 # define SP_COMPILE_WITH_OPENGLES1
00154 # define SP_COMPILE_WITH_OPENGLES2
00155 # define SP_COMPILE_WITH_DIRECT3D9
00156 # define SP_COMPILE_WITH_DIRECT3D11
00157 # define SP_COMPILE_WITH_DEFERREDRENDERER
00158
00159 # define SP_COMPILE_WITH_SCENEGRAPH_SIMPLE
00160 # define SP_COMPILE_WITH_SCENEGRAPH_SIMPLE_STREAM
00161 # define SP_COMPILE_WITH_SCENEGRAPH_FAMILY_TREE
00162
00163 # define SP_COMPILE_WITH_WINMM
00164 # define SP_COMPILE_WITH_OPENAL
00165 # define SP_COMPILE_WITH_XAUDIO2
00166 # define SP_COMPILE_WITH_OPENSLES
00167
00168 # define SP_COMPILE_WITH_NEWTON
00169 # define SP_COMPILE_WITH_PHYSX
00170 # define SP_COMPILE_WITH_BULLET
00171
00172 # define SP_COMPILE_WITH_LIGHTMAPGENERATOR
00173 # define SP_COMPILE_WITH_MODELCOMBINER
00174 # define SP_COMPILE_WITH_SCRIPTLOADER
00175 # define SP_COMPILE_WITH_PARTICLEANIMATOR
00176 # define SP_COMPILE_WITH_IMAGEMODIFIER
00177 # define SP_COMPILE_WITH_XMLPARSER
00178 # define SP_COMPILE_WITH_PATHFINDER
00179 # define SP_COMPILE_WITH_INPUTSERVICE
00180 # define SP_COMPILE_WITH_MATRIXTEXTURE
00181 # define SP_COMPILE_WITH_STORYBOARD
00182 # define SP_COMPILE_WITH_TOKENPARSER
00183 # define SP_COMPILE_WITH_COMMANDLINE
00184 # define SP_COMPILE_WITH_WEBPAGERENDERER
00185
00186 # define SP_COMPILE_WITH_NETWORKSYSTEM
00187 # define SP_COMPILE_WITH_GUI
00188 # define SP_COMPILE_WITH_CG
00189 # define SP_COMPILE_WITH_OPENCL
00190 # define SP_COMPILE_WITH_XBOX360GAMEPAD
00191
00192 # define SP_PLATFORM_WINDOWS
00193 # define SP_PLATFORM_MACOSX
00194 # define SP_PLATFORM_LINUX
00195 # define SP_PLATFORM_ANDROID
00196 # define SP_PLATFORM_IOS
00197 #endif
00198
00199
00200
00201 #include "Base/spBaseTypes.hpp"
00202
00203
00204 #endif
00205
00206
00207
00208