MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / init

Method init

Source/Node/Sprite.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52Sprite::~Sprite() { }
53
54bool Sprite::init() {
55 if (!Node::init()) return false;
56 setDepthWrite(false);
57 setSize(_textureRect.size);
58 updateVertPosition();
59 updateVertTexCoord();
60 updateVertColor();
61 return true;
62}
63
64void Sprite::setEffect(SpriteEffect* var) {
65 _effect = var ? var : SharedSpriteRenderer.getDefaultEffect();

Callers

nothing calls this directly

Calls 2

setSizeFunction · 0.85
initFunction · 0.50

Tested by

no test coverage detected