cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
/Users/rquesada/progs/cocos2d-iphone/cocos2d/ccConfig.h
Go to the documentation of this file.
00001 /*
00002  * cocos2d for iPhone: http://www.cocos2d-iphone.org
00003  *
00004  * Copyright (c) 2008-2010 Ricardo Quesada
00005  * Copyright (c) 2011 Zynga Inc.
00006  * 
00007  * Permission is hereby granted, free of charge, to any person obtaining a copy
00008  * of this software and associated documentation files (the "Software"), to deal
00009  * in the Software without restriction, including without limitation the rights
00010  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00011  * copies of the Software, and to permit persons to whom the Software is
00012  * furnished to do so, subject to the following conditions:
00013  * 
00014  * The above copyright notice and this permission notice shall be included in
00015  * all copies or substantial portions of the Software.
00016  * 
00017  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00018  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00020  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00021  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00022  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
00023  * THE SOFTWARE.
00024  */
00025 
00026 
00027 #import <Availability.h>
00028 
00054 #ifndef CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL
00055 #define CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL 0
00056 #endif
00057  
00058 
00068 #ifndef CC_FONT_LABEL_SUPPORT
00069 #ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
00070 #define CC_FONT_LABEL_SUPPORT   1
00071 #elif defined(__MAC_OS_X_VERSION_MAX_ALLOWED)
00072 #define CC_FONT_LABEL_SUPPORT   0
00073 #endif
00074 #endif
00075 
00083 #ifndef CC_DIRECTOR_FAST_FPS
00084 #define CC_DIRECTOR_FAST_FPS    1
00085 #endif
00086 
00094 #ifndef CC_DIRECTOR_FPS_INTERVAL
00095 #define CC_DIRECTOR_FPS_INTERVAL (0.1f)
00096 #endif
00097 
00108 #ifndef CC_DIRECTOR_DISPATCH_FAST_EVENTS
00109 #define CC_DIRECTOR_DISPATCH_FAST_EVENTS 0
00110 #endif
00111 
00123 #ifndef CC_DIRECTOR_MAC_USE_DISPLAY_LINK_THREAD
00124 #define CC_DIRECTOR_MAC_USE_DISPLAY_LINK_THREAD 1
00125 #endif
00126 
00133 #ifndef CC_COCOSNODE_RENDER_SUBPIXEL
00134 #define CC_COCOSNODE_RENDER_SUBPIXEL 1
00135 #endif
00136 
00143 #ifndef CC_SPRITEBATCHNODE_RENDER_SUBPIXEL
00144 #define CC_SPRITEBATCHNODE_RENDER_SUBPIXEL      1
00145 #endif
00146 
00156 #ifndef CC_USES_VBO
00157 #if defined(__ARM_NEON__) || TARGET_IPHONE_SIMULATOR || defined(__MAC_OS_X_VERSION_MAX_ALLOWED)
00158 #define CC_USES_VBO 1
00159 #else
00160 #define CC_USES_VBO 0
00161 #endif
00162 #endif
00163 
00176 #ifndef CC_NODE_TRANSFORM_USING_AFFINE_MATRIX
00177 #define CC_NODE_TRANSFORM_USING_AFFINE_MATRIX 1
00178 #endif
00179 
00188 #ifndef CC_OPTIMIZE_BLEND_FUNC_FOR_PREMULTIPLIED_ALPHA
00189 #define CC_OPTIMIZE_BLEND_FUNC_FOR_PREMULTIPLIED_ALPHA 1
00190 #endif
00191 
00199 #ifndef CC_TEXTURE_ATLAS_USE_TRIANGLE_STRIP
00200 #define CC_TEXTURE_ATLAS_USE_TRIANGLE_STRIP 0
00201 #endif
00202 
00218 #ifndef CC_TEXTURE_NPOT_SUPPORT
00219 #define CC_TEXTURE_NPOT_SUPPORT 0
00220 #endif
00221 
00230 #ifndef CC_RETINA_DISPLAY_SUPPORT
00231 #define CC_RETINA_DISPLAY_SUPPORT 1
00232 #endif
00233 
00244 #ifndef CC_RETINA_DISPLAY_FILENAME_SUFFIX
00245 #define CC_RETINA_DISPLAY_FILENAME_SUFFIX @"-hd"
00246 #endif
00247 
00259 #ifndef CC_USE_LA88_LABELS_ON_NEON_ARCH
00260 #define CC_USE_LA88_LABELS_ON_NEON_ARCH 0
00261 #endif
00262 
00272 #ifndef CC_SPRITE_DEBUG_DRAW
00273 #define CC_SPRITE_DEBUG_DRAW 0
00274 #endif
00275 
00282 #ifndef CC_SPRITEBATCHNODE_DEBUG_DRAW
00283 #define CC_SPRITEBATCHNODE_DEBUG_DRAW 0
00284 #endif
00285 
00292 #ifndef CC_LABELBMFONT_DEBUG_DRAW
00293 #define CC_LABELBMFONT_DEBUG_DRAW 0
00294 #endif
00295 
00302 #ifndef CC_LABELATLAS_DEBUG_DRAW
00303 #define CC_LABELATLAS_DEBUG_DRAW 0
00304 #endif
00305 
00313 #ifndef CC_ENABLE_PROFILERS
00314 #define CC_ENABLE_PROFILERS 0
00315 #endif
00316 
00317 //
00318 // DON'T edit this macro.
00319 //
00320 #ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
00321 
00322 #if CC_RETINA_DISPLAY_SUPPORT
00323 #define CC_IS_RETINA_DISPLAY_SUPPORTED 1
00324 #else
00325 #define CC_IS_RETINA_DISPLAY_SUPPORTED 0
00326 #endif
00327 
00328 #elif __MAC_OS_X_VERSION_MAX_ALLOWED
00329 
00330 #define CC_IS_RETINA_DISPLAY_SUPPORTED 0
00331 
00332 #endif
00333 
00334 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone API Reference - Generated using Doxygen 1.7.4