Răsfoiți Sursa

Added an accessor for getting the list's comparator.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10032 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
PSp..om 12 ani în urmă
părinte
comite
8ce28cbc04

+ 8 - 0
engine/src/core/com/jme3/renderer/queue/GeometryList.java

@@ -65,6 +65,14 @@ public class GeometryList {
         this.comparator = comparator;
     }
 
+    /**
+     * Returns the GeometryComparator that this Geometry list uses
+     * for sorting.
+     */
+    public GeometryComparator getComparator() {
+        return comparator;
+    }     
+
     /**
      * Set the camera that will be set on the geometry comparators 
      * via {@link GeometryComparator#setCamera(com.jme3.renderer.Camera)}.