#include <depthsorter.h>
Public Types | |
enum | EMode { FrontToBack = 0, BackToFront } |
Public Member Functions | |
ZComparer (EMode mode) | |
bool | operator() (const nap::ComponentInstance *objectA, const nap::ComponentInstance *objectB) |
Helper class that can sort a list of components back to front or front to back. The z-comparer sorts objects by the world space z component and ignores the view space transformation.
|
strong |
bool operator() | ( | const nap::ComponentInstance * | objectA, |
const nap::ComponentInstance * | objectB | ||
) |
Compares location of objectA to objectB based on the current sort mode
objectA | the first object to compare against |
objectB | the second object to compare against |