| 
									
										
										
										
											2018-10-03 22:02:46 +08:00
										 |  |  | // Copyright (c) 2016-2018 Easy2D - Nomango
 | 
					
						
							|  |  |  | // 
 | 
					
						
							|  |  |  | // 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.
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Website: https://www.easy2d.cn
 | 
					
						
							| 
									
										
										
										
											2019-02-07 21:31:30 +08:00
										 |  |  | // Source Code: https://github.com/easy2d/easy2d
 | 
					
						
							| 
									
										
										
										
											2018-10-03 22:02:46 +08:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2017-09-10 23:56:52 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-11 18:17:24 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-10 23:56:52 +08:00
										 |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-12 00:27:54 +08:00
										 |  |  | #include "macros.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-10 23:56:52 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-08 21:39:26 +08:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2019-03-14 17:55:06 +08:00
										 |  |  | // common
 | 
					
						
							| 
									
										
										
										
											2018-11-08 21:39:26 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-14 17:55:06 +08:00
										 |  |  | #include "common/Array.h"
 | 
					
						
							|  |  |  | #include "common/String.h"
 | 
					
						
							|  |  |  | #include "common/closure.hpp"
 | 
					
						
							|  |  |  | #include "common/IntrusiveList.hpp"
 | 
					
						
							|  |  |  | #include "common/IntrusivePtr.hpp"
 | 
					
						
							|  |  |  | #include "common/ComPtr.hpp"
 | 
					
						
							|  |  |  | #include "common/noncopyable.hpp"
 | 
					
						
							|  |  |  | #include "common/Singleton.hpp"
 | 
					
						
							|  |  |  | #include "common/helper.h"
 | 
					
						
							| 
									
										
										
										
											2018-11-08 21:39:26 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // math
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-20 23:47:56 +08:00
										 |  |  | #include "math/constants.hpp"
 | 
					
						
							| 
									
										
										
										
											2018-11-08 21:39:26 +08:00
										 |  |  | #include "math/scalar.hpp"
 | 
					
						
							| 
									
										
										
										
											2018-11-20 23:47:56 +08:00
										 |  |  | #include "math/ease.hpp"
 | 
					
						
							| 
									
										
										
										
											2019-03-14 17:55:06 +08:00
										 |  |  | #include "math/Vec2.hpp"
 | 
					
						
							| 
									
										
										
										
											2018-11-08 21:39:26 +08:00
										 |  |  | #include "math/rand.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-10 13:44:02 +08:00
										 |  |  | #include "math/Matrix.hpp"
 | 
					
						
							| 
									
										
										
										
											2018-11-08 21:39:26 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-14 17:55:06 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | // base
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "base/window.h"
 | 
					
						
							|  |  |  | #include "base/input.h"
 | 
					
						
							|  |  |  | #include "base/time.h"
 | 
					
						
							|  |  |  | #include "base/logs.h"
 | 
					
						
							|  |  |  | #include "renderer/render.h"
 | 
					
						
							|  |  |  | #include "platform/modules.h"
 | 
					
						
							|  |  |  | #include "platform/Application.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "base/Event.hpp"
 | 
					
						
							|  |  |  | #include "base/EventListener.h"
 | 
					
						
							|  |  |  | #include "base/EventDispatcher.h"
 | 
					
						
							|  |  |  | #include "base/Task.h"
 | 
					
						
							|  |  |  | #include "base/TaskManager.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "2d/Font.hpp"
 | 
					
						
							|  |  |  | #include "2d/Color.h"
 | 
					
						
							|  |  |  | #include "2d/Transform.hpp"
 | 
					
						
							|  |  |  | #include "2d/TextStyle.hpp"
 | 
					
						
							|  |  |  | #include "base/Resource.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "base/Object.h"
 | 
					
						
							|  |  |  | #include "2d/Image.h"
 | 
					
						
							|  |  |  | #include "2d/Frames.h"
 | 
					
						
							|  |  |  | #include "2d/Geometry.h"
 | 
					
						
							|  |  |  | #include "2d/Action.h"
 | 
					
						
							|  |  |  | #include "2d/ActionGroup.h"
 | 
					
						
							|  |  |  | #include "2d/ActionTween.h"
 | 
					
						
							|  |  |  | #include "2d/ActionHelper.h"
 | 
					
						
							|  |  |  | #include "2d/Animation.h"
 | 
					
						
							|  |  |  | #include "2d/ActionManager.h"
 | 
					
						
							|  |  |  | #include "2d/Transition.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "2d/Node.h"
 | 
					
						
							|  |  |  | #include "2d/Scene.h"
 | 
					
						
							|  |  |  | #include "2d/Layer.h"
 | 
					
						
							|  |  |  | #include "2d/Sprite.h"
 | 
					
						
							|  |  |  | #include "2d/Text.h"
 | 
					
						
							|  |  |  | #include "2d/Canvas.h"
 | 
					
						
							|  |  |  | #include "2d/GeometryNode.h"
 | 
					
						
							|  |  |  | #include "2d/DebugNode.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-08 21:39:26 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | // utils
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "utils/Path.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-18 15:00:58 +08:00
										 |  |  | #include "utils/DataUtil.h"
 | 
					
						
							| 
									
										
										
										
											2018-11-08 21:39:26 +08:00
										 |  |  | #include "utils/File.h"
 | 
					
						
							| 
									
										
										
										
											2019-01-22 21:58:01 +08:00
										 |  |  | #include "utils/ResLoader.h"
 | 
					
						
							| 
									
										
										
										
											2018-11-08 21:39:26 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // ui
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "ui/Button.h"
 | 
					
						
							|  |  |  | #include "ui/Menu.h"
 |