Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - xanderxylona

Pages: [1]
1
System / Big O of sf::Clock::restart()
« on: April 18, 2019, 05:48:31 pm »
How fast is sf::Clock::restart()? That is to say, what is O(n) where n is the amount of times restart() is called? I am predisposed to assume that all ∆ time incurrence is linearithmic, but I'm not sure this is true for SFML.

2
Graphics / Inheritance of sf::Sprite
« on: April 18, 2019, 04:13:40 pm »
I'm trying to make an AnimatedSprite class that inherits sf::Sprite and provides some auxiliary functions to make animation easier. In the docs it doesn't look like sf::Sprite has any destructor whatever with exception of those inherited from sf::Drawable and sf::Transformable. Should I call
delete getTexture()
or leave it alone and let it automatically call ~Drawable?

Pages: [1]