add axmol_ext.h (#1117)

This commit is contained in:
aismann 2023-03-14 00:56:07 +01:00 committed by GitHub
parent 4608ecf8de
commit 7f1d61185f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 77 additions and 46 deletions

View File

@ -22,8 +22,8 @@
THE SOFTWARE. THE SOFTWARE.
****************************************************************************/ ****************************************************************************/
#ifndef __CCEXTENSIONEXPORT_H__ #ifndef __EXTENSIONEXPORT_H__
#define __CCEXTENSIONEXPORT_H__ #define __EXTENSIONEXPORT_H__
#if (defined(WIN32) && defined(_WINDOWS)) || defined(WINRT) || defined(WP8) #if (defined(WIN32) && defined(_WINDOWS)) || defined(WINRT) || defined(WP8)
# ifdef __MINGW32__ # ifdef __MINGW32__
@ -54,4 +54,4 @@
# define AX_EX_DLL # define AX_EX_DLL
#endif #endif
#endif /* __CCEXTENSIONEXPORT_H__*/ #endif /* __EXTENSIONEXPORT_H__*/

49
extensions/axmol-ext.h Normal file
View File

@ -0,0 +1,49 @@
/****************************************************************************
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
https://axmolengine.github.io/
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.
****************************************************************************/
#ifndef __AXMOL_EXT_H__
#define __AXMOL_EXT_H__
#include "ExtensionMacros.h"
// Physics integration
#include "physics-nodes/CCPhysicsDebugNode.h"
#include "physics-nodes/CCPhysicsDebugNodeBox2D.h"
#include "physics-nodes/CCPhysicsDebugNodeChipmunk2D.h"
#include "physics-nodes/CCPhysicsSprite.h"
#include "physics-nodes/CCPhysicsSpriteBox2D.h"
#include "physics-nodes/CCPhysicsSpriteChipmunk2D.h"
#include "assets-manager/AssetsManager.h"
#include "assets-manager/AssetsManagerEx.h"
#include "assets-manager/CCEventAssetsManagerEx.h"
#include "assets-manager/CCEventListenerAssetsManagerEx.h"
#include "assets-manager/Manifest.h"
// Particle System, include Particle Universe Particle System
#include "Particle3D/CCParticle3DRender.h"
#include "Particle3D/CCParticleSystem3D.h"
#include "Particle3D/PU/CCPUParticleSystem3D.h"
#endif /* __AXMOL_EXT_H__ */

View File

@ -25,25 +25,6 @@
#ifndef __COCOS2D_EXT_H__ #ifndef __COCOS2D_EXT_H__
#define __COCOS2D_EXT_H__ #define __COCOS2D_EXT_H__
#include "ExtensionMacros.h" #include "axmol-ext.h"
// Physics integration
#include "physics-nodes/CCPhysicsDebugNode.h"
#include "physics-nodes/CCPhysicsDebugNodeBox2D.h"
#include "physics-nodes/CCPhysicsDebugNodeChipmunk2D.h"
#include "physics-nodes/CCPhysicsSprite.h"
#include "physics-nodes/CCPhysicsSpriteBox2D.h"
#include "physics-nodes/CCPhysicsSpriteChipmunk2D.h"
#include "assets-manager/AssetsManager.h"
#include "assets-manager/AssetsManagerEx.h"
#include "assets-manager/CCEventAssetsManagerEx.h"
#include "assets-manager/CCEventListenerAssetsManagerEx.h"
#include "assets-manager/Manifest.h"
// Particle System, include Particle Universe Particle System
#include "Particle3D/CCParticle3DRender.h"
#include "Particle3D/CCParticleSystem3D.h"
#include "Particle3D/PU/CCPUParticleSystem3D.h"
#endif /* __COCOS2D_EXT_H__ */ #endif /* __COCOS2D_EXT_H__ */

View File

@ -1,5 +1,5 @@
#include "scripting/lua-bindings/auto/axlua_extension_auto.hpp" #include "scripting/lua-bindings/auto/axlua_extension_auto.hpp"
#include "cocos-ext.h" #include "axmol-ext.h"
#include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/tolua_fix.h"
#include "scripting/lua-bindings/manual/LuaBasicConversions.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h"

View File

@ -28,7 +28,7 @@
#include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/tolua_fix.h"
#include "scripting/lua-bindings/manual/LuaBasicConversions.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h"
#include "scripting/lua-bindings/manual/CCLuaValue.h" #include "scripting/lua-bindings/manual/CCLuaValue.h"
#include "cocos-ext.h" #include "axmol-ext.h"
#include "scripting/lua-bindings/manual/CCLuaEngine.h" #include "scripting/lua-bindings/manual/CCLuaEngine.h"
#include "scripting/lua-bindings/manual/base/LuaScriptHandlerMgr.h" #include "scripting/lua-bindings/manual/base/LuaScriptHandlerMgr.h"

View File

@ -30,7 +30,7 @@
#include "axmol.h" #include "axmol.h"
#include "controller.h" #include "controller.h"
#include "BaseTest.h" #include "BaseTest.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
USING_NS_AX; USING_NS_AX;

View File

@ -27,7 +27,7 @@
#define _CPPTESTS_BASETEST_H__ #define _CPPTESTS_BASETEST_H__
#include "axmol.h" #include "axmol.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "GUI/CCControlExtension/CCControlExtensions.h" #include "GUI/CCControlExtension/CCControlExtensions.h"
#include "GUI/CCScrollView/CCScrollView.h" #include "GUI/CCScrollView/CCScrollView.h"
#include "GUI/CCScrollView/CCTableView.h" #include "GUI/CCScrollView/CCTableView.h"

View File

@ -25,7 +25,7 @@
#include "Box2dTest.h" #include "Box2dTest.h"
#include "../testResource.h" #include "../testResource.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "renderer/CCRenderer.h" #include "renderer/CCRenderer.h"
#include "renderer/CCCustomCommand.h" #include "renderer/CCCustomCommand.h"

View File

@ -29,7 +29,7 @@
#include "axmol.h" #include "axmol.h"
#include "box2d/box2d.h" #include "box2d/box2d.h"
#include "../BaseTest.h" #include "../BaseTest.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
DEFINE_TEST_SUITE(Box2DTests); DEFINE_TEST_SUITE(Box2DTests);

View File

@ -23,7 +23,7 @@
****************************************************************************/ ****************************************************************************/
#include "platform/CCPlatformConfig.h" #include "platform/CCPlatformConfig.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "ImGui/ImGuiPresenter.h" #include "ImGui/ImGuiPresenter.h"
#include "axmol.h" #include "axmol.h"

View File

@ -19,7 +19,7 @@
#include "tests/test.h" #include "tests/test.h"
#include "tests/settings.h" #include "tests/settings.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "axmol.h" #include "axmol.h"
#include <stdio.h> #include <stdio.h>

View File

@ -22,7 +22,7 @@
// SOFTWARE. // SOFTWARE.
#include "test.h" #include "test.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
USING_NS_AX_EXT; USING_NS_AX_EXT;

View File

@ -20,7 +20,7 @@
#define TEST_H #define TEST_H
#include "box2d/box2d.h" #include "box2d/box2d.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include <cstdlib> #include <cstdlib>

View File

@ -32,7 +32,7 @@
#include "axmol.h" #include "axmol.h"
#include "chipmunk/chipmunk.h" #include "chipmunk/chipmunk.h"
#include "../BaseTest.h" #include "../BaseTest.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
class ChipmunkTest : public TestCase class ChipmunkTest : public TestCase
{ {
@ -58,6 +58,7 @@ private:
cpSpace* _space; // strong ref cpSpace* _space; // strong ref
cpShape* _walls[4]; cpShape* _walls[4];
ax::DrawNode* drawNode;
}; };
DEFINE_TEST_SUITE(ChipmunkTests); DEFINE_TEST_SUITE(ChipmunkTests);

View File

@ -29,7 +29,7 @@
#include "axmol.h" #include "axmol.h"
#include "chipmunk/chipmunk.h" #include "chipmunk/chipmunk.h"
#include "../BaseTest.h" #include "../BaseTest.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "demo/ChipmunkDemo.h" #include "demo/ChipmunkDemo.h"

View File

@ -25,7 +25,7 @@
#ifndef __AssetsManagerEx_Test_H__ #ifndef __AssetsManagerEx_Test_H__
#define __AssetsManagerEx_Test_H__ #define __AssetsManagerEx_Test_H__
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "../../BaseTest.h" #include "../../BaseTest.h"
DEFINE_TEST_SUITE(AssetsManagerExTests); DEFINE_TEST_SUITE(AssetsManagerExTests);

View File

@ -26,7 +26,7 @@
#define __CUSTOMTABELVIEWCELL_H__ #define __CUSTOMTABELVIEWCELL_H__
#include "axmol.h" #include "axmol.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "GUI/CCControlExtension/CCControlExtensions.h" #include "GUI/CCControlExtension/CCControlExtensions.h"
#include "GUI/CCScrollView/CCScrollView.h" #include "GUI/CCScrollView/CCScrollView.h"
#include "GUI/CCScrollView/CCTableView.h" #include "GUI/CCScrollView/CCTableView.h"

View File

@ -26,7 +26,7 @@
#define __TABLEVIEWTESTSCENE_H__ #define __TABLEVIEWTESTSCENE_H__
#include "axmol.h" #include "axmol.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "BaseTest.h" #include "BaseTest.h"
DEFINE_TEST_SUITE(TableViewTests); DEFINE_TEST_SUITE(TableViewTests);

View File

@ -28,7 +28,7 @@
#include "../BaseTest.h" #include "../BaseTest.h"
#include "renderer/CCCustomCommand.h" #include "renderer/CCCustomCommand.h"
#include "ui/CocosGUI.h" #include "ui/CocosGUI.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "cocostudio/LocalizationManager.h" #include "cocostudio/LocalizationManager.h"
DEFINE_TEST_SUITE(NewLabelTests); DEFINE_TEST_SUITE(NewLabelTests);

View File

@ -26,7 +26,7 @@
#define __HTTP_CLIENT_H__ #define __HTTP_CLIENT_H__
#include "axmol.h" #include "axmol.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "network/HttpClient.h" #include "network/HttpClient.h"
#include "BaseTest.h" #include "BaseTest.h"

View File

@ -26,7 +26,7 @@
#define _SCHEDULER_TEST_H_ #define _SCHEDULER_TEST_H_
#include "axmol.h" #include "axmol.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "../BaseTest.h" #include "../BaseTest.h"
DEFINE_TEST_SUITE(SchedulerTests); DEFINE_TEST_SUITE(SchedulerTests);

View File

@ -26,7 +26,7 @@
#include "ui/CocosGUI.h" #include "ui/CocosGUI.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "../BaseTest.h" #include "../BaseTest.h"
DEFINE_TEST_SUITE(ShaderTests); DEFINE_TEST_SUITE(ShaderTests);

View File

@ -25,7 +25,7 @@
#ifndef _SHADER_TEST2_H_ #ifndef _SHADER_TEST2_H_
#define _SHADER_TEST2_H_ #define _SHADER_TEST2_H_
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "../BaseTest.h" #include "../BaseTest.h"
DEFINE_TEST_SUITE(Shader2Tests); DEFINE_TEST_SUITE(Shader2Tests);

View File

@ -22,7 +22,7 @@
THE SOFTWARE. THE SOFTWARE.
****************************************************************************/ ****************************************************************************/
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "UIScene.h" #include "UIScene.h"
#include "UISceneManager.h" #include "UISceneManager.h"
#include "cocostudio/CCSGUIReader.h" #include "cocostudio/CCSGUIReader.h"

View File

@ -27,7 +27,7 @@
#define __TestCpp__UIScene__ #define __TestCpp__UIScene__
#include "axmol.h" #include "axmol.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#include "ui/CocosGUI.h" #include "ui/CocosGUI.h"
#include "BaseTest.h" #include "BaseTest.h"

View File

@ -27,7 +27,7 @@
#include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/tolua_fix.h"
#include "cocos2d.h" #include "cocos2d.h"
#include "extensions/cocos-ext.h" #include "extensions/axmol-ext.h"
#if !defined(_WIN32) #if !defined(_WIN32)
# include <dirent.h> # include <dirent.h>