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

Method setTexture

core/2d/ParticleSystemQuad.cpp:236–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void ParticleSystemQuad::setTexture(Texture2D* texture)
237{
238 const Vec2& s = texture->getContentSize();
239 this->setTextureWithRect(texture, Rect(0, 0, s.width, s.height));
240}
241
242void ParticleSystemQuad::setDisplayFrame(SpriteFrame* spriteFrame)
243{

Callers 1

setTextureWithRectMethod · 0.45

Calls 3

setTextureWithRectMethod · 0.95
RectClass · 0.70
getContentSizeMethod · 0.45

Tested by

no test coverage detected