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

Method setSize

src/Core/Graphics/Shapes.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void Rectangle::setSize(Transform::UnitVector size)
23 {
24 const Transform::UnitVector pixelSize = size.to<Transform::Units::ScenePixels>();
25 shape.setSize(sf::Vector2f(pixelSize.x, pixelSize.y));
26 }
27
28 Rectangle::operator sf::RectangleShape&()
29 {

Callers 2

useTextureSizeMethod · 0.45
loadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected