2019-04-11 14:40:54 +08:00
|
|
|
// Copyright (c) 2016-2018 Kiwano - Nomango
|
2020-01-21 10:09:55 +08:00
|
|
|
//
|
2019-03-31 01:37:06 +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:
|
2020-01-21 10:09:55 +08:00
|
|
|
//
|
2019-03-31 01:37:06 +08:00
|
|
|
// The above copyright notice and this permission notice shall be included in
|
|
|
|
|
// all copies or substantial portions of the Software.
|
2020-01-21 10:09:55 +08:00
|
|
|
//
|
2019-03-31 01:37:06 +08:00
|
|
|
// 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.
|
|
|
|
|
//
|
2019-08-13 14:44:37 +08:00
|
|
|
// Website: https://www.kiwanoengine.com
|
|
|
|
|
// Source Code: https://github.com/KiwanoEngine/Kiwano
|
2019-03-31 01:37:06 +08:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-10-11 21:55:29 +08:00
|
|
|
#include <kiwano/macros.h>
|
2019-03-31 01:37:06 +08:00
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// math
|
|
|
|
|
//
|
|
|
|
|
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/math/Vec2.hpp>
|
2020-02-06 16:54:47 +08:00
|
|
|
#include <kiwano/math/Rect.hpp>
|
|
|
|
|
#include <kiwano/math/Matrix.hpp>
|
|
|
|
|
#include <kiwano/math/Transform.hpp>
|
|
|
|
|
#include <kiwano/math/Constants.h>
|
|
|
|
|
#include <kiwano/math/EaseFunctions.h>
|
|
|
|
|
#include <kiwano/math/Random.h>
|
|
|
|
|
#include <kiwano/math/Scalar.h>
|
2019-03-31 01:37:06 +08:00
|
|
|
|
2019-08-16 00:50:54 +08:00
|
|
|
//
|
2019-11-13 14:33:15 +08:00
|
|
|
// core
|
2019-08-16 00:50:54 +08:00
|
|
|
//
|
2019-08-13 14:44:37 +08:00
|
|
|
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/core/AsyncTask.h>
|
2020-01-17 16:55:47 +08:00
|
|
|
#include <kiwano/core/Common.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/core/Director.h>
|
|
|
|
|
#include <kiwano/core/EventDispatcher.h>
|
|
|
|
|
#include <kiwano/core/EventListener.h>
|
2019-11-13 14:33:15 +08:00
|
|
|
#include <kiwano/core/Logger.h>
|
|
|
|
|
#include <kiwano/core/ObjectBase.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/core/Resource.h>
|
|
|
|
|
#include <kiwano/core/SmartPtr.hpp>
|
|
|
|
|
#include <kiwano/core/Time.h>
|
|
|
|
|
#include <kiwano/core/Timer.h>
|
|
|
|
|
#include <kiwano/core/TimerManager.h>
|
2019-12-31 11:22:23 +08:00
|
|
|
#include <kiwano/core/event/Event.h>
|
|
|
|
|
#include <kiwano/core/event/KeyEvent.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/core/event/MouseEvent.h>
|
2019-12-31 11:22:23 +08:00
|
|
|
#include <kiwano/core/event/WindowEvent.h>
|
2019-08-16 00:50:54 +08:00
|
|
|
|
2019-12-23 18:05:08 +08:00
|
|
|
//
|
|
|
|
|
// renderer
|
|
|
|
|
//
|
|
|
|
|
|
2020-01-17 16:55:47 +08:00
|
|
|
#include <kiwano/render/Color.h>
|
|
|
|
|
#include <kiwano/render/Font.h>
|
2020-02-05 19:56:22 +08:00
|
|
|
#include <kiwano/render/Shape.h>
|
|
|
|
|
#include <kiwano/render/ShapeSink.h>
|
|
|
|
|
#include <kiwano/render/Texture.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/render/GifImage.h>
|
2020-02-10 18:03:35 +08:00
|
|
|
#include <kiwano/render/Layer.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/render/TextLayout.h>
|
|
|
|
|
#include <kiwano/render/TextureCache.h>
|
2020-02-05 19:56:22 +08:00
|
|
|
#include <kiwano/render/Renderer.h>
|
2019-12-23 18:05:08 +08:00
|
|
|
|
2019-08-16 00:50:54 +08:00
|
|
|
//
|
|
|
|
|
// 2d
|
|
|
|
|
//
|
|
|
|
|
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/2d/Actor.h>
|
|
|
|
|
#include <kiwano/2d/Button.h>
|
|
|
|
|
#include <kiwano/2d/Canvas.h>
|
|
|
|
|
#include <kiwano/2d/DebugActor.h>
|
2019-10-11 21:55:29 +08:00
|
|
|
#include <kiwano/2d/Frame.h>
|
|
|
|
|
#include <kiwano/2d/FrameSequence.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/2d/GifSprite.h>
|
2020-02-10 18:03:35 +08:00
|
|
|
#include <kiwano/2d/LayerActor.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/2d/ShapeActor.h>
|
|
|
|
|
#include <kiwano/2d/Sprite.h>
|
|
|
|
|
#include <kiwano/2d/Stage.h>
|
|
|
|
|
#include <kiwano/2d/TextActor.h>
|
|
|
|
|
#include <kiwano/2d/Transition.h>
|
2019-10-11 21:55:29 +08:00
|
|
|
#include <kiwano/2d/action/Action.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/2d/action/ActionDelay.h>
|
2019-10-11 21:55:29 +08:00
|
|
|
#include <kiwano/2d/action/ActionGroup.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/2d/action/ActionHelper.h>
|
|
|
|
|
#include <kiwano/2d/action/ActionManager.h>
|
2019-10-11 21:55:29 +08:00
|
|
|
#include <kiwano/2d/action/ActionTween.h>
|
|
|
|
|
#include <kiwano/2d/action/ActionWalk.h>
|
|
|
|
|
#include <kiwano/2d/action/Animation.h>
|
2019-08-16 00:50:54 +08:00
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// platform
|
|
|
|
|
//
|
|
|
|
|
|
2020-02-14 22:01:56 +08:00
|
|
|
#include <kiwano/platform/Window.h>
|
|
|
|
|
#include <kiwano/platform/Runner.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/platform/Application.h>
|
2019-11-13 14:33:15 +08:00
|
|
|
#include <kiwano/platform/FileSystem.h>
|
|
|
|
|
#include <kiwano/platform/Input.h>
|
2019-08-16 00:50:54 +08:00
|
|
|
|
2019-03-31 01:37:06 +08:00
|
|
|
//
|
|
|
|
|
// utils
|
|
|
|
|
//
|
|
|
|
|
|
2019-10-11 21:55:29 +08:00
|
|
|
#include <kiwano/utils/LocalStorage.h>
|
|
|
|
|
#include <kiwano/utils/ResourceCache.h>
|
2020-01-21 10:09:55 +08:00
|
|
|
#include <kiwano/utils/UserData.h>
|