OSDN Git Service

[fixed] small bug in SpriteBatch.draw(TextureRegion, float, float). Flipped texture...
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Sat, 12 Feb 2011 14:59:13 +0000 (14:59 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Sat, 12 Feb 2011 14:59:13 +0000 (14:59 +0000)
commit893466e120e16638847491ebf92efffa03ff2b70
tree909bb546b217536a80c64c9af9bbccb0553581ee
parentd4159ee7850213ca3099b7b60a891d764a0c4770
[fixed] small bug in SpriteBatch.draw(TextureRegion, float, float). Flipped texture regions were not handled correctly (negative width/height).
[added] TextureRegion.split() methods that will generate a 2D array of texture regions, each referencing an equally sized area of the originl TextureRegion/Texture. See AnimationTest.
[added] Animation class for stateless sprite animation via TextureRegions.
gdx/src/com/badlogic/gdx/graphics/FPSLogger.java [new file with mode: 0644]
gdx/src/com/badlogic/gdx/graphics/g2d/Animation.java [new file with mode: 0644]
gdx/src/com/badlogic/gdx/graphics/g2d/SpriteBatch.java
gdx/src/com/badlogic/gdx/graphics/g2d/TextureRegion.java
tests/gdx-tests-android/assets/data/walkanim.png [new file with mode: 0644]
tests/gdx-tests-jogl/data/walkanim.png [new file with mode: 0644]
tests/gdx-tests-jogl/src/com/badlogic/gdx/tests/jogl/JoglDebugStarter.java
tests/gdx-tests-lwjgl/data/walkanim.png [new file with mode: 0644]
tests/gdx-tests/src/com/badlogic/gdx/tests/AnimationTest.java [new file with mode: 0644]
tests/gdx-tests/src/com/badlogic/gdx/tests/utils/GdxTests.java