OSDN Git Service

Added getCurrentType() to ShapeRenderer.
authorStefan Bachmann <st.lebach@gmail.com>
Sat, 26 Jan 2013 18:50:31 +0000 (10:50 -0800)
committerStefan Bachmann <st.lebach@gmail.com>
Sat, 26 Jan 2013 18:50:31 +0000 (10:50 -0800)
gdx/src/com/badlogic/gdx/graphics/glutils/ShapeRenderer.java

index 873b2a2..88d76b6 100644 (file)
@@ -73,6 +73,10 @@ import com.badlogic.gdx.utils.GdxRuntimeException;
  * shapes until they are changed.\r
  * \r
  * @author mzechner */\r
+/**\r
+ * @author Stefan\r
+ *\r
+ */\r
 public class ShapeRenderer {\r
        /** Shape types to be used with {@link #begin(ShapeType)}.\r
         * @author mzechner */\r
@@ -680,6 +684,11 @@ public class ShapeRenderer {
                end();\r
                begin(type);\r
        }\r
+       \r
+       /** Returns the current {@link ShapeType} used */\r
+       public ShapeType getCurrentType () {\r
+               return currType;\r
+       }\r
 \r
        public void dispose () {\r
                renderer.dispose();\r