mirror of https://github.com/axmolengine/axmol.git
add video player debug draw config
This commit is contained in:
parent
71b6be678e
commit
126ec18a89
|
@ -67,5 +67,6 @@
|
|||
#define CREATE_CLASS_WIDGET_READER_INFO(className) \
|
||||
cocos2d::ObjectFactory::TInfo(#className, &className::createInstance) \
|
||||
|
||||
#define CC_VIDEOPLAYER_DEBUG_DRAW 0
|
||||
|
||||
#endif /* defined(__TestCpp__GUIDefine__) */
|
||||
|
|
|
@ -278,7 +278,7 @@ VideoPlayer::VideoPlayer()
|
|||
|
||||
#if CC_VIDEOPLAYER_DEBUG_DRAW
|
||||
_debugDrawNode = DrawNode::create();
|
||||
addchild(_debugDrawNode);
|
||||
addChild(_debugDrawNode);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -338,7 +338,7 @@ void VideoPlayer::draw(Renderer* renderer, const Mat4 &transform, uint32_t flags
|
|||
Point(size.width, size.height),
|
||||
Point(0, size.height)
|
||||
};
|
||||
_debugdrawNode->drawPoly(vertices, 4, true, Color4F(1.0, 1.0, 1.0, 1.0));
|
||||
_debugDrawNode->drawPoly(vertices, 4, true, Color4F(1.0, 1.0, 1.0, 1.0));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue