|
| | TouchPoint (const Vec2 &touchPoint, const Color3B &touchColor) |
| |
◆ TouchPoint()
| TouchPoint::TouchPoint |
( |
const Vec2 & |
touchPoint, |
|
|
const Color3B & |
touchColor |
|
) |
| |
|
inline |
在文件 MultiTouchTest.cpp 第 45 行定义.
47 DrawNode* drawNode = DrawNode::create();
48 auto s = Director::getInstance()->getWinSize();
49 Color4F color(touchColor.r/255.0f, touchColor.g/255.0f, touchColor.b/255.0f, 1.0f);
50 drawNode->drawLine(Vec2(0.0f, touchPoint.y), Vec2(s.width, touchPoint.y), color);
51 drawNode->drawLine(Vec2(touchPoint.x, 0.0f), Vec2(touchPoint.x, s.height), color);
52 drawNode->drawDot(touchPoint, 3, color);
被这些函数引用 touchPointWithParent().
◆ touchPointWithParent()
| static TouchPoint * TouchPoint::touchPointWithParent |
( |
Node * |
pParent, |
|
|
const Vec2 & |
touchPoint, |
|
|
const Color3B & |
touchColor |
|
) |
| |
|
inlinestatic |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/MultiTouchTest/MultiTouchTest.cpp