2021-10-25 18:06:45 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2008-2010 Ricardo Quesada
|
|
|
|
Copyright (c) 2010-2012 cocos2d-x.org
|
|
|
|
Copyright (c) 2011 Zynga Inc.
|
|
|
|
Copyright (c) 2013-2016 Chukong Technologies Inc.
|
|
|
|
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
|
|
|
Copyright (c) 2021 Bytedance Inc.
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
https://axys1.github.io/
|
2021-10-25 18:06: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.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2022-08-29 20:51:22 +08:00
|
|
|
#ifndef __AX_H__
|
|
|
|
#define __AX_H__
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// 0x00 HI ME LO
|
|
|
|
// 00 03 08 00
|
|
|
|
|
2022-08-29 20:51:22 +08:00
|
|
|
#define AX_VERSION 0x00010000
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
//
|
|
|
|
// all cocos2d include files
|
|
|
|
//
|
|
|
|
#include "base/ccConfig.h"
|
|
|
|
|
|
|
|
// base
|
|
|
|
#include "base/CCAsyncTaskPool.h"
|
|
|
|
#include "base/CCAutoreleasePool.h"
|
|
|
|
#include "base/CCConfiguration.h"
|
|
|
|
#include "base/CCConsole.h"
|
|
|
|
#include "base/CCData.h"
|
|
|
|
#include "base/CCDirector.h"
|
|
|
|
#include "base/CCIMEDelegate.h"
|
|
|
|
#include "base/CCIMEDispatcher.h"
|
|
|
|
#include "base/CCMap.h"
|
|
|
|
#include "base/CCNS.h"
|
|
|
|
#include "base/CCProfiling.h"
|
|
|
|
#include "base/CCProperties.h"
|
|
|
|
#include "base/CCRef.h"
|
|
|
|
#include "base/CCRefPtr.h"
|
|
|
|
#include "base/CCScheduler.h"
|
|
|
|
#include "base/CCUserDefault.h"
|
|
|
|
#include "base/CCValue.h"
|
|
|
|
#include "base/CCVector.h"
|
|
|
|
#include "base/ZipUtils.h"
|
|
|
|
#include "base/base64.h"
|
|
|
|
#include "base/ccConfig.h"
|
|
|
|
#include "base/ccMacros.h"
|
|
|
|
#include "base/ccTypes.h"
|
|
|
|
#include "base/ccUTF8.h"
|
|
|
|
#include "base/ccUtils.h"
|
|
|
|
|
|
|
|
// EventDispatcher
|
|
|
|
#include "base/CCEventAcceleration.h"
|
|
|
|
#include "base/CCEventCustom.h"
|
|
|
|
#include "base/CCEventDispatcher.h"
|
|
|
|
#include "base/CCEventFocus.h"
|
|
|
|
#include "base/CCEventKeyboard.h"
|
|
|
|
#include "base/CCEventListenerAcceleration.h"
|
|
|
|
#include "base/CCEventListenerCustom.h"
|
|
|
|
#include "base/CCEventListenerFocus.h"
|
|
|
|
#include "base/CCEventListenerKeyboard.h"
|
|
|
|
#include "base/CCEventListenerMouse.h"
|
|
|
|
#include "base/CCEventListenerController.h"
|
|
|
|
#include "base/CCEventListenerTouch.h"
|
|
|
|
#include "base/CCEventMouse.h"
|
|
|
|
#include "base/CCEventController.h"
|
|
|
|
#include "base/CCController.h"
|
|
|
|
#include "base/CCEventTouch.h"
|
|
|
|
#include "base/CCEventType.h"
|
|
|
|
|
|
|
|
// math
|
|
|
|
#include "math/CCAffineTransform.h"
|
|
|
|
#include "math/CCMath.h"
|
|
|
|
#include "math/CCVertex.h"
|
|
|
|
#include "math/Mat4.h"
|
|
|
|
#include "math/MathUtil.h"
|
|
|
|
#include "math/Quaternion.h"
|
|
|
|
#include "math/Vec2.h"
|
|
|
|
#include "math/Vec3.h"
|
|
|
|
#include "math/Vec4.h"
|
|
|
|
|
|
|
|
// actions
|
|
|
|
#include "2d/CCAction.h"
|
|
|
|
#include "2d/CCActionCamera.h"
|
|
|
|
#include "2d/CCActionCatmullRom.h"
|
|
|
|
#include "2d/CCActionEase.h"
|
|
|
|
#include "2d/CCActionGrid.h"
|
|
|
|
#include "2d/CCActionGrid3D.h"
|
|
|
|
#include "2d/CCActionInstant.h"
|
|
|
|
#include "2d/CCActionInterval.h"
|
|
|
|
#include "2d/CCActionManager.h"
|
|
|
|
#include "2d/CCActionPageTurn3D.h"
|
|
|
|
#include "2d/CCActionProgressTimer.h"
|
|
|
|
#include "2d/CCActionTiledGrid.h"
|
|
|
|
#include "2d/CCActionTween.h"
|
|
|
|
#include "2d/CCTweenFunction.h"
|
|
|
|
|
|
|
|
// 2d nodes
|
|
|
|
#include "2d/CCAtlasNode.h"
|
|
|
|
#include "2d/CCClippingNode.h"
|
|
|
|
#include "2d/CCClippingRectangleNode.h"
|
|
|
|
#include "2d/CCDrawNode.h"
|
|
|
|
#include "2d/CCFontFNT.h"
|
2022-06-13 01:44:31 +08:00
|
|
|
#include "2d/CCFontFreeType.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
#include "2d/CCLabel.h"
|
|
|
|
#include "2d/CCLabelAtlas.h"
|
|
|
|
#include "2d/CCLayer.h"
|
|
|
|
#include "2d/CCMenu.h"
|
|
|
|
#include "2d/CCMenuItem.h"
|
|
|
|
#include "2d/CCMotionStreak.h"
|
|
|
|
#include "2d/CCNode.h"
|
|
|
|
#include "2d/CCNodeGrid.h"
|
|
|
|
#include "2d/CCParticleBatchNode.h"
|
|
|
|
#include "2d/CCParticleExamples.h"
|
|
|
|
#include "2d/CCParticleSystem.h"
|
|
|
|
#include "2d/CCParticleSystemQuad.h"
|
|
|
|
#include "2d/CCProgressTimer.h"
|
|
|
|
#include "2d/CCProtectedNode.h"
|
|
|
|
#include "2d/CCRenderTexture.h"
|
|
|
|
#include "2d/CCScene.h"
|
|
|
|
#include "2d/CCTransition.h"
|
|
|
|
#include "2d/CCTransitionPageTurn.h"
|
|
|
|
#include "2d/CCTransitionProgress.h"
|
|
|
|
|
|
|
|
// 2d utils
|
|
|
|
#include "2d/CCCamera.h"
|
|
|
|
#include "2d/CCCameraBackgroundBrush.h"
|
|
|
|
#include "2d/CCGrid.h"
|
|
|
|
#include "2d/CCLight.h"
|
|
|
|
|
|
|
|
// include
|
|
|
|
#include "base/CCProtocols.h"
|
|
|
|
|
|
|
|
// renderer
|
|
|
|
#include "renderer/CCCallbackCommand.h"
|
|
|
|
#include "renderer/CCCustomCommand.h"
|
|
|
|
#include "renderer/CCGroupCommand.h"
|
|
|
|
#include "renderer/CCMaterial.h"
|
|
|
|
#include "renderer/CCPass.h"
|
|
|
|
#include "renderer/CCQuadCommand.h"
|
|
|
|
#include "renderer/CCRenderCommand.h"
|
|
|
|
#include "renderer/CCRenderCommandPool.h"
|
|
|
|
#include "renderer/CCRenderState.h"
|
|
|
|
#include "renderer/CCRenderer.h"
|
|
|
|
#include "renderer/CCTechnique.h"
|
|
|
|
#include "renderer/CCTexture2D.h"
|
|
|
|
#include "renderer/CCTextureCube.h"
|
|
|
|
#include "renderer/CCTextureCache.h"
|
|
|
|
#include "renderer/CCTrianglesCommand.h"
|
|
|
|
#include "renderer/ccShaders.h"
|
|
|
|
|
|
|
|
// physics
|
|
|
|
#include "physics/CCPhysicsBody.h"
|
|
|
|
#include "physics/CCPhysicsContact.h"
|
|
|
|
#include "physics/CCPhysicsJoint.h"
|
|
|
|
#include "physics/CCPhysicsShape.h"
|
|
|
|
#include "physics/CCPhysicsWorld.h"
|
|
|
|
|
|
|
|
// platform
|
|
|
|
#include "platform/CCCommon.h"
|
|
|
|
#include "platform/CCDevice.h"
|
|
|
|
#include "platform/CCFileUtils.h"
|
|
|
|
#include "platform/CCImage.h"
|
|
|
|
#include "platform/CCPlatformConfig.h"
|
|
|
|
#include "platform/CCPlatformMacros.h"
|
|
|
|
#include "platform/CCSAXParser.h"
|
|
|
|
|
2022-07-15 19:17:01 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_IOS)
|
2021-12-25 10:04:45 +08:00
|
|
|
# include "platform/ios/CCApplication-ios.h"
|
|
|
|
# include "platform/ios/CCGLViewImpl-ios.h"
|
|
|
|
# include "platform/ios/CCStdC-ios.h"
|
2022-07-15 19:17:01 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_IOS
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-15 19:17:01 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_ANDROID)
|
2021-12-25 10:04:45 +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"
|
|
|
|
// Enhance modification begin
|
|
|
|
# include "platform/android/CCEnhanceAPI-android.h"
|
|
|
|
// Enhance modification end
|
2022-07-15 19:17:01 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_ANDROID
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-15 19:17:01 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_WIN32)
|
2021-12-25 10:04:45 +08:00
|
|
|
# include "platform/win32/CCApplication-win32.h"
|
|
|
|
# include "platform/desktop/CCGLViewImpl-desktop.h"
|
|
|
|
# include "platform/win32/CCGL-win32.h"
|
|
|
|
# include "platform/win32/CCStdC-win32.h"
|
2022-07-15 19:17:01 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_WIN32
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-15 19:17:01 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_MAC)
|
2021-12-25 10:04:45 +08:00
|
|
|
# include "platform/desktop/CCGLViewImpl-desktop.h"
|
|
|
|
# include "platform/mac/CCApplication-mac.h"
|
|
|
|
# include "platform/mac/CCStdC-mac.h"
|
2022-07-15 19:17:01 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_MAC
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-15 19:17:01 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_LINUX)
|
2021-12-25 10:04:45 +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"
|
2022-07-15 19:17:01 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_LINUX
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// script_support
|
|
|
|
#include "base/CCScriptSupport.h"
|
|
|
|
|
|
|
|
// sprite_nodes
|
|
|
|
#include "2d/CCAnimation.h"
|
|
|
|
#include "2d/CCAnimationCache.h"
|
|
|
|
#include "2d/CCSprite.h"
|
|
|
|
#include "2d/CCAutoPolygon.h"
|
|
|
|
#include "2d/CCSpriteBatchNode.h"
|
|
|
|
#include "2d/CCSpriteFrame.h"
|
|
|
|
#include "2d/CCSpriteFrameCache.h"
|
|
|
|
|
|
|
|
// text_input_node
|
|
|
|
#include "2d/CCTextFieldTTF.h"
|
|
|
|
|
|
|
|
// textures
|
|
|
|
#include "renderer/CCTextureAtlas.h"
|
|
|
|
|
|
|
|
// tilemap_parallax_nodes
|
|
|
|
#include "2d/CCParallaxNode.h"
|
|
|
|
#include "2d/CCTMXObjectGroup.h"
|
|
|
|
#include "2d/CCTMXXMLParser.h"
|
|
|
|
#include "2d/CCTileMapAtlas.h"
|
|
|
|
#include "2d/CCFastTMXLayer.h"
|
|
|
|
#include "2d/CCFastTMXTiledMap.h"
|
|
|
|
|
|
|
|
// component
|
|
|
|
#include "2d/CCComponent.h"
|
|
|
|
#include "2d/CCComponentContainer.h"
|
|
|
|
|
2021-12-25 10:04:45 +08:00
|
|
|
// 3d
|
2021-10-25 18:06:45 +08:00
|
|
|
#include "3d/CCAABB.h"
|
|
|
|
#include "3d/CCAnimate3D.h"
|
|
|
|
#include "3d/CCAnimation3D.h"
|
|
|
|
#include "3d/CCAttachNode.h"
|
|
|
|
#include "3d/CCBillBoard.h"
|
|
|
|
#include "3d/CCFrustum.h"
|
|
|
|
#include "3d/CCMesh.h"
|
|
|
|
#include "3d/CCMeshSkin.h"
|
|
|
|
#include "3d/CCMotionStreak3D.h"
|
|
|
|
#include "3d/CCMeshVertexIndexData.h"
|
|
|
|
#include "3d/CCOBB.h"
|
|
|
|
#include "3d/CCPlane.h"
|
|
|
|
#include "3d/CCRay.h"
|
|
|
|
#include "3d/CCSkeleton3D.h"
|
|
|
|
#include "3d/CCSkybox.h"
|
2022-07-05 14:48:46 +08:00
|
|
|
#include "3d/CCMeshRenderer.h"
|
|
|
|
#include "3d/CCMeshMaterial.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
#include "3d/CCTerrain.h"
|
|
|
|
#include "3d/CCVertexAttribBinding.h"
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
NS_AX_BEGIN
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
AX_DLL const char* axysVersion();
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
NS_AX_END
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-08-29 20:51:22 +08:00
|
|
|
#endif // __AX_H__
|