cocos2d.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 0x00031300
  29. //
  30. // all cocos2d include files
  31. //
  32. #include "base/ccConfig.h"
  33. // base
  34. #include "base/CCAutoreleasePool.h"
  35. #include "base/CCData.h"
  36. #include "base/CCMap.h"
  37. #include "base/CCRef.h"
  38. #include "base/CCRefPtr.h"
  39. #include "base/CCValue.h"
  40. #include "base/CCVector.h"
  41. #include "base/ZipUtils.h"
  42. #include "base/base64.h"
  43. #include "base/ccConfig.h"
  44. #include "base/ccMacros.h"
  45. #include "base/ccTypes.h"
  46. #include "base/ccUTF8.h"
  47. #include "base/ccUtils.h"
  48. // math
  49. #include "math/CCGeometry.h"
  50. #include "math/CCVertex.h"
  51. #include "math/Mat4.h"
  52. #include "math/MathUtil.h"
  53. #include "math/Quaternion.h"
  54. #include "math/Vec2.h"
  55. #include "math/Vec3.h"
  56. #include "math/Vec4.h"
  57. // include
  58. // renderer
  59. // platform
  60. #include "platform/CCDevice.h"
  61. #include "platform/CCFileUtils.h"
  62. #include "platform/CCImage.h"
  63. #include "platform/CCPlatformConfig.h"
  64. #include "base/ccMacros.h"
  65. #include "platform/CCSAXParser.h"
  66. #include "platform/CCCanvasRenderingContext2D.h"
  67. #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
  68. #include "platform/ios/CCGL-ios.h"
  69. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_IOS
  70. #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
  71. #include "platform/android/CCGL-android.h"
  72. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
  73. #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
  74. #include "platform/win32/CCGL-win32.h"
  75. #include "platform/win32/CCStdC-win32.h"
  76. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
  77. #if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
  78. #include "platform/mac/CCGL-mac.h"
  79. #endif // CC_TARGET_PLATFORM == CC_PLATFORM_MAC
  80. NS_CC_BEGIN
  81. CC_DLL const char* cocos2dVersion();
  82. NS_CC_END
  83. #endif // __COCOS2D_H__