mirror of https://github.com/axmolengine/axmol.git
Sync docs for namespace migrate
This commit is contained in:
parent
a402a80ad7
commit
05805987d5
|
@ -8,6 +8,7 @@ on:
|
|||
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- docs/**/*
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
GH_OS_NAME: linux
|
||||
|
|
|
@ -8,6 +8,7 @@ on:
|
|||
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- docs/**/*
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
GH_OS_NAME: osx
|
||||
|
|
|
@ -8,6 +8,7 @@ on:
|
|||
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- docs/**/*
|
||||
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
|
|
|
@ -8,6 +8,7 @@ on:
|
|||
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- docs/**/*
|
||||
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
|
|
|
@ -4,6 +4,7 @@ on:
|
|||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- docs/**/*
|
||||
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
|
|
|
@ -8,6 +8,7 @@ on:
|
|||
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- docs/**/*
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
|
@ -346,7 +346,7 @@ Namespaces wrap the entire source file after includes, gflags definitions/declar
|
|||
```cpp
|
||||
// In the .h file
|
||||
// When using the cocos2d namespace
|
||||
NS_CC_BEGIN
|
||||
NS_AX_BEGIN
|
||||
|
||||
// All declarations are within the namespace scope.
|
||||
// Notice the lack of indentation.
|
||||
|
@ -357,7 +357,7 @@ public:
|
|||
void foo();
|
||||
};
|
||||
|
||||
NS_CC_END
|
||||
NS_AX_END
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -2003,15 +2003,15 @@ PREDEFINED = "CC_PROPERTY_READONLY(varType, varName, funName)=protec
|
|||
"CC_SYNTHESIZE_RETAIN(varType, varName, funName)=protected: varType varName;\n /** get##funName */\n public: virtual varType get##funName(void);\n /** set##funName */\n public: virtual void set##funName(varType var);" \
|
||||
"CC_SYNTHESIZE_READONLY(varType, varName, funName)=protected: varType varName;\n /** get##funName */\n public: virtual varType get##funName(void);" \
|
||||
"CC_SYNTHESIZE_READONLY_PASS_BY_REF(varType, varName, funName)=protected: varType varName;\n /** get##funName */ \n public: virtual const varType& get##funName(void);" \
|
||||
"NS_CC_BEGIN=namespace cocos2d {" \
|
||||
"NS_CC_END=}" \
|
||||
"NS_CC_MATH_BEGIN=namespace cocos2d {" \
|
||||
"NS_CC_MATH_END=}" \
|
||||
"USING_NS_CC=using namespace cocos2d" \
|
||||
"USING_NS_CC_MATH=using namespace cocos2d" \
|
||||
"NS_CC_EXT_BEGIN=namespace cocos2d { namespace extension {" \
|
||||
"NS_CC_EXT_END=}}" \
|
||||
"USING_NS_CC_EXT=using namespace cocos2d::extension" \
|
||||
"NS_AX_BEGIN=namespace axis {" \
|
||||
"NS_AX_END=}" \
|
||||
"NS_AX_MATH_BEGIN=namespace axis {" \
|
||||
"NS_AX_MATH_END=}" \
|
||||
"USING_NS_CC=using namespace axis" \
|
||||
"USING_NS_AX_MATH=using namespace axis" \
|
||||
"NS_AX_EXT_BEGIN=namespace axis { namespace extension {" \
|
||||
"NS_AX_EXT_END=}}" \
|
||||
"USING_NS_AX_EXT=using namespace axis::extension" \
|
||||
"CC_USE_PHYSICS" \
|
||||
"CC_DEPRECATED_ATTRIBUTE" \
|
||||
"CC_CONSTRUCTOR_ACCESS=protected" \
|
||||
|
|
|
@ -2023,15 +2023,15 @@ PREDEFINED = "CC_PROPERTY_READONLY(varType, varName, funName)=protec
|
|||
"CC_SYNTHESIZE_RETAIN(varType, varName, funName)=protected: varType varName;\n /** get##funName */\n public: virtual varType get##funName(void);\n /** set##funName */\n public: virtual void set##funName(varType var);" \
|
||||
"CC_SYNTHESIZE_READONLY(varType, varName, funName)=protected: varType varName;\n /** get##funName */\n public: virtual varType get##funName(void);" \
|
||||
"CC_SYNTHESIZE_READONLY_PASS_BY_REF(varType, varName, funName)=protected: varType varName;\n /** get##funName */ \n public: virtual const varType& get##funName(void);" \
|
||||
"NS_CC_BEGIN=namespace cocos2d {" \
|
||||
"NS_CC_END=}" \
|
||||
"NS_CC_MATH_BEGIN=namespace cocos2d {" \
|
||||
"NS_CC_MATH_END=}" \
|
||||
"USING_NS_CC=using namespace cocos2d" \
|
||||
"USING_NS_CC_MATH=using namespace cocos2d" \
|
||||
"NS_CC_EXT_BEGIN=namespace cocos2d { namespace extension {" \
|
||||
"NS_CC_EXT_END=}}" \
|
||||
"USING_NS_CC_EXT=using namespace cocos2d::extension" \
|
||||
"NS_AX_BEGIN=namespace axis {" \
|
||||
"NS_AX_END=}" \
|
||||
"NS_AX_MATH_BEGIN=namespace axis {" \
|
||||
"NS_AX_MATH_END=}" \
|
||||
"USING_NS_AX=using namespace axis" \
|
||||
"USING_NS_AX_MATH=using namespace axis" \
|
||||
"NS_AX_EXT_BEGIN=namespace axis { namespace extension {" \
|
||||
"NS_AX_EXT_END=}}" \
|
||||
"USING_AX_CC_EXT=using namespace axis::extension" \
|
||||
"CC_USE_PHYSICS" \
|
||||
"CC_DEPRECATED_ATTRIBUTE" \
|
||||
"CC_CONSTRUCTOR_ACCESS=protected" \
|
||||
|
|
|
@ -13,8 +13,8 @@ Sync from https://github.com/Xrysnow/cocos2d-x-imgui and do a little changes
|
|||
## How to use
|
||||
```cpp
|
||||
#include "ImGui/ImGuiPresenter.h"
|
||||
USING_NS_CC;
|
||||
USING_NS_CC_EXT;
|
||||
USING_NS_AX;
|
||||
USING_NS_AX_EXT;
|
||||
|
||||
class GameScene : public Scene {
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue