OSDN Git Service

[changed] simplified SpriteBatch. There's only one begin() method anymore. If you...
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Thu, 21 Oct 2010 15:43:38 +0000 (15:43 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Thu, 21 Oct 2010 15:43:38 +0000 (15:43 +0000)
commitc5fd7bd1d00ae6f9cae22d99f77c061011222b32
tree5435842eff1a4ead99bb118b015c603c19121e00
parent0d0f501824def29975b09b507e40f620ffc85484
[changed] simplified SpriteBatch. There's only one begin() method anymore. If you construct a new SpriteBatch its projection and transform matrix will create a pixel perfect viewport with the origin in the bottom left, y-axis pointing upwards. If you need your own matrices use SpriteBatch.setProjectionMatrix()/setTransformMatrix(). These can not be set within a begin()/end() block.
[removed] Sprite2. Nate wins :) (Altough it's a 50/50 achievement)
[fixed] Group and Stage use new matrix methods of SpriteBatch now. Much cleaner.
gdx/src/com/badlogic/gdx/graphics/Sprite.java
gdx/src/com/badlogic/gdx/graphics/Sprite2.java [deleted file]
gdx/src/com/badlogic/gdx/graphics/SpriteBatch.java
gdx/src/com/badlogic/gdx/scenes/scene2d/Group.java
gdx/src/com/badlogic/gdx/scenes/scene2d/Stage.java
tests/gdx-tests/src/com/badlogic/gdx/tests/SpriteBatchTest.java