LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
LibCarna::base::Renderable::DepthOrder< order > Struct Template Reference

Defines partial order for renderables w.r.t. to their depth in eye space. More...

#include <Renderable.hpp>

Public Member Functions

bool operator() (const Renderable &l, const Renderable &r) const
 Tells whether l is further away than r for order>0 or closer for order<0 respectively.
 

Static Public Attributes

static const bool isViewDependent = true
 Indicates that this partial order depends on the view transform.
 

Detailed Description

template<int order>
struct LibCarna::base::Renderable::DepthOrder< order >

Defines partial order for renderables w.r.t. to their depth in eye space.

Parameters
orderestablishes order back-to-front for positive order and front-to-back for negative order.

Definition at line 113 of file Renderable.hpp.

Member Function Documentation

◆ operator()()

template<int order>
bool LibCarna::base::Renderable::DepthOrder< order >::operator() ( const Renderable l,
const Renderable r 
) const

Tells whether l is further away than r for order>0 or closer for order<0 respectively.

Definition at line 166 of file Renderable.hpp.

Member Data Documentation

◆ isViewDependent

template<int order>
const bool LibCarna::base::Renderable::DepthOrder< order >::isViewDependent = true
static

Indicates that this partial order depends on the view transform.

Definition at line 119 of file Renderable.hpp.


The documentation for this struct was generated from the following file: