16
Feature requests / sf::Clock Class: Time elapsed, in milliseconds please
« on: April 20, 2008, 12:03:22 am »
A additional faster Time elapse will be usefull.
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.
If the the order never changing, you don't need everything for the Z-order :wink:
Quote from: "eleinvisible"Adding a Z element would add not necessary complexity to a Simple & Fast Library.
Sorry, but this is not right. Its much easyer, because you must give the sprites only a Z coord and you can draw the Sprites in order how you want....The Graphic Card draw it ever with the right Z-order.
And that is much easyer, as to write a function, what must sort the Sprites, in the right order. :wink:
But I think its a very usefull think ^_^
1) Ok, so you'll have to wait for the render-to-image feature, which should be done in the next version (hopefully)
2) However, I don't know if it's just for the example, but if you just want to pre-render one shape if may be not worth it.
sf::Sprite mySprite(...);
sf::Shape myShape = sf::Shape::Circle(...);
mySprite.Draw(myShape)
while (App.IsOpened())
{
...
App.Draw(mySprite);
// Display things on screen
App.Display();
}
I'm still not sure about the interface, I haven't started to implement it.