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-10-01 16:24:52 +08:00
|
|
|
https://axmolengine.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
|
|
|
|
|
2023-06-12 09:14:23 +08:00
|
|
|
#include "axmolver.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
//
|
2022-10-01 16:24:52 +08:00
|
|
|
// all axmol include files
|
2021-10-25 18:06:45 +08:00
|
|
|
//
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "base/Config.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// base
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "base/AsyncTaskPool.h"
|
|
|
|
#include "base/AutoreleasePool.h"
|
|
|
|
#include "base/Configuration.h"
|
|
|
|
#include "base/Console.h"
|
|
|
|
#include "base/Data.h"
|
|
|
|
#include "base/Director.h"
|
|
|
|
#include "base/IMEDelegate.h"
|
|
|
|
#include "base/IMEDispatcher.h"
|
|
|
|
#include "base/Map.h"
|
|
|
|
#include "base/NS.h"
|
|
|
|
#include "base/Profiling.h"
|
|
|
|
#include "base/Properties.h"
|
|
|
|
#include "base/Ref.h"
|
|
|
|
#include "base/RefPtr.h"
|
|
|
|
#include "base/Scheduler.h"
|
|
|
|
#include "base/UserDefault.h"
|
|
|
|
#include "base/Value.h"
|
|
|
|
#include "base/Vector.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
#include "base/ZipUtils.h"
|
|
|
|
#include "base/base64.h"
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "base/Config.h"
|
|
|
|
#include "base/Macros.h"
|
|
|
|
#include "base/Types.h"
|
|
|
|
#include "base/UTF8.h"
|
|
|
|
#include "base/Utils.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// EventDispatcher
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "base/EventAcceleration.h"
|
|
|
|
#include "base/EventCustom.h"
|
|
|
|
#include "base/EventDispatcher.h"
|
|
|
|
#include "base/EventFocus.h"
|
|
|
|
#include "base/EventKeyboard.h"
|
|
|
|
#include "base/EventListenerAcceleration.h"
|
|
|
|
#include "base/EventListenerCustom.h"
|
|
|
|
#include "base/EventListenerFocus.h"
|
|
|
|
#include "base/EventListenerKeyboard.h"
|
|
|
|
#include "base/EventListenerMouse.h"
|
|
|
|
#include "base/EventListenerController.h"
|
|
|
|
#include "base/EventListenerTouch.h"
|
|
|
|
#include "base/EventMouse.h"
|
|
|
|
#include "base/EventController.h"
|
|
|
|
#include "base/Controller.h"
|
|
|
|
#include "base/EventTouch.h"
|
|
|
|
#include "base/EventType.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// math
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "math/AffineTransform.h"
|
|
|
|
#include "math/Math.h"
|
|
|
|
#include "math/Vertex.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
#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
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "2d/Action.h"
|
|
|
|
#include "2d/ActionCamera.h"
|
|
|
|
#include "2d/ActionCatmullRom.h"
|
|
|
|
#include "2d/ActionEase.h"
|
|
|
|
#include "2d/ActionGrid.h"
|
|
|
|
#include "2d/ActionGrid3D.h"
|
|
|
|
#include "2d/ActionInstant.h"
|
|
|
|
#include "2d/ActionInterval.h"
|
|
|
|
#include "2d/ActionManager.h"
|
|
|
|
#include "2d/ActionPageTurn3D.h"
|
|
|
|
#include "2d/ActionProgressTimer.h"
|
|
|
|
#include "2d/ActionTiledGrid.h"
|
|
|
|
#include "2d/ActionTween.h"
|
|
|
|
#include "2d/TweenFunction.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// 2d nodes
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "2d/AtlasNode.h"
|
|
|
|
#include "2d/ClippingNode.h"
|
|
|
|
#include "2d/ClippingRectangleNode.h"
|
|
|
|
#include "2d/DrawNode.h"
|
|
|
|
#include "2d/FontFNT.h"
|
|
|
|
#include "2d/FontFreeType.h"
|
|
|
|
#include "2d/Label.h"
|
|
|
|
#include "2d/LabelAtlas.h"
|
|
|
|
#include "2d/Layer.h"
|
|
|
|
#include "2d/Menu.h"
|
|
|
|
#include "2d/MenuItem.h"
|
|
|
|
#include "2d/MotionStreak.h"
|
|
|
|
#include "2d/Node.h"
|
|
|
|
#include "2d/NodeGrid.h"
|
|
|
|
#include "2d/ParticleBatchNode.h"
|
|
|
|
#include "2d/ParticleExamples.h"
|
|
|
|
#include "2d/ParticleSystem.h"
|
|
|
|
#include "2d/ParticleSystemQuad.h"
|
|
|
|
#include "2d/ProgressTimer.h"
|
|
|
|
#include "2d/ProtectedNode.h"
|
|
|
|
#include "2d/RenderTexture.h"
|
|
|
|
#include "2d/Scene.h"
|
|
|
|
#include "2d/Transition.h"
|
|
|
|
#include "2d/TransitionPageTurn.h"
|
|
|
|
#include "2d/TransitionProgress.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// 2d utils
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "2d/Camera.h"
|
|
|
|
#include "2d/CameraBackgroundBrush.h"
|
|
|
|
#include "2d/Grid.h"
|
|
|
|
#include "2d/Light.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// include
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "base/Protocols.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// renderer
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "renderer/CallbackCommand.h"
|
|
|
|
#include "renderer/CustomCommand.h"
|
|
|
|
#include "renderer/GroupCommand.h"
|
|
|
|
#include "renderer/Material.h"
|
|
|
|
#include "renderer/Pass.h"
|
|
|
|
#include "renderer/QuadCommand.h"
|
|
|
|
#include "renderer/RenderCommand.h"
|
|
|
|
#include "renderer/RenderCommandPool.h"
|
|
|
|
#include "renderer/RenderState.h"
|
|
|
|
#include "renderer/Renderer.h"
|
|
|
|
#include "renderer/Technique.h"
|
|
|
|
#include "renderer/Texture2D.h"
|
|
|
|
#include "renderer/TextureCube.h"
|
|
|
|
#include "renderer/TextureCache.h"
|
|
|
|
#include "renderer/TrianglesCommand.h"
|
|
|
|
#include "renderer/Shaders.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// physics
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "physics/PhysicsBody.h"
|
|
|
|
#include "physics/PhysicsContact.h"
|
|
|
|
#include "physics/PhysicsJoint.h"
|
|
|
|
#include "physics/PhysicsShape.h"
|
|
|
|
#include "physics/PhysicsWorld.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// platform
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "platform/Common.h"
|
|
|
|
#include "platform/Device.h"
|
|
|
|
#include "platform/FileUtils.h"
|
2023-09-02 19:56:50 +08:00
|
|
|
#include "platform/FileStream.h"
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "platform/Image.h"
|
|
|
|
#include "platform/PlatformConfig.h"
|
|
|
|
#include "platform/PlatformMacros.h"
|
|
|
|
#include "platform/SAXParser.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-16 10:43:05 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_IOS)
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "platform/ios/Application-ios.h"
|
|
|
|
# include "platform/ios/GLViewImpl-ios.h"
|
|
|
|
# include "platform/ios/StdC-ios.h"
|
2022-07-16 10:43:05 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_IOS
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-16 10:43:05 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_ANDROID)
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "platform/android/Application-android.h"
|
|
|
|
# include "platform/android/GLViewImpl-android.h"
|
|
|
|
# include "platform/android/GL-android.h"
|
|
|
|
# include "platform/android/StdC-android.h"
|
2021-12-25 10:04:45 +08:00
|
|
|
// Enhance modification begin
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "platform/android/EnhanceAPI-android.h"
|
2021-12-25 10:04:45 +08:00
|
|
|
// Enhance modification end
|
2022-07-16 10:43:05 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_ANDROID
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-16 10:43:05 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_WIN32)
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "platform/win32/Application-win32.h"
|
2023-09-07 19:32:06 +08:00
|
|
|
# include "platform/GLViewImpl.h"
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "platform/win32/GL-win32.h"
|
|
|
|
# include "platform/win32/StdC-win32.h"
|
2022-07-16 10:43:05 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_WIN32
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2023-03-11 22:10:18 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_WINRT)
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "platform/winrt/Application-winrt.h"
|
|
|
|
# include "platform/winrt/GLViewImpl-winrt.h"
|
|
|
|
# include "platform/winrt/GL-winrt.h"
|
|
|
|
# include "platform/winrt/StdC-winrt.h"
|
2023-03-11 22:10:18 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_WINRT
|
|
|
|
|
2022-07-16 10:43:05 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_MAC)
|
2023-09-07 19:32:06 +08:00
|
|
|
# include "platform/GLViewImpl.h"
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "platform/mac/Application-mac.h"
|
|
|
|
# include "platform/mac/StdC-mac.h"
|
2022-07-16 10:43:05 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_MAC
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-16 10:43:05 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_LINUX)
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "platform/linux/Application-linux.h"
|
2023-09-07 19:32:06 +08:00
|
|
|
# include "platform/GLViewImpl.h"
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "platform/linux/GL-linux.h"
|
|
|
|
# include "platform/linux/StdC-linux.h"
|
2022-07-16 10:43:05 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_LINUX
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2023-09-05 22:17:18 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_WASM)
|
|
|
|
#include "platform/wasm/Application-wasm.h"
|
2023-09-07 19:32:06 +08:00
|
|
|
#include "platform/GLViewImpl.h"
|
2023-09-05 22:17:18 +08:00
|
|
|
#include "platform/wasm/GL-wasm.h"
|
|
|
|
#include "platform/wasm/StdC-wasm.h"
|
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_WASM
|
2023-09-01 16:31:14 +08:00
|
|
|
|
2021-10-25 18:06:45 +08:00
|
|
|
// script_support
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "base/ScriptSupport.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// sprite_nodes
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "2d/Animation.h"
|
|
|
|
#include "2d/AnimationCache.h"
|
|
|
|
#include "2d/Sprite.h"
|
|
|
|
#include "2d/AnchoredSprite.h"
|
|
|
|
#include "2d/AutoPolygon.h"
|
|
|
|
#include "2d/SpriteBatchNode.h"
|
|
|
|
#include "2d/SpriteFrame.h"
|
|
|
|
#include "2d/SpriteFrameCache.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// text_input_node
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "2d/TextFieldTTF.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// textures
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "renderer/TextureAtlas.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// tilemap_parallax_nodes
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "2d/ParallaxNode.h"
|
|
|
|
#include "2d/TMXObjectGroup.h"
|
|
|
|
#include "2d/TMXXMLParser.h"
|
|
|
|
#include "2d/TileMapAtlas.h"
|
|
|
|
#include "2d/FastTMXLayer.h"
|
|
|
|
#include "2d/FastTMXTiledMap.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
|
|
|
// component
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "2d/Component.h"
|
|
|
|
#include "2d/ComponentContainer.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2021-12-25 10:04:45 +08:00
|
|
|
// 3d
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "3d/AABB.h"
|
|
|
|
#include "3d/Animate3D.h"
|
|
|
|
#include "3d/Animation3D.h"
|
|
|
|
#include "3d/AttachNode.h"
|
|
|
|
#include "3d/BillBoard.h"
|
|
|
|
#include "3d/Frustum.h"
|
|
|
|
#include "3d/Mesh.h"
|
|
|
|
#include "3d/MeshSkin.h"
|
|
|
|
#include "3d/MotionStreak3D.h"
|
|
|
|
#include "3d/MeshVertexIndexData.h"
|
|
|
|
#include "3d/OBB.h"
|
|
|
|
#include "3d/Plane.h"
|
|
|
|
#include "3d/Ray.h"
|
|
|
|
#include "3d/Skeleton3D.h"
|
|
|
|
#include "3d/Skybox.h"
|
|
|
|
#include "3d/MeshRenderer.h"
|
|
|
|
#include "3d/MeshMaterial.h"
|
|
|
|
#include "3d/Terrain.h"
|
|
|
|
#include "3d/VertexAttribBinding.h"
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
NS_AX_BEGIN
|
2021-10-25 18:06:45 +08:00
|
|
|
|
2022-10-01 16:24:52 +08:00
|
|
|
AX_DLL const char* axmolVersion();
|
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__
|