mirror of https://github.com/axmolengine/axmol.git
Compiles on iOS
This commit is contained in:
parent
b24c674d25
commit
449b588400
|
@ -74,7 +74,7 @@ namespace experimental{
|
|||
virtual void addEventListener(const VideoPlayer::ccVideoPlayerCallback& callback);
|
||||
|
||||
virtual void onPlayEvent(VideoPlayer::EventType event);
|
||||
virtual void draw(Renderer *renderer, const Mat4& transform, bool transformUpdated) override;
|
||||
virtual void draw(Renderer *renderer, const Mat4& transform, uint32_t flags) override;
|
||||
|
||||
protected:
|
||||
virtual cocos2d::ui::Widget* createCloneInstance() override;
|
||||
|
|
|
@ -314,9 +314,9 @@ void VideoPlayer::setURL(const std::string& videoUrl)
|
|||
|
||||
void VideoPlayer::draw(Renderer* renderer, const Mat4 &transform, uint32_t flags)
|
||||
{
|
||||
cocos2d::ui::Widget::draw(renderer,transform,transformUpdated);
|
||||
cocos2d::ui::Widget::draw(renderer,transform,flags);
|
||||
|
||||
if (transformUpdated)
|
||||
if (flags & FLAGS_TRANSFORM_DIRTY)
|
||||
{
|
||||
auto directorInstance = Director::getInstance();
|
||||
auto glView = directorInstance->getOpenGLView();
|
||||
|
|
Loading…
Reference in New Issue