Moving a Shape with SFML C# -
i'm wanting move shape around using sfml.net bindings.
do have shape.position = new vector2f(x, y)
time?
the following mentions build custom shape sfml, have use sf::shape
class.
a shape convex polygon, in each point can have own position , color. can add automatic outline shape, each point having ability define own color outline.
it goes on mention every drawable object in sfml, shape objects inherit common functions set position, rotation, scale, color , blending mode.
polygon.setcolor(sf::color(255, 255, 255, 200)); polygon.move(300, 300); polygon.scale(3, 2); polygon.rotate(45);
unfortunately move(), scale() , rotate()
not exist within c# far can tell.
for sfml.net transformable
class (from shape
inherits) has properties position
, rotation
, scale
. use setter/getter methods.
Comments
Post a Comment