mirror of https://github.com/axmolengine/axmol.git
Lua compiles and runs
This commit is contained in:
parent
79ebc546f8
commit
0c2f8ed401
|
@ -5514,6 +5514,7 @@
|
|||
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = "";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = macosx;
|
||||
|
@ -5540,6 +5541,7 @@
|
|||
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = "";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = macosx;
|
||||
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/.. $(SRCROOT)/../cocos $(SRCROOT)/../cocos/editor-support $(SRCROOT)/../extensions $(SRCROOT)/../external $(SRCROOT)/../external/chipmunk/include/chipmunk";
|
||||
|
|
|
@ -38,10 +38,10 @@ using namespace cocos2d::extension;
|
|||
|
||||
|
||||
|
||||
void GLNode::draw(Renderer *renderer, const cocos2d::Mat4& transform, bool transformUpdated)
|
||||
void GLNode::draw(Renderer *renderer, const cocos2d::Mat4& transform, uint32_t flags)
|
||||
{
|
||||
_renderCmd.init(_globalZOrder);
|
||||
_renderCmd.func = CC_CALLBACK_0(GLNode::onDraw, this, transform, transformUpdated);
|
||||
_renderCmd.func = CC_CALLBACK_0(GLNode::onDraw, this, transform, flags);
|
||||
renderer->addCommand(&_renderCmd);
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ void GLNode::onDraw(const cocos2d::Mat4 &transform, uint32_t flags)
|
|||
stack->pushFloat(transform.m[i]);
|
||||
lua_rawseti(L, -2, i + 1);
|
||||
}
|
||||
stack->pushBoolean(transformUpdated);
|
||||
stack->pushInt(flags);
|
||||
stack->executeFunctionByHandler(handler, 2);
|
||||
stack->clean();
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ class GLNode:public cocos2d::Node
|
|||
{
|
||||
public:
|
||||
virtual ~GLNode(){}
|
||||
virtual void draw(cocos2d::Renderer *renderer, const cocos2d::Mat4& transform, bool transformUpdated) override;
|
||||
virtual void draw(cocos2d::Renderer *renderer, const cocos2d::Mat4& transform, uint32_t flags) override;
|
||||
protected:
|
||||
cocos2d::CustomCommand _renderCmd;
|
||||
void onDraw(const cocos2d::Mat4 &transform, uint32_t flags);
|
||||
|
|
Loading…
Reference in New Issue