2014-04-27 01:11:22 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2008-2010 Ricardo Quesada
|
|
|
|
Copyright (c) 2010-2012 cocos2d-x.org
|
|
|
|
Copyright (c) 2011 Zynga Inc.
|
|
|
|
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
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.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __COCOS2D_H__
|
|
|
|
#define __COCOS2D_H__
|
|
|
|
|
|
|
|
// 0x00 HI ME LO
|
2014-08-21 23:04:46 +08:00
|
|
|
// 00 03 03 00
|
|
|
|
#define COCOS2D_VERSION 0x00030300
|
2014-04-27 01:11:22 +08:00
|
|
|
|
|
|
|
//
|
|
|
|
// all cocos2d include files
|
|
|
|
//
|
2014-04-30 08:37:36 +08:00
|
|
|
#include "base/ccConfig.h"
|
|
|
|
|
|
|
|
// base
|
|
|
|
#include "base/CCRef.h"
|
|
|
|
#include "base/CCRefPtr.h"
|
|
|
|
#include "base/CCVector.h"
|
|
|
|
#include "base/CCMap.h"
|
|
|
|
#include "base/CCAutoreleasePool.h"
|
|
|
|
#include "base/CCNS.h"
|
|
|
|
#include "base/CCData.h"
|
|
|
|
#include "base/CCValue.h"
|
|
|
|
#include "base/ccConfig.h"
|
|
|
|
#include "base/ccMacros.h"
|
|
|
|
#include "base/ccTypes.h"
|
|
|
|
#include "base/CCConfiguration.h"
|
|
|
|
#include "base/CCDirector.h"
|
|
|
|
#include "base/CCScheduler.h"
|
|
|
|
#include "base/base64.h"
|
|
|
|
#include "base/ZipUtils.h"
|
|
|
|
#include "base/CCProfiling.h"
|
|
|
|
#include "base/CCConsole.h"
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "base/ccUTF8.h"
|
|
|
|
#include "base/CCUserDefault.h"
|
|
|
|
#include "base/CCIMEDelegate.h"
|
|
|
|
#include "base/CCIMEDispatcher.h"
|
2014-05-27 10:44:23 +08:00
|
|
|
#include "base/ccUtils.h"
|
2014-08-07 15:33:23 +08:00
|
|
|
#include "base/CCCamera.h"
|
2014-04-30 08:37:36 +08:00
|
|
|
|
|
|
|
// EventDispatcher
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "base/CCEventType.h"
|
2014-04-30 08:37:36 +08:00
|
|
|
#include "base/CCEventDispatcher.h"
|
|
|
|
#include "base/CCEventListenerTouch.h"
|
|
|
|
#include "base/CCEventTouch.h"
|
|
|
|
#include "base/CCEventListenerKeyboard.h"
|
|
|
|
#include "base/CCEventKeyboard.h"
|
|
|
|
#include "base/CCEventListenerMouse.h"
|
|
|
|
#include "base/CCEventMouse.h"
|
|
|
|
#include "base/CCEventAcceleration.h"
|
|
|
|
#include "base/CCEventListenerAcceleration.h"
|
|
|
|
#include "base/CCEventCustom.h"
|
|
|
|
#include "base/CCEventListenerCustom.h"
|
2014-05-04 16:31:24 +08:00
|
|
|
#include "base/CCEventFocus.h"
|
|
|
|
#include "base/CCEventListenerFocus.h"
|
2014-04-30 08:37:36 +08:00
|
|
|
|
|
|
|
// math
|
|
|
|
#include "math/CCAffineTransform.h"
|
|
|
|
#include "math/CCGeometry.h"
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "math/Vec2.h"
|
|
|
|
#include "math/Vec3.h"
|
|
|
|
#include "math/Vec4.h"
|
|
|
|
#include "math/Mat4.h"
|
2014-04-30 08:37:36 +08:00
|
|
|
#include "math/Quaternion.h"
|
|
|
|
#include "math/MathUtil.h"
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "math/CCVertex.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
|
|
|
|
// actions
|
|
|
|
#include "2d/CCAction.h"
|
|
|
|
#include "2d/CCActionInterval.h"
|
|
|
|
#include "2d/CCActionCamera.h"
|
|
|
|
#include "2d/CCActionManager.h"
|
|
|
|
#include "2d/CCActionEase.h"
|
|
|
|
#include "2d/CCActionPageTurn3D.h"
|
|
|
|
#include "2d/CCActionGrid.h"
|
|
|
|
#include "2d/CCActionProgressTimer.h"
|
|
|
|
#include "2d/CCActionGrid3D.h"
|
|
|
|
#include "2d/CCActionTiledGrid.h"
|
|
|
|
#include "2d/CCActionInstant.h"
|
|
|
|
#include "2d/CCActionTween.h"
|
|
|
|
#include "2d/CCActionCatmullRom.h"
|
|
|
|
#include "2d/CCTweenFunction.h"
|
|
|
|
|
2014-04-30 08:37:36 +08:00
|
|
|
// 2d nodes
|
2014-04-27 01:11:22 +08:00
|
|
|
#include "2d/CCNode.h"
|
2014-09-10 03:18:31 +08:00
|
|
|
#include "2d/CCProtectedNode.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
#include "2d/CCAtlasNode.h"
|
|
|
|
#include "2d/CCDrawingPrimitives.h"
|
|
|
|
#include "2d/CCDrawNode.h"
|
|
|
|
#include "2d/CCLabelAtlas.h"
|
|
|
|
#include "2d/CCLabelTTF.h"
|
|
|
|
#include "2d/CCLabelBMFont.h"
|
|
|
|
#include "2d/CCLabel.h"
|
|
|
|
#include "2d/CCFontFNT.h"
|
|
|
|
#include "2d/CCLayer.h"
|
|
|
|
#include "2d/CCScene.h"
|
|
|
|
#include "2d/CCTransition.h"
|
|
|
|
#include "2d/CCTransitionPageTurn.h"
|
|
|
|
#include "2d/CCTransitionProgress.h"
|
|
|
|
#include "2d/CCMenu.h"
|
|
|
|
#include "2d/CCMenuItem.h"
|
|
|
|
#include "2d/CCClippingNode.h"
|
|
|
|
#include "2d/CCMotionStreak.h"
|
|
|
|
#include "2d/CCProgressTimer.h"
|
|
|
|
#include "2d/CCRenderTexture.h"
|
|
|
|
#include "2d/CCNodeGrid.h"
|
|
|
|
#include "2d/CCParticleBatchNode.h"
|
|
|
|
#include "2d/CCParticleSystem.h"
|
|
|
|
#include "2d/CCParticleExamples.h"
|
|
|
|
#include "2d/CCParticleSystemQuad.h"
|
|
|
|
|
2014-04-30 08:37:36 +08:00
|
|
|
// 2d utils
|
|
|
|
#include "2d/CCGrabber.h"
|
|
|
|
#include "2d/CCGrid.h"
|
|
|
|
|
|
|
|
// include
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "base/CCProtocols.h"
|
2014-04-30 08:37:36 +08:00
|
|
|
|
2014-05-17 05:36:00 +08:00
|
|
|
// renderer
|
2014-04-30 08:37:36 +08:00
|
|
|
#include "renderer/CCCustomCommand.h"
|
|
|
|
#include "renderer/CCGroupCommand.h"
|
|
|
|
#include "renderer/CCQuadCommand.h"
|
|
|
|
#include "renderer/CCRenderCommand.h"
|
|
|
|
#include "renderer/CCRenderCommandPool.h"
|
|
|
|
#include "renderer/CCRenderer.h"
|
2014-05-09 09:01:48 +08:00
|
|
|
#include "renderer/CCGLProgram.h"
|
2014-05-10 09:39:25 +08:00
|
|
|
#include "renderer/CCGLProgramCache.h"
|
2014-05-09 09:01:48 +08:00
|
|
|
#include "renderer/CCGLProgramState.h"
|
|
|
|
#include "renderer/ccGLStateCache.h"
|
|
|
|
#include "renderer/ccShaders.h"
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "renderer/CCTexture2D.h"
|
|
|
|
#include "renderer/CCTextureCache.h"
|
2014-08-20 14:48:50 +08:00
|
|
|
#include "renderer/CCVertexIndexBuffer.h"
|
|
|
|
#include "renderer/CCVertexIndexData.h"
|
|
|
|
#include "renderer/CCPrimitive.h"
|
|
|
|
#include "renderer/CCPrimitiveCommand.h"
|
2014-09-04 11:20:43 +08:00
|
|
|
#include "renderer/CCTrianglesCommand.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
|
|
|
|
// physics
|
|
|
|
#include "physics/CCPhysicsBody.h"
|
|
|
|
#include "physics/CCPhysicsContact.h"
|
|
|
|
#include "physics/CCPhysicsShape.h"
|
|
|
|
#include "physics/CCPhysicsJoint.h"
|
|
|
|
#include "physics/CCPhysicsWorld.h"
|
|
|
|
|
|
|
|
// platform
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "platform/CCDevice.h"
|
|
|
|
#include "platform/CCCommon.h"
|
|
|
|
#include "platform/CCFileUtils.h"
|
|
|
|
#include "platform/CCImage.h"
|
|
|
|
#include "platform/CCSAXParser.h"
|
|
|
|
#include "platform/CCThread.h"
|
2014-09-10 08:17:07 +08:00
|
|
|
#include "platform/CCPlatformConfig.h"
|
|
|
|
#include "platform/CCPlatformMacros.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
2014-09-10 07:50:02 +08:00
|
|
|
#include "platform/ios/CCApplication-ios.h"
|
|
|
|
#include "platform/ios/CCGLViewImpl-ios.h"
|
|
|
|
#include "platform/ios/CCGL-ios.h"
|
|
|
|
#include "platform/ios/CCStdC-ios.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_IOS
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
2014-09-10 07:50:02 +08:00
|
|
|
#include "platform/android/CCApplication-android.h"
|
|
|
|
#include "platform/android/CCGLViewImpl-android.h"
|
|
|
|
#include "platform/android/CCGL-android.h"
|
|
|
|
#include "platform/android/CCStdC-android.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY)
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "platform/blackberry/CCApplication.h"
|
2014-07-31 00:53:04 +08:00
|
|
|
#include "platform/blackberry/CCGLViewImpl.h"
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "platform/blackberry/CCGL.h"
|
|
|
|
#include "platform/blackberry/CCStdC.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
2014-09-10 07:50:02 +08:00
|
|
|
#include "platform/win32/CCApplication-win32.h"
|
2014-09-10 09:07:24 +08:00
|
|
|
#include "platform/desktop/CCGLViewImpl-desktop.h"
|
2014-09-10 07:50:02 +08:00
|
|
|
#include "platform/win32/CCGL-win32.h"
|
|
|
|
#include "platform/win32/CCStdC-win32.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
2014-09-10 07:50:02 +08:00
|
|
|
#include "platform/desktop/CCGLViewImpl-desktop.h"
|
|
|
|
#include "platform/mac/CCApplication-mac.h"
|
|
|
|
#include "platform/mac/CCGL-mac.h"
|
|
|
|
#include "platform/mac/CCStdC-mac.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
|
2014-09-10 07:50:02 +08:00
|
|
|
#include "platform/linux/CCApplication-linux.h"
|
|
|
|
#include "platform/desktop/CCGLViewImpl-desktop.h"
|
|
|
|
#include "platform/linux/CCGL-linux.h"
|
|
|
|
#include "platform/linux/CCStdC-linux.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "platform/winrt/CCApplication.h"
|
2014-07-31 00:53:04 +08:00
|
|
|
#include "platform/winrt/CCGLViewImpl.h"
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "platform/winrt/CCGL.h"
|
|
|
|
#include "platform/winrt/CCStdC.h"
|
|
|
|
#include "platform/winrt/CCPrecompiledShaders.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WINRT
|
|
|
|
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8)
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "platform/winrt/CCApplication.h"
|
2014-09-10 07:50:02 +08:00
|
|
|
#include "platform/wp8/CCGLViewImpl-wp8.h"
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "platform/winrt/CCGL.h"
|
|
|
|
#include "platform/winrt/CCStdC.h"
|
|
|
|
#include "platform/winrt/CCPrecompiledShaders.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WP8
|
|
|
|
|
|
|
|
// script_support
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "base/CCScriptSupport.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
|
|
|
|
// sprite_nodes
|
|
|
|
#include "2d/CCAnimation.h"
|
|
|
|
#include "2d/CCAnimationCache.h"
|
|
|
|
#include "2d/CCSprite.h"
|
|
|
|
#include "2d/CCSpriteBatchNode.h"
|
|
|
|
#include "2d/CCSpriteFrame.h"
|
|
|
|
#include "2d/CCSpriteFrameCache.h"
|
|
|
|
|
|
|
|
// text_input_node
|
|
|
|
#include "2d/CCTextFieldTTF.h"
|
|
|
|
|
|
|
|
// textures
|
2014-05-17 05:36:00 +08:00
|
|
|
#include "renderer/CCTextureAtlas.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
|
|
|
|
// tilemap_parallax_nodes
|
|
|
|
#include "2d/CCParallaxNode.h"
|
|
|
|
#include "2d/CCTMXLayer.h"
|
|
|
|
#include "2d/CCTMXObjectGroup.h"
|
|
|
|
#include "2d/CCTMXTiledMap.h"
|
|
|
|
#include "2d/CCTMXXMLParser.h"
|
|
|
|
#include "2d/CCTileMapAtlas.h"
|
2014-07-02 14:26:56 +08:00
|
|
|
#include "2d/CCFastTMXTiledMap.h"
|
|
|
|
#include "2d/CCFastTMXLayer.h"
|
2014-04-27 01:11:22 +08:00
|
|
|
|
|
|
|
// component
|
|
|
|
#include "2d/CCComponent.h"
|
|
|
|
#include "2d/CCComponentContainer.h"
|
|
|
|
|
2014-09-10 03:18:31 +08:00
|
|
|
//3d
|
|
|
|
#include "3d/CCAABB.h"
|
|
|
|
#include "3d/CCOBB.h"
|
|
|
|
#include "3d/CCRay.h"
|
|
|
|
#include "3d/CCSprite3D.h"
|
|
|
|
#include "3d/CCMesh.h"
|
|
|
|
#include "3d/CCMeshSkin.h"
|
|
|
|
#include "3d/CCAnimate3D.h"
|
|
|
|
#include "3d/CCAnimation3D.h"
|
|
|
|
#include "3d/CCSprite3DMaterial.h"
|
|
|
|
#include "3d/CCAttachNode.h"
|
|
|
|
#include "3d/CCMeshVertexIndexData.h"
|
|
|
|
#include "3d/CCSkeleton3D.h"
|
2014-09-10 10:28:59 +08:00
|
|
|
#include "3d/CCBillBoard.h"
|
2014-09-25 22:18:50 +08:00
|
|
|
#include "3d/CCLight3D.h"
|
2014-09-10 03:18:31 +08:00
|
|
|
|
2014-04-27 01:11:22 +08:00
|
|
|
// Deprecated include
|
|
|
|
#include "deprecated/CCDictionary.h"
|
|
|
|
#include "deprecated/CCArray.h"
|
|
|
|
#include "deprecated/CCSet.h"
|
|
|
|
#include "deprecated/CCInteger.h"
|
|
|
|
#include "deprecated/CCFloat.h"
|
|
|
|
#include "deprecated/CCDouble.h"
|
|
|
|
#include "deprecated/CCBool.h"
|
|
|
|
#include "deprecated/CCString.h"
|
|
|
|
#include "deprecated/CCNotificationCenter.h"
|
|
|
|
// CCDeprecated.h must be included at the end
|
|
|
|
#include "deprecated/CCDeprecated.h"
|
|
|
|
|
|
|
|
|
|
|
|
NS_CC_BEGIN
|
|
|
|
|
|
|
|
CC_DLL const char* cocos2dVersion();
|
|
|
|
|
|
|
|
NS_CC_END
|
|
|
|
|
|
|
|
#endif // __COCOS2D_H__
|