mirror of https://github.com/axmolengine/axmol.git
rename cocos2d to axmol (#920)
* rename cocos2d to axmol * rename cocos2d.h to axmol.h * Update Physics3DTest.cpp replace Sprite3D -> MeshRenderer
This commit is contained in:
parent
fb227f352f
commit
3ef8ac63f2
|
@ -220,7 +220,7 @@ void PlistSpriteSheetLoader::addSpriteFramesWithDictionary(ValueMap& dictionary,
|
|||
if (!ow || !oh)
|
||||
{
|
||||
AXLOGWARN(
|
||||
"cocos2d: WARNING: originalWidth/Height not found on the SpriteFrame. AnchorPoint won't work as "
|
||||
"axmol: WARNING: originalWidth/Height not found on the SpriteFrame. AnchorPoint won't work as "
|
||||
"expected. Regenerate the .plist");
|
||||
}
|
||||
// abs ow/oh
|
||||
|
|
|
@ -99,13 +99,13 @@ std::string Configuration::getInfo() const
|
|||
// And Dump some warnings as well
|
||||
#if AX_ENABLE_PROFILERS
|
||||
AXLOG(
|
||||
"cocos2d: **** WARNING **** AX_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from "
|
||||
"axmol: **** WARNING **** AX_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from "
|
||||
"ccConfig.h)\n");
|
||||
#endif
|
||||
|
||||
#if AX_ENABLE_GL_STATE_CACHE == 0
|
||||
AXLOG(
|
||||
"cocos2d: **** WARNING **** AX_ENABLE_GL_STATE_CACHE is disabled. To improve performance, enable it (from "
|
||||
"axmol: **** WARNING **** AX_ENABLE_GL_STATE_CACHE is disabled. To improve performance, enable it (from "
|
||||
"ccConfig.h)\n");
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "SimpleTimer.h"
|
||||
#include "yasio/detail/object_pool.hpp"
|
||||
#include "yasio/detail/ref_ptr.hpp"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
#define STIMER_DEFINE_REFERENCE_CLASS \
|
||||
private: \
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#ifndef _LAYOUTHELPER_H_
|
||||
# define _LAYOUTHELPER_H_
|
||||
|
||||
# include "cocos2d.h"
|
||||
# include "axmol.h"
|
||||
# include "base/ccMacros.h"
|
||||
|
||||
// f(x) = s * a + x
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "extensions/ExtensionExport.h"
|
||||
#include "2d/CCDrawNode.h"
|
||||
#include "box2d/box2d.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
NS_AX_EXT_BEGIN
|
||||
|
||||
|
@ -66,4 +66,4 @@ private:
|
|||
|
||||
NS_AX_EXT_END
|
||||
|
||||
#endif //__PHYSICSNODES_DEBUGNODE_BOX2D_H__
|
||||
#endif //__PHYSICSNODES_DEBUGNODE_BOX2D_H__
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "main.h"
|
||||
#include "AppDelegate.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
USING_NS_AX;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "ActionManagerTest.h"
|
||||
#include "../testResource.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
USING_NS_AX;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
|||
|
||||
#include "ActionsTest.h"
|
||||
#include "../testResource.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "ui/CocosGUI.h"
|
||||
|
||||
#include "renderer/CCRenderer.h"
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <string>
|
||||
#include "AppDelegate.h"
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "controller.h"
|
||||
// #include "extensions/cocostudio/CocoStudio.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#ifndef _APP_DELEGATE_H_
|
||||
#define _APP_DELEGATE_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
class TestController;
|
||||
/**
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#ifndef _CPPTESTS_BASETEST_H__
|
||||
#define _CPPTESTS_BASETEST_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "GUI/CCControlExtension/CCControlExtensions.h"
|
||||
#include "GUI/CCScrollView/CCScrollView.h"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#ifndef _BOX2D_TEST_H_
|
||||
#define _BOX2D_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "box2d/box2d.h"
|
||||
#include "../BaseTest.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
|
@ -62,4 +62,4 @@ private:
|
|||
bool showDebugDraw = true;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "platform/CCPlatformConfig.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "ImGui/ImGuiPresenter.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
#include "Box2DTestBed.h"
|
||||
#include "tests/test.h"
|
||||
|
@ -275,4 +275,4 @@ void Box2DTestBed::initPhysics()
|
|||
void Box2DTestBed::onDrawImGui()
|
||||
{
|
||||
m_test->UpdateUI();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _BOX2D_TESTBED_H_
|
||||
#define _BOX2D_TESTBED_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "box2d/box2d.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "tests/settings.h"
|
||||
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -503,4 +503,4 @@ void Test::DrawAABB(b2AABB* aabb, const b2Color& color)
|
|||
void Test::Flush()
|
||||
{
|
||||
// Flush is unsupported
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __QUESTION_CONTAINER_SPRITE_H__
|
||||
#define __QUESTION_CONTAINER_SPRITE_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
class QuestionContainerSprite : public axis::Sprite
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#ifndef __CHIPMUNKTEST_H__
|
||||
#define __CHIPMUNKTEST_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "chipmunk/chipmunk.h"
|
||||
#include "../BaseTest.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#ifndef __CHIPMUNKTESTBED_H__
|
||||
#define __CHIPMUNKTESTBED_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "chipmunk/chipmunk.h"
|
||||
#include "../BaseTest.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "ConfigurationTest.h"
|
||||
#include "../testResource.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
USING_NS_AX;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _CURL_TEST_H_
|
||||
#define _CURL_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(CurlTests);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _CURRENT_LANGUAGE_TEST_H_
|
||||
#define _CURRENT_LANGUAGE_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(CurrentLanguageTests);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
****************************************************************************/
|
||||
#pragma once
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
#include <string>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _EFFECT_ADVANCED_TEST_H_
|
||||
#define _EFFECT_ADVANCED_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(EffectAdvanceTests);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "AssetsManagerExTest.h"
|
||||
#include "../../testResource.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
USING_NS_AX;
|
||||
USING_NS_AX_EXT;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __CUSTOMTABELVIEWCELL_H__
|
||||
#define __CUSTOMTABELVIEWCELL_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "GUI/CCControlExtension/CCControlExtensions.h"
|
||||
#include "GUI/CCScrollView/CCScrollView.h"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __TABLEVIEWTESTSCENE_H__
|
||||
#define __TABLEVIEWTESTSCENE_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "BaseTest.h"
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _FONT_TEST_H_
|
||||
#define _FONT_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(FontTests);
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#ifndef _IMGUIEXT_TEST_H_
|
||||
#define _IMGUIEXT_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
#if defined(AX_PLATFORM_PC) || (AX_TARGET_PLATFORM == AX_PLATFORM_ANDROID)
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __MOUSE_TEST_H_
|
||||
#define __MOUSE_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(MouseTests);
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <spine/spine-cocos2dx.h>
|
||||
|
||||
#include "../testResource.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "ui/CocosGUI.h"
|
||||
|
||||
USING_NS_AX;
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#ifndef _MENU_TEST_H_
|
||||
#define _MENU_TEST_H_
|
||||
|
||||
////----#include "cocos2d.h"
|
||||
////----#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(MenuTests);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#ifndef __DRAW_NODE_3D_H__
|
||||
#define __DRAW_NODE_3D_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
NS_AX_BEGIN
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __HTTP_CLIENT_H__
|
||||
#define __HTTP_CLIENT_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "network/HttpClient.h"
|
||||
#include "BaseTest.h"
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#ifndef __NEWAUDIOENGINE_TEST_H_
|
||||
# define __NEWAUDIOENGINE_TEST_H_
|
||||
|
||||
# include "cocos2d.h"
|
||||
# include "axmol.h"
|
||||
# include "../BaseTest.h"
|
||||
|
||||
# include "audio/AudioEngine.h"
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#ifndef __samples__NewEventDispatcherTest__
|
||||
#define __samples__NewEventDispatcherTest__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(EventDispatcherTests);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __NewRendererTest_H_
|
||||
#define __NewRendererTest_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
#define kTagSpriteBatchNode 100
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#ifndef _NODE_TEST_H_
|
||||
#define _NODE_TEST_H_
|
||||
|
||||
////----#include "cocos2d.h"
|
||||
////----#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(CocosNodeTests);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _OPEN_URL_TEST_H_
|
||||
#define _OPEN_URL_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(OpenURLTests);
|
||||
|
|
|
@ -325,10 +325,10 @@ bool Physics3DKinematicDemo::init()
|
|||
rbDes.shape = Physics3DShape::createMesh(&trianglesList[0], (int)trianglesList.size() / 3);
|
||||
auto rigidBody = Physics3DRigidBody::create(&rbDes);
|
||||
auto component = Physics3DComponent::create(rigidBody);
|
||||
auto sprite = Sprite3D::create(tree1);
|
||||
auto sprite = MeshRenderer::create(tree1);
|
||||
sprite->addComponent(component);
|
||||
static_cast<Sprite3D*>(sprite->getChildren().at(1))->getMaterial(0)->setTransparent(true);
|
||||
static_cast<Sprite3D*>(sprite->getChildren().at(1))->getMaterial(0)->getStateBlock().setCullFaceSide(CullFaceSide::NONE);
|
||||
static_cast<MeshRenderer*>(sprite->getChildren().at(1))->getMaterial(0)->setTransparent(true);
|
||||
static_cast<MeshRenderer*>(sprite->getChildren().at(1))->getMaterial(0)->getStateBlock().setCullFaceSide(CullFaceSide::NONE);
|
||||
sprite->setCameraMask((unsigned short)CameraFlag::USER1 | (unsigned short)CameraFlag::USER2 | (unsigned short)CameraFlag::USER3);
|
||||
sprite->setPosition3D(Vec3(20.0f, 0.0f, 0.0f));
|
||||
sprite->setScale(scale);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _RENDERTEXTURE_TEST_H_
|
||||
#define _RENDERTEXTURE_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "renderer/backend/DepthStencilState.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _SCENE_TEST_H_
|
||||
#define _SCENE_TEST_H_
|
||||
|
||||
////----#include "cocos2d.h"
|
||||
////----#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(SceneTests);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _SCHEDULER_TEST_H_
|
||||
#define _SCHEDULER_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "ShaderTest.h"
|
||||
#include "../testResource.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "renderer/ccShaders.h"
|
||||
#include "renderer/backend/Device.h"
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "ShaderTest2.h"
|
||||
#include "ShaderTest.h"
|
||||
#include "../testResource.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "renderer/backend/Device.h"
|
||||
#include <tuple>
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#ifndef _SPINETEST_H_
|
||||
#define _SPINETEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
#include <spine/spine-cocos2dx.h>
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(SpriteFrameCacheTests);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#ifndef _SPRITE_TEST_H_
|
||||
#define _SPRITE_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _TEXTURECACHE_TEST_H_
|
||||
#define _TEXTURECACHE_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(TextureCacheTests);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _TextureAtlasEncryption_TEST_H_
|
||||
#define _TextureAtlasEncryption_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _BALL_H_
|
||||
#define _BALL_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
class Paddle;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _PADDLE_H_
|
||||
#define _PADDLE_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
typedef enum tagPaddleState
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "UIPageViewTest.h"
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
USING_NS_AX;
|
||||
using namespace ax::ui;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#ifndef __TestCpp__UIScene__
|
||||
#define __TestCpp__UIScene__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "ui/CocosGUI.h"
|
||||
#include "BaseTest.h"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _USERDEFAULT_TEST_H_
|
||||
#define _USERDEFAULT_TEST_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "../BaseTest.h"
|
||||
#include "2d/CCLabel.h"
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#ifndef __VIBRATE_TEST_H_
|
||||
# define __VIBRATE_TEST_H_
|
||||
|
||||
# include "cocos2d.h"
|
||||
# include "axmol.h"
|
||||
# include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(VibrateTests);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __VISIBLERECT_H__
|
||||
#define __VISIBLERECT_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
|
||||
class VisibleRect
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _TEST_BASIC_H_
|
||||
#define _TEST_BASIC_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "axmol.h"
|
||||
#include "VisibleRect.h"
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue