0 Members and 3 Guests are viewing this topic.
But I think its a very usefull think ^_^
Adding a Z element would add not necessary complexity to a Simple & Fast Library.
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:
Only if your order will be never changing ;-)And if it not changing...so iit is easy to work without z-order:Draw the 'behindest' sprite first...then the next and at least the sprite which is the nearest to you ;-)
If the the order never changing, you don't need everything for the Z-order :wink:
besides there ist a problem with every transparent Sprite.. (zBuffer is either set to the sprites Z, or not) So a half transparent sprite would blow up the entire system..