com.jme3.renderer.queue
Class OpaqueComparator

java.lang.Object
  extended by com.jme3.renderer.queue.OpaqueComparator
All Implemented Interfaces:
GeometryComparator, java.util.Comparator<Geometry>

public class OpaqueComparator
extends java.lang.Object
implements GeometryComparator


Constructor Summary
OpaqueComparator()
           
 
Method Summary
 int compare(Geometry o1, Geometry o2)
           
 float distanceToCam(Geometry spat)
           
 void setCamera(Camera cam)
          Set the camera to use for sorting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

OpaqueComparator

public OpaqueComparator()
Method Detail

setCamera

public void setCamera(Camera cam)
Description copied from interface: GeometryComparator
Set the camera to use for sorting.

Specified by:
setCamera in interface GeometryComparator
Parameters:
cam - The camera to use for sorting

distanceToCam

public float distanceToCam(Geometry spat)

compare

public int compare(Geometry o1,
                   Geometry o2)
Specified by:
compare in interface java.util.Comparator<Geometry>