MCPcopy Create free account
hub / github.com/axmolengine/axmol / getRect

Method getRect

tests/cpp-tests/Source/TouchesTest/Paddle.cpp:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31Paddle::~Paddle() {}
32
33Rect Paddle::getRect()
34{
35 auto s = getTexture()->getContentSize();
36 return Rect(-s.width / 2, -s.height / 2, s.width, s.height);
37}
38
39Paddle* Paddle::createWithTexture(Texture2D* aTexture)
40{

Callers 9

setDisplayFrameMethod · 0.80
initWithSpriteFrameMethod · 0.80
initWithPolygonMethod · 0.80
setSpriteFrameMethod · 0.80
isFrameDisplayedMethod · 0.80
updateLabelMethod · 0.80
collideWithPaddleMethod · 0.80

Calls 3

getTextureFunction · 0.50
RectClass · 0.50
getContentSizeMethod · 0.45

Tested by 1

updateLabelMethod · 0.64