Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Implements a RenderQueueSorter that maximizes the z-buffer test efficiency as much as possible. More...
#include <RenderQueueSorter.hpp>
Public Member Functions | |
RenderQueueSorterOcclusion () | |
virtual bool | mightNeedZCameraDistance () const |
virtual bool | confirmZCameraDistanceNeed (const RenderToken *) const |
virtual bool | operator() (const RenderToken *a, const RenderToken *b) const |
Implements a RenderQueueSorter that maximizes the z-buffer test efficiency as much as possible.
Sorts the RenderTokens by:
Definition at line 231 of file RenderQueueSorter.hpp.
vl::RenderQueueSorterOcclusion::RenderQueueSorterOcclusion | ( | ) | [inline] |
Definition at line 236 of file RenderQueueSorter.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
virtual bool vl::RenderQueueSorterOcclusion::mightNeedZCameraDistance | ( | ) | const [inline, virtual] |
Implements vl::RenderQueueSorter.
Definition at line 241 of file RenderQueueSorter.hpp.
virtual bool vl::RenderQueueSorterOcclusion::confirmZCameraDistanceNeed | ( | const RenderToken * | ) | const [inline, virtual] |
Implements vl::RenderQueueSorter.
Definition at line 242 of file RenderQueueSorter.hpp.
virtual bool vl::RenderQueueSorterOcclusion::operator() | ( | const RenderToken * | a, |
const RenderToken * | b | ||
) | const [inline, virtual] |
Implements vl::RenderQueueSorter.
Definition at line 244 of file RenderQueueSorter.hpp.
References vl::Shader::isBlendingEnabled(), vl::RenderToken::mActor, vl::RenderToken::mCameraDistance, vl::RenderToken::mEffectRenderRank, vl::RenderToken::mRenderable, vl::RenderToken::mShader, vl::Actor::renderBlock(), and vl::Actor::renderRank().