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

Method drawAtPoint

core/renderer/Texture2D.cpp:783–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783void Texture2D::drawAtPoint(const Vec2& point, float globalZOrder)
784{
785 float width = (float)_pixelsWide * _maxS;
786 float height = (float)_pixelsHigh * _maxT;
787 Rect rect = {point.x, point.y, width, height};
788 drawInRect(rect, globalZOrder);
789}
790
791void Texture2D::drawInRect(const Rect& rect, float globalZOrder)
792{

Callers 1

onDrawMethod · 0.80

Calls

no outgoing calls

Tested by 1

onDrawMethod · 0.64