#include <Texture2dTest.h>
|
| void | onDraw (const cocos2d::Mat4 &transform, uint32_t flags) |
| |
◆ ~TextureDrawAtPoint()
| TextureDrawAtPoint::~TextureDrawAtPoint |
( |
| ) |
|
◆ CREATE_FUNC()
◆ draw()
| void TextureDrawAtPoint::draw |
( |
cocos2d::Renderer * |
renderer, |
|
|
const cocos2d::Mat4 & |
transform, |
|
|
uint32_t |
flags |
|
) |
| |
|
overridevirtual |
在文件 Texture2dTest.cpp 第 1778 行定义.
1780 TextureDemo::draw(renderer, transform, flags);
1782 onDraw(transform, flags);
void onDraw(const cocos2d::Mat4 &transform, uint32_t flags)
引用了 onDraw().
◆ onDraw()
| void TextureDrawAtPoint::onDraw |
( |
const cocos2d::Mat4 & |
transform, |
|
|
uint32_t |
flags |
|
) |
| |
|
protected |
在文件 Texture2dTest.cpp 第 1785 行定义.
1787 Director* director = Director::getInstance();
1788 CCASSERT(
nullptr != director,
"Director is null when setting matrix stack");
1789 director->pushMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW);
1790 director->loadMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, transform);
1792 auto s = Director::getInstance()->getWinSize();
1794 _tex1->drawAtPoint(Vec2(s.width/2-50, s.height/2 - 50), _globalZOrder);
1795 _Tex2F->drawAtPoint(Vec2(s.width/2+50, s.height/2 - 50), _globalZOrder);
1797 director->popMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW);
引用了 _tex1 , 以及 _Tex2F.
被这些函数引用 draw().
◆ onEnter()
| void TextureDrawAtPoint::onEnter |
( |
| ) |
|
|
overridevirtual |
◆ subtitle()
| std::string TextureDrawAtPoint::subtitle |
( |
| ) |
const |
|
overridevirtual |
◆ title()
| std::string TextureDrawAtPoint::title |
( |
| ) |
const |
|
overridevirtual |
◆ _tex1
| cocos2d::Texture2D* TextureDrawAtPoint::_tex1 |
|
protected |
◆ _Tex2F
| cocos2d::Texture2D * TextureDrawAtPoint::_Tex2F |
|
protected |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.cpp