cocos2d.h 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /****************************************************************************
  2. Copyright (c) 2008-2010 Ricardo Quesada
  3. Copyright (c) 2010-2012 cocos2d-x.org
  4. Copyright (c) 2011 Zynga Inc.
  5. Copyright (c) 2013-2016 Chukong Technologies Inc.
  6. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
  7. http://www.cocos2d-x.org
  8. Permission is hereby granted, free of charge, to any person obtaining a copy
  9. of this software and associated documentation files (the "Software"), to deal
  10. in the Software without restriction, including without limitation the rights
  11. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. copies of the Software, and to permit persons to whom the Software is
  13. furnished to do so, subject to the following conditions:
  14. The above copyright notice and this permission notice shall be included in
  15. all copies or substantial portions of the Software.
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  19. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  21. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  22. THE SOFTWARE.
  23. ****************************************************************************/
  24. #ifndef __COCOS2D_H__
  25. #define __COCOS2D_H__
  26. // 0x00 HI ME LO
  27. // 00 03 08 00
  28. #define COCOS2D_VERSION 0x00031700
  29. //
  30. // all cocos2d include files
  31. //
  32. #include "base/ccConfig.h"
  33. // base
  34. #include "base/CCAsyncTaskPool.h"
  35. #include "base/CCAutoreleasePool.h"
  36. #include "base/CCConfiguration.h"
  37. #include "base/CCConsole.h"
  38. #include "base/CCData.h"
  39. #include "base/CCDirector.h"
  40. #include "base/CCIMEDelegate.h"
  41. #include "base/CCIMEDispatcher.h"
  42. #include "base/CCMap.h"
  43. #include "base/CCNS.h"
  44. #include "base/CCProfiling.h"
  45. #include "base/CCProperties.h"
  46. #include "base/CCRef.h"
  47. #include "base/CCRefPtr.h"
  48. #include "base/CCScheduler.h"
  49. #include "base/CCUserDefault.h"
  50. #include "base/CCValue.h"
  51. #include "base/CCVector.h"
  52. #include "base/ZipUtils.h"
  53. #include "base/base64.h"
  54. #include "base/ccConfig.h"
  55. #include "base/ccMacros.h"
  56. #include "base/ccTypes.h"
  57. #include "base/ccUTF8.h"
  58. #include "base/ccUtils.h"
  59. // EventDispatcher
  60. #include "base/CCEventAcceleration.h"
  61. #include "base/CCEventCustom.h"
  62. #include "base/CCEventDispatcher.h"
  63. #include "base/CCEventFocus.h"
  64. #include "base/CCEventKeyboard.h"
  65. #include "base/CCEventListenerAcceleration.h"
  66. #include "base/CCEventListenerCustom.h"
  67. #include "base/CCEventListenerFocus.h"
  68. #include "base/CCEventListenerKeyboard.h"
  69. #include "base/CCEventListenerMouse.h"
  70. #include "base/CCEventListenerController.h"
  71. #include "base/CCEventListenerTouch.h"
  72. #include "base/CCEventMouse.h"
  73. #include "base/CCEventController.h"
  74. #include "base/CCController.h"
  75. #include "base/CCEventTouch.h"
  76. #include "base/CCEventType.h"
  77. // math
  78. #include "math/CCAffineTransform.h"
  79. #include "math/CCGeometry.h"
  80. #include "math/CCVertex.h"
  81. #include "math/Mat4.h"
  82. #include "math/MathUtil.h"
  83. #include "math/Quaternion.h"
  84. #include "math/Vec2.h"
  85. #include "math/Vec3.h"
  86. #include "math/Vec4.h"
  87. // actions
  88. #include "2d/CCAction.h"
  89. #include "2d/CCActionCamera.h"
  90. #include "2d/CCActionCatmullRom.h"
  91. #include "2d/CCActionEase.h"
  92. #include "2d/CCActionGrid.h"
  93. #include "2d/CCActionGrid3D.h"
  94. #include "2d/CCActionInstant.h"
  95. #include "2d/CCActionInterval.h"
  96. #include "2d/CCActionManager.h"
  97. #include "2d/CCActionPageTurn3D.h"
  98. #include "2d/CCActionProgressTimer.h"
  99. #include "2d/CCActionTiledGrid.h"
  100. #include "2d/CCActionTween.h"
  101. #include "2d/CCTweenFunction.h"
  102. // 2d nodes
  103. #include "2d/CCAtlasNode.h"
  104. #include "2d/CCClippingNode.h"
  105. #include "2d/CCClippingRectangleNode.h"
  106. #include "2d/CCDrawNode.h"
  107. #include "2d/CCDrawingPrimitives.h"
  108. #include "2d/CCFontFNT.h"
  109. #include "2d/CCLabel.h"
  110. #include "2d/CCLabelAtlas.h"
  111. #include "2d/CCLabelBMFont.h"
  112. #include "2d/CCLabelTTF.h"
  113. #include "2d/CCLayer.h"
  114. #include "2d/CCMenu.h"
  115. #include "2d/CCMenuItem.h"
  116. #include "2d/CCMotionStreak.h"
  117. #include "2d/CCNode.h"
  118. #include "2d/CCNodeGrid.h"
  119. #include "2d/CCParticleBatchNode.h"
  120. #include "2d/CCParticleExamples.h"
  121. #include "2d/CCParticleSystem.h"
  122. #include "2d/CCParticleSystemQuad.h"
  123. #include "2d/CCProgressTimer.h"
  124. #include "2d/CCProtectedNode.h"
  125. #include "2d/CCRenderTexture.h"
  126. #include "2d/CCScene.h"
  127. #include "2d/CCTransition.h"
  128. #include "2d/CCTransitionPageTurn.h"
  129. #include "2d/CCTransitionProgress.h"
  130. // 2d utils
  131. #include "2d/CCCamera.h"
  132. #include "2d/CCCameraBackgroundBrush.h"
  133. #include "2d/CCGrabber.h"
  134. #include "2d/CCGrid.h"
  135. #include "2d/CCLight.h"
  136. // include
  137. #include "base/CCProtocols.h"
  138. // renderer
  139. #include "renderer/CCCustomCommand.h"
  140. #include "renderer/CCGLProgram.h"
  141. #include "renderer/CCGLProgramCache.h"
  142. #include "renderer/CCGLProgramState.h"
  143. #include "renderer/CCGLProgramStateCache.h"
  144. #include "renderer/CCGroupCommand.h"
  145. #include "renderer/CCMaterial.h"
  146. #include "renderer/CCPass.h"
  147. #include "renderer/CCPrimitive.h"
  148. #include "renderer/CCPrimitiveCommand.h"
  149. #include "renderer/CCQuadCommand.h"
  150. #include "renderer/CCRenderCommand.h"
  151. #include "renderer/CCRenderCommandPool.h"
  152. #include "renderer/CCRenderState.h"
  153. #include "renderer/CCRenderer.h"
  154. #include "renderer/CCTechnique.h"
  155. #include "renderer/CCTexture2D.h"
  156. #include "renderer/CCTextureCube.h"
  157. #include "renderer/CCTextureCache.h"
  158. #include "renderer/CCTrianglesCommand.h"
  159. #include "renderer/CCVertexAttribBinding.h"
  160. #include "renderer/CCVertexIndexBuffer.h"
  161. #include "renderer/CCVertexIndexData.h"
  162. #include "renderer/CCFrameBuffer.h"
  163. #include "renderer/ccGLStateCache.h"
  164. #include "renderer/ccShaders.h"
  165. // physics
  166. #include "physics/CCPhysicsBody.h"
  167. #include "physics/CCPhysicsContact.h"
  168. #include "physics/CCPhysicsJoint.h"
  169. #include "physics/CCPhysicsShape.h"
  170. #include "physics/CCPhysicsWorld.h"
  171. // platform
  172. #include "platform/CCCommon.h"
  173. #include "platform/CCDevice.h"
  174. #include "platform/CCFileUtils.h"
  175. #include "platform/CCImage.h"
  176. #include "platform/CCPlatformConfig.h"
  177. #include "platform/CCPlatformMacros.h"
  178. #include "platform/CCSAXParser.h"
  179. #include "platform/CCThread.h"
  180. #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
  181. #include "platform/ios/CCApplication-ios.h"
  182. #include "platform/ios/CCGLViewImpl-ios.h"
  183. #include "platform/ios/CCGL-ios.h"
  184. #include "platform/ios/CCStdC-ios.h"
  185. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_IOS
  186. #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
  187. #include "platform/android/CCApplication-android.h"
  188. #include "platform/android/CCGLViewImpl-android.h"
  189. #include "platform/android/CCGL-android.h"
  190. #include "platform/android/CCStdC-android.h"
  191. //Enhance modification begin
  192. #include "platform/android/CCEnhanceAPI-android.h"
  193. //Enhance modification end
  194. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
  195. #if (CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY)
  196. #include "platform/blackberry/CCApplication.h"
  197. #include "platform/blackberry/CCGLViewImpl.h"
  198. #include "platform/blackberry/CCGL.h"
  199. #include "platform/blackberry/CCStdC.h"
  200. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY
  201. #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
  202. #include "platform/win32/CCApplication-win32.h"
  203. #include "platform/desktop/CCGLViewImpl-desktop.h"
  204. #include "platform/win32/CCGL-win32.h"
  205. #include "platform/win32/CCStdC-win32.h"
  206. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
  207. #if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
  208. #include "platform/desktop/CCGLViewImpl-desktop.h"
  209. #include "platform/mac/CCApplication-mac.h"
  210. #include "platform/mac/CCGL-mac.h"
  211. #include "platform/mac/CCStdC-mac.h"
  212. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_MAC
  213. #if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
  214. #include "platform/linux/CCApplication-linux.h"
  215. #include "platform/desktop/CCGLViewImpl-desktop.h"
  216. #include "platform/linux/CCGL-linux.h"
  217. #include "platform/linux/CCStdC-linux.h"
  218. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
  219. #if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
  220. #include "platform/winrt/CCApplication.h"
  221. #include "platform/winrt/CCGLViewImpl-winrt.h"
  222. #include "platform/winrt/CCGL.h"
  223. #include "platform/winrt/CCStdC.h"
  224. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_WINRT
  225. #if (CC_TARGET_PLATFORM == CC_PLATFORM_TIZEN)
  226. #include "platform/tizen/CCApplication-tizen.h"
  227. #include "platform/tizen/CCGLViewImpl-tizen.h"
  228. #include "platform/tizen/CCGL-tizen.h"
  229. #include "platform/tizen/CCStdC-tizen.h"
  230. #endif
  231. // script_support
  232. #include "base/CCScriptSupport.h"
  233. // sprite_nodes
  234. #include "2d/CCAnimation.h"
  235. #include "2d/CCAnimationCache.h"
  236. #include "2d/CCSprite.h"
  237. #include "2d/CCAutoPolygon.h"
  238. #include "2d/CCSpriteBatchNode.h"
  239. #include "2d/CCSpriteFrame.h"
  240. #include "2d/CCSpriteFrameCache.h"
  241. // text_input_node
  242. #include "2d/CCTextFieldTTF.h"
  243. // textures
  244. #include "renderer/CCTextureAtlas.h"
  245. // tilemap_parallax_nodes
  246. #include "2d/CCParallaxNode.h"
  247. #include "2d/CCTMXLayer.h"
  248. #include "2d/CCTMXObjectGroup.h"
  249. #include "2d/CCTMXTiledMap.h"
  250. #include "2d/CCTMXXMLParser.h"
  251. #include "2d/CCTileMapAtlas.h"
  252. #include "2d/CCFastTMXLayer.h"
  253. #include "2d/CCFastTMXTiledMap.h"
  254. // component
  255. #include "2d/CCComponent.h"
  256. #include "2d/CCComponentContainer.h"
  257. //3d
  258. #include "3d/CCAABB.h"
  259. #include "3d/CCAnimate3D.h"
  260. #include "3d/CCAnimation3D.h"
  261. #include "3d/CCAttachNode.h"
  262. #include "3d/CCBillBoard.h"
  263. #include "3d/CCFrustum.h"
  264. #include "3d/CCMesh.h"
  265. #include "3d/CCMeshSkin.h"
  266. #include "3d/CCMotionStreak3D.h"
  267. #include "3d/CCMeshVertexIndexData.h"
  268. #include "3d/CCOBB.h"
  269. #include "3d/CCPlane.h"
  270. #include "3d/CCRay.h"
  271. #include "3d/CCSkeleton3D.h"
  272. #include "3d/CCSkybox.h"
  273. #include "3d/CCSprite3D.h"
  274. #include "3d/CCSprite3DMaterial.h"
  275. #include "3d/CCTerrain.h"
  276. // vr
  277. #include "vr/CCVRGenericRenderer.h"
  278. // Deprecated
  279. // All deprecated features are include inside deprecated/CCDeprecated.h.
  280. // It is recommended that you just include what is needed.
  281. // eg. #include "deprecated/CCString.h" if you only need cocos2d::__String.
  282. #include "deprecated/CCDeprecated.h"
  283. NS_CC_BEGIN
  284. CC_DLL const char* cocos2dVersion();
  285. NS_CC_END
  286. #endif // __COCOS2D_H__