2010-07-06 15:46:45 +08:00
|
|
|
/****************************************************************************
|
2011-03-19 10:59:01 +08:00
|
|
|
Copyright (c) 2010-2011 cocos2d-x.org
|
|
|
|
Copyright (c) 2008-2010 Ricardo Quesada
|
2011-07-05 14:51:17 +08:00
|
|
|
Copyright (c) 2011 Zynga Inc.
|
2010-07-06 15:46:45 +08:00
|
|
|
|
2010-07-06 20:55:05 +08:00
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
2010-07-06 15:46:45 +08:00
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2010-07-06 10:19:51 +08:00
|
|
|
#ifndef __COCOS2D_H__
|
|
|
|
#define __COCOS2D_H__
|
|
|
|
|
2012-06-18 16:16:09 +08:00
|
|
|
// 0x00 HI ME LO
|
|
|
|
// 00 02 00 00
|
|
|
|
#define COCOS2D_VERSION 0x00020000
|
|
|
|
|
2010-07-06 10:19:51 +08:00
|
|
|
//
|
|
|
|
// all cocos2d include files
|
|
|
|
//
|
2010-08-25 09:40:31 +08:00
|
|
|
|
2012-07-13 09:53:38 +08:00
|
|
|
#include <stdint.h>
|
2012-04-25 16:18:04 +08:00
|
|
|
#include "ccConfig.h"
|
|
|
|
|
|
|
|
// actions
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "actions/CCAction.h"
|
|
|
|
#include "actions/CCActionInterval.h"
|
|
|
|
#include "actions/CCActionCamera.h"
|
|
|
|
#include "actions/CCActionManager.h"
|
|
|
|
#include "actions/CCActionEase.h"
|
|
|
|
#include "actions/CCActionPageTurn3D.h"
|
|
|
|
#include "actions/CCActionGrid.h"
|
|
|
|
#include "actions/CCActionProgressTimer.h"
|
|
|
|
#include "actions/CCActionGrid3D.h"
|
|
|
|
#include "actions/CCActionTiledGrid.h"
|
|
|
|
#include "actions/CCActionInstant.h"
|
|
|
|
#include "actions/CCActionTween.h"
|
|
|
|
#include "actions/CCActionCatmullRom.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// base_nodes
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "base_nodes/CCNode.h"
|
|
|
|
#include "base_nodes/CCAtlasNode.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// cocoa
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "cocoa/CCAffineTransform.h"
|
|
|
|
#include "cocoa/CCDictionary.h"
|
|
|
|
#include "cocoa/CCObject.h"
|
|
|
|
#include "cocoa/CCArray.h"
|
|
|
|
#include "cocoa/CCGeometry.h"
|
|
|
|
#include "cocoa/CCSet.h"
|
|
|
|
#include "cocoa/CCAutoreleasePool.h"
|
|
|
|
#include "cocoa/CCInteger.h"
|
|
|
|
#include "cocoa/CCString.h"
|
|
|
|
#include "cocoa/CCNS.h"
|
|
|
|
#include "cocoa/CCZone.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// effects
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "effects/CCGrabber.h"
|
|
|
|
#include "effects/CCGrid.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// include
|
2012-04-25 18:17:04 +08:00
|
|
|
#include "CCEventType.h"
|
|
|
|
#include "CCProtocols.h"
|
|
|
|
#include "ccConfig.h"
|
|
|
|
#include "ccMacros.h"
|
|
|
|
#include "ccTypes.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// kazmath
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "kazmath/include/kazmath/kazmath.h"
|
|
|
|
#include "kazmath/include/kazmath/GL/matrix.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// keypad_dispatcher
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "keypad_dispatcher/CCKeypadDelegate.h"
|
|
|
|
#include "keypad_dispatcher/CCKeypadDispatcher.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// label_nodes
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "label_nodes/CCLabelAtlas.h"
|
|
|
|
#include "label_nodes/CCLabelTTF.h"
|
|
|
|
#include "label_nodes/CCLabelBMFont.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// layers_scenes_transitions_nodes
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "layers_scenes_transitions_nodes/CCLayer.h"
|
|
|
|
#include "layers_scenes_transitions_nodes/CCScene.h"
|
|
|
|
#include "layers_scenes_transitions_nodes/CCTransition.h"
|
|
|
|
#include "layers_scenes_transitions_nodes/CCTransitionPageTurn.h"
|
|
|
|
#include "layers_scenes_transitions_nodes/CCTransitionProgress.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// menu_nodes
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "menu_nodes/CCMenu.h"
|
|
|
|
#include "menu_nodes/CCMenuItem.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// misc_nodes
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "misc_nodes/CCMotionStreak.h"
|
|
|
|
#include "misc_nodes/CCProgressTimer.h"
|
|
|
|
#include "misc_nodes/CCRenderTexture.h"
|
2010-08-25 10:19:20 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// particle_nodes
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "particle_nodes/CCParticleBatchNode.h"
|
|
|
|
#include "particle_nodes/CCParticleSystem.h"
|
|
|
|
#include "particle_nodes/CCParticleExamples.h"
|
|
|
|
#include "particle_nodes/CCParticleSystemQuad.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// platform
|
2012-06-19 13:50:11 +08:00
|
|
|
|
|
|
|
#include "platform/CCCommon.h"
|
|
|
|
#include "platform/CCFileUtils.h"
|
|
|
|
#include "platform/CCImage.h"
|
|
|
|
#include "platform/CCSAXParser.h"
|
|
|
|
#include "platform/CCThread.h"
|
|
|
|
#include "platform/platform.h"
|
|
|
|
#include "platform/CCPlatformConfig.h"
|
|
|
|
#include "platform/CCPlatformMacros.h"
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
|
|
|
#include "platform/ios/CCAccelerometer.h"
|
|
|
|
#include "platform/ios/CCApplication.h"
|
|
|
|
#include "platform/ios/CCEGLView.h"
|
|
|
|
#include "platform/ios/CCGL.h"
|
|
|
|
#include "platform/ios/CCStdC.h"
|
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_IOS
|
|
|
|
|
2012-06-19 16:20:46 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "platform/android/CCAccelerometer.h"
|
|
|
|
#include "platform/android/CCApplication.h"
|
|
|
|
#include "platform/android/CCEGLView.h"
|
|
|
|
#include "platform/android/CCGL.h"
|
|
|
|
#include "platform/android/CCStdC.h"
|
2012-08-03 11:07:59 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
2012-06-19 13:50:11 +08:00
|
|
|
|
2012-08-18 05:45:21 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY)
|
|
|
|
#include "platform/blackberry/CCAccelerometer.h"
|
|
|
|
#include "platform/blackberry/CCApplication.h"
|
|
|
|
#include "platform/blackberry/CCEGLView.h"
|
|
|
|
#include "platform/blackberry/CCGL.h"
|
|
|
|
#include "platform/blackberry/CCStdC.h"
|
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY
|
|
|
|
|
2012-06-19 16:20:46 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
2012-08-03 11:16:34 +08:00
|
|
|
#include "platform/win32/CCAccelerometer.h"
|
|
|
|
#include "platform/win32/CCApplication.h"
|
|
|
|
#include "platform/win32/CCEGLView.h"
|
|
|
|
#include "platform/win32/CCGL.h"
|
|
|
|
#include "platform/win32/CCStdC.h"
|
2012-08-03 11:07:59 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
2012-08-03 11:16:34 +08:00
|
|
|
#include "platform/mac/CCAccelerometer.h"
|
|
|
|
#include "platform/mac/CCApplication.h"
|
|
|
|
#include "platform/mac/CCEGLView.h"
|
|
|
|
#include "platform/mac/CCGL.h"
|
|
|
|
#include "platform/mac/CCStdC.h"
|
2012-08-03 11:07:59 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
2012-06-19 13:50:11 +08:00
|
|
|
|
2012-08-02 13:02:59 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
|
2012-08-03 11:16:34 +08:00
|
|
|
#include "platform/linux/CCAccelerometer.h"
|
|
|
|
#include "platform/linux/CCApplication.h"
|
|
|
|
#include "platform/linux/CCEGLView.h"
|
|
|
|
#include "platform/linux/CCGL.h"
|
|
|
|
#include "platform/linux/CCStdC.h"
|
2012-08-03 11:07:59 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// script_support
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "script_support/CCScriptSupport.h"
|
2012-02-14 15:13:54 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// shaders
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "shaders/CCGLProgram.h"
|
|
|
|
#include "shaders/ccGLStateCache.h"
|
|
|
|
#include "shaders/CCShaderCache.h"
|
|
|
|
#include "shaders/ccShaders.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// sprite_nodes
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "sprite_nodes/CCAnimation.h"
|
|
|
|
#include "sprite_nodes/CCAnimationCache.h"
|
|
|
|
#include "sprite_nodes/CCSprite.h"
|
|
|
|
#include "sprite_nodes/CCSpriteBatchNode.h"
|
|
|
|
#include "sprite_nodes/CCSpriteFrame.h"
|
|
|
|
#include "sprite_nodes/CCSpriteFrameCache.h"
|
2010-08-05 18:58:38 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// support
|
2012-08-03 11:16:34 +08:00
|
|
|
#include "support/CCNotificationCenter.h"
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "support/CCPointExtension.h"
|
|
|
|
#include "support/CCProfiling.h"
|
|
|
|
#include "support/CCUserDefault.h"
|
|
|
|
#include "support/CCVertex.h"
|
2012-03-14 14:55:17 +08:00
|
|
|
|
2012-04-25 16:18:04 +08:00
|
|
|
// text_input_node
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "text_input_node/CCIMEDelegate.h"
|
|
|
|
#include "text_input_node/CCIMEDispatcher.h"
|
|
|
|
#include "text_input_node/CCTextFieldTTF.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// textures
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "textures/CCTexture2D.h"
|
|
|
|
#include "textures/CCTextureAtlas.h"
|
|
|
|
#include "textures/CCTextureCache.h"
|
|
|
|
#include "textures/CCTexturePVR.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
2012-08-03 11:16:34 +08:00
|
|
|
// tilemap_parallax_nodes
|
2012-08-02 16:23:31 +08:00
|
|
|
#include "tilemap_parallax_nodes/CCParallaxNode.h"
|
|
|
|
#include "tilemap_parallax_nodes/CCTMXLayer.h"
|
|
|
|
#include "tilemap_parallax_nodes/CCTMXObjectGroup.h"
|
|
|
|
#include "tilemap_parallax_nodes/CCTMXTiledMap.h"
|
|
|
|
#include "tilemap_parallax_nodes/CCTMXXMLParser.h"
|
|
|
|
#include "tilemap_parallax_nodes/CCTileMapAtlas.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// touch_dispatcher
|
2012-06-19 13:50:11 +08:00
|
|
|
#include "touch_dispatcher/CCTouch.h"
|
|
|
|
#include "touch_dispatcher/CCTouchDelegateProtocol.h"
|
|
|
|
#include "touch_dispatcher/CCTouchDispatcher.h"
|
|
|
|
#include "touch_dispatcher/CCTouchHandler.h"
|
2012-04-25 16:18:04 +08:00
|
|
|
|
|
|
|
// root
|
|
|
|
#include "CCCamera.h"
|
|
|
|
#include "CCConfiguration.h"
|
|
|
|
#include "CCDirector.h"
|
|
|
|
#include "CCDrawingPrimitives.h"
|
|
|
|
#include "CCScheduler.h"
|
2012-04-17 11:12:05 +08:00
|
|
|
|
2012-04-18 18:43:45 +08:00
|
|
|
NS_CC_BEGIN
|
2010-08-04 15:46:12 +08:00
|
|
|
|
2010-12-17 23:44:19 +08:00
|
|
|
const char* cocos2dVersion();
|
2011-06-03 15:22:50 +08:00
|
|
|
|
2012-04-18 18:43:45 +08:00
|
|
|
NS_CC_END
|
2010-07-06 10:19:51 +08:00
|
|
|
|
|
|
|
#endif // __COCOS2D_H__
|