All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
/Projects/Cogito/src/GameConfig.h
Go to the documentation of this file.
00001 //
00002 //  GameConfig.h
00003 //  Author: Thomas Taylor
00004 //
00005 //  13/11/2011: Created class
00006 //
00007 
00008 #ifndef __GAME_CONFIG_H
00009 #define __GAME_CONFIG_H
00010 
00011 //
00012 // Supported Autorotations:
00013 //  None,
00014 //  UIViewController,
00015 //  CCDirector
00016 //
00017 #define kGameAutorotationNone 0
00018 #define kGameAutorotationCCDirector 1
00019 #define kGameAutorotationUIViewController 2
00020 
00021 //
00022 // Define here the type of autorotation that you want for your game
00023 //
00024 
00025 // 3rd generation and newer devices: Rotate using UIViewController. Rotation should be supported on iPad apps.
00026 // TIP:
00027 // To improve the performance, you should set this value to "kGameAutorotationNone" or "kGameAutorotationCCDirector"
00028 #if defined(__ARM_NEON__) || TARGET_IPHONE_SIMULATOR
00029 #define GAME_AUTOROTATION kGameAutorotationUIViewController
00030 
00031 // ARMv6 (1st and 2nd generation devices): Don't rotate. It is very expensive
00032 #elif __arm__
00033 #define GAME_AUTOROTATION kGameAutorotationNone
00034 
00035 
00036 // Ignore this value on Mac
00037 #elif defined(__MAC_OS_X_VERSION_MAX_ALLOWED)
00038 
00039 #else
00040 #error(unknown architecture)
00041 #endif
00042 
00043 #endif // __GAME_CONFIG_H