MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / drawHandle

Method drawHandle

src/Core/Graphics/Sprite.cpp:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 }
182
183 void Sprite::drawHandle(
184 RenderTarget surface, const Transform::UnitVector& camera) const
185 {
186 const Transform::UnitVector position
187 = m_positionTransformer(m_position, camera, m_layer)
188 .to<Transform::Units::ScenePixels>();
189 Rect::draw(surface, position.x, position.y);
190 }
191
192 SpriteHandlePoint* Sprite::getHandlePoint(
193 Transform::UnitVector& cameraPosition, int posX, int posY)

Callers 1

drawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected