![]() |
LibCarna Version 3.4.0
|
Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transform has been computed in particular. More...
#include <Renderable.hpp>
Classes | |
struct | DepthOrder |
Defines partial order for renderables w.r.t. to their depth in eye space. More... | |
struct | VideoResourcesOrder |
Establishes partial order for renderables s.t. geometries with such GeometryFeature instances, that do control the same video resource, are grouped together. More... | |
Public Types | |
typedef DepthOrder<+1 > | BackToFront |
Defines partial order for renderables w.r.t. to their depth in eye space s.t. distant renderables come before closer renderables. | |
typedef DepthOrder< -1 > | FrontToBack |
Defines partial order for renderables w.r.t. to their depth in eye space s.t. closer renderables come before distant renderables. | |
Public Member Functions | |
Renderable (const Geometry &geometry, const math::Matrix4f &modelViewTransform) | |
Associates geometry with modelViewTransform. | |
Renderable (const Renderable &other) | |
Copies from other. | |
~Renderable () | |
Deletes. | |
const Geometry & | geometry () const |
References the geometry node. | |
const math::Matrix4f & | modelViewTransform () const |
References the model-view transform. | |
void | setModelViewTransform (const math::Matrix4f &) |
Alters the model-view transform. | |
const math::Matrix4f & | viewModelTransform () const |
Returns the inverse modelViewTransform. | |
float | eyeDistance2 () const |
Returns the squared distance of geometry to the eye. If it has an associated boundary volume, than the distance is computed w.r.t. to its closemost point. Otherwise it is computed w.r.t. its center. | |
Renderable & | operator= (const Renderable &other) |
Assigns from other. | |
Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transform has been computed in particular.
Instances of this class are copyable and assignable.
Definition at line 48 of file Renderable.hpp.
Defines partial order for renderables w.r.t. to their depth in eye space s.t. distant renderables come before closer renderables.
Definition at line 132 of file Renderable.hpp.
Defines partial order for renderables w.r.t. to their depth in eye space s.t. closer renderables come before distant renderables.
Definition at line 138 of file Renderable.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen