MPMA Framework 0.4
Setup.h
Go to the documentation of this file.
00001 
00002 //Luke Lenhart, 2007-2011
00003 //See /docs/License.txt for details on how this code may be used.
00004 
00005 #pragma once
00006 
00007 // -- -- -- Framework Setup -- -- --
00009 namespace MPMA
00010 {
00014     class InitAndShutdown
00015     {
00016     public:
00017         InitAndShutdown();
00018         ~InitAndShutdown();
00019     };
00020 
00021     //Internal framework use only: registers init and shutdown callbacks
00022     void Internal_AddInitCallback(void (*pfunc)(), int priority);
00023     void Internal_AddShutdownCallback(void (*pfunc)(), int priority);
00024 }
00025 
00026 // -- Define these to allow various portions of MPMA to compile.  You can disable portions you don't need in order to not take on their dependencies. --
00027 
00028 //#define MPMA_COMPILE_AUDIO
00029 #define MPMA_COMPILE_GEO
00030 #define MPMA_COMPILE_GFXSETUP
00031 //#define MPMA_COMPILE_GFX //Requires: MPMA_COMPILE_GFXSETUP
00032 //#define MPMA_COMPILE_INPUT //Requires: MPMA_COMPILE_GFXSETUP
00033 //#define MPMA_COMPILE_NET
00034 
00035 
00036 // -- -- -- Options -- -- --
00037 //Adjust these parameters to suite your application.
00038 
00039 
00040 // -- Profiler --
00041 
00043 #define TIMEPROFILE_ENABLED
00044 
00045 
00046 // -- Memory Manager --
00047 
00048 #ifdef _DEBUG
00049 
00050     #define MEMMAN_TRACING
00051 #endif
00052 
00054 #define SAVE_ALLOC_CALL_STACK
00055 
00057 //#define MEM_TRACK_OLD_FREE
00058 
00059 
00060 // -- Debug --
00061 
00064 #define DEBUG_CALLSTACK_ENABLED
00065 
00067 #define DEBUGROUTER_ENABLED
00068 
00070 #define DEBUGROUTER_BUFFER_SIZE (8*1024)
00071 
00072 
00073 // -- Audio --
00074 
00075 #ifdef _DEBUG
00076 
00077     #define USE_STATIC_SOUND_FOR_AUDIO_ERRORS
00078 #endif
00079 
00080 #ifdef _DEBUG
00081 
00082     #define REPORT_AUDIO_STREAMING_PROBLEMS
00083 #endif
00084 
00086 #define HIGHER_PRIORITY_SOUND_THREAD
00087 
00089 #define AUDIO_OGG_VORBIS_ENABLED
00090 
00092 //#define AUDIO_OGG_FLAC_ENABLED
00093 
00094 
00095 // -- Graphics --
00096 
00098 #define OPENGL_LOAD_COMMON_EXTENSIONS
00099 
00101 #define GFX_REPORT_ALL_SHADER_MESSAGES
00102 
00104 #define GFX_USES_IMAGEMAGICK
00105 
00107 #define CACHE_FONTS_TO_DISK
00108 
00109 
00110 // -- Input --
00111 
00113 #define ENABLE_GAME_DEVICE_INPUT
00114 
00116 #define INPUT_GAMEDEVICE_DEFAULT_DEAD_ZONE 0.2f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends