| 
									
										
										
										
											2019-04-11 14:40:54 +08:00
										 |  |  | // Copyright (c) 2016-2018 Kiwano - Nomango
 | 
					
						
							| 
									
										
										
										
											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:
 | 
					
						
							|  |  |  | // 
 | 
					
						
							|  |  |  | // 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.
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											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
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "macros.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2019-08-13 21:16:38 +08:00
										 |  |  | // core
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-13 21:16:38 +08:00
										 |  |  | #include "core/vector.hpp"
 | 
					
						
							|  |  |  | #include "core/string.hpp"
 | 
					
						
							|  |  |  | #include "core/core.h"
 | 
					
						
							|  |  |  | #include "core/Function.hpp"
 | 
					
						
							|  |  |  | #include "core/intrusive_list.hpp"
 | 
					
						
							|  |  |  | #include "core/intrusive_ptr.hpp"
 | 
					
						
							|  |  |  | #include "core/noncopyable.hpp"
 | 
					
						
							|  |  |  | #include "core/singleton.hpp"
 | 
					
						
							|  |  |  | #include "core/basic_json.hpp"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // math
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "math/constants.hpp"
 | 
					
						
							|  |  |  | #include "math/scalar.hpp"
 | 
					
						
							|  |  |  | #include "math/ease.hpp"
 | 
					
						
							|  |  |  | #include "math/Vec2.hpp"
 | 
					
						
							|  |  |  | #include "math/rand.h"
 | 
					
						
							|  |  |  | #include "math/Matrix.hpp"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2019-08-16 00:50:54 +08:00
										 |  |  | // renderer
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-13 14:44:37 +08:00
										 |  |  | #include "renderer/Image.h"
 | 
					
						
							|  |  |  | #include "renderer/GifImage.h"
 | 
					
						
							| 
									
										
										
										
											2019-08-16 00:50:54 +08:00
										 |  |  | #include "renderer/TextLayout.h"
 | 
					
						
							|  |  |  | #include "renderer/TextRenderer.h"
 | 
					
						
							|  |  |  | #include "renderer/Geometry.h"
 | 
					
						
							|  |  |  | #include "renderer/ImageCache.h"
 | 
					
						
							|  |  |  | #include "renderer/RenderTarget.h"
 | 
					
						
							|  |  |  | #include "renderer/Renderer.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // base
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2019-08-13 14:44:37 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-12 14:51:54 +08:00
										 |  |  | #include "base/time.h"
 | 
					
						
							| 
									
										
										
										
											2019-08-14 21:52:49 +08:00
										 |  |  | #include "base/Window.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | #include "base/input.h"
 | 
					
						
							| 
									
										
										
										
											2019-08-12 18:30:42 +08:00
										 |  |  | #include "base/Director.h"
 | 
					
						
							| 
									
										
										
										
											2019-08-14 21:52:49 +08:00
										 |  |  | #include "base/Logger.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-13 21:16:38 +08:00
										 |  |  | #include "base/SmartPtr.hpp"
 | 
					
						
							|  |  |  | #include "base/ComPtr.hpp"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-14 22:37:05 +08:00
										 |  |  | #include "base/Object.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | #include "base/Event.hpp"
 | 
					
						
							|  |  |  | #include "base/EventListener.h"
 | 
					
						
							|  |  |  | #include "base/EventDispatcher.h"
 | 
					
						
							|  |  |  | #include "base/Timer.h"
 | 
					
						
							|  |  |  | #include "base/TimerManager.h"
 | 
					
						
							|  |  |  | #include "base/AsyncTask.h"
 | 
					
						
							| 
									
										
										
										
											2019-04-14 22:37:05 +08:00
										 |  |  | #include "base/Resource.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-16 00:50:54 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // 2d
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | #include "2d/Font.hpp"
 | 
					
						
							|  |  |  | #include "2d/Color.h"
 | 
					
						
							|  |  |  | #include "2d/Transform.hpp"
 | 
					
						
							|  |  |  | #include "2d/TextStyle.hpp"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-13 14:44:37 +08:00
										 |  |  | #include "2d/Frame.h"
 | 
					
						
							|  |  |  | #include "2d/FrameSequence.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "2d/action/Action.h"
 | 
					
						
							|  |  |  | #include "2d/action/ActionGroup.h"
 | 
					
						
							|  |  |  | #include "2d/action/ActionTween.h"
 | 
					
						
							| 
									
										
										
										
											2019-08-14 21:38:37 +08:00
										 |  |  | #include "2d/action/ActionWalk.h"
 | 
					
						
							|  |  |  | #include "2d/action/ActionDelay.h"
 | 
					
						
							| 
									
										
										
										
											2019-08-13 14:44:37 +08:00
										 |  |  | #include "2d/action/Animation.h"
 | 
					
						
							|  |  |  | #include "2d/action/ActionHelper.h"
 | 
					
						
							|  |  |  | #include "2d/action/ActionManager.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | #include "2d/Transition.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-12 18:30:42 +08:00
										 |  |  | #include "2d/Actor.h"
 | 
					
						
							|  |  |  | #include "2d/Stage.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | #include "2d/Layer.h"
 | 
					
						
							|  |  |  | #include "2d/Sprite.h"
 | 
					
						
							| 
									
										
										
										
											2019-07-31 16:22:33 +08:00
										 |  |  | #include "2d/GifSprite.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | #include "2d/Text.h"
 | 
					
						
							|  |  |  | #include "2d/Canvas.h"
 | 
					
						
							| 
									
										
										
										
											2019-08-13 23:21:20 +08:00
										 |  |  | #include "2d/ShapeActor.h"
 | 
					
						
							|  |  |  | #include "2d/DebugActor.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-16 00:50:54 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // platform
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-13 14:44:37 +08:00
										 |  |  | #include "platform/modules.h"
 | 
					
						
							|  |  |  | #include "platform/Application.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-16 00:50:54 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | // utils
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "utils/Path.h"
 | 
					
						
							|  |  |  | #include "utils/DataUtil.h"
 | 
					
						
							| 
									
										
										
										
											2019-07-29 14:48:17 +08:00
										 |  |  | #include "utils/FileUtil.h"
 | 
					
						
							| 
									
										
										
										
											2019-08-13 14:44:37 +08:00
										 |  |  | #include "utils/ResourceCache.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-31 01:37:06 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // ui
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "ui/Button.h"
 | 
					
						
							|  |  |  | #include "ui/Menu.h"
 |