Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [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 | |
| virtual const char * | className () |
| Returns the name of the class. | |
| 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 225 of file RenderQueueSorter.hpp.
| vl::RenderQueueSorterOcclusion::RenderQueueSorterOcclusion | ( | ) | [inline] |
Definition at line 229 of file RenderQueueSorter.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
| virtual const char* vl::RenderQueueSorterOcclusion::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::RenderQueueSorter.
Definition at line 228 of file RenderQueueSorter.hpp.
| virtual bool vl::RenderQueueSorterOcclusion::mightNeedZCameraDistance | ( | ) | const [inline, virtual] |
Implements vl::RenderQueueSorter.
Definition at line 234 of file RenderQueueSorter.hpp.
| virtual bool vl::RenderQueueSorterOcclusion::confirmZCameraDistanceNeed | ( | const RenderToken * | ) | const [inline, virtual] |
Implements vl::RenderQueueSorter.
Definition at line 235 of file RenderQueueSorter.hpp.
| virtual bool vl::RenderQueueSorterOcclusion::operator() | ( | const RenderToken * | a, |
| const RenderToken * | b | ||
| ) | const [inline, virtual] |
Implements vl::RenderQueueSorter.
Definition at line 237 of file RenderQueueSorter.hpp.
References vl::Shader::blendingEnabled(), vl::RenderToken::mActor, vl::RenderToken::mCameraDistance, vl::RenderToken::mEffectRenderRank, vl::RenderToken::mRenderable, vl::RenderToken::mShader, vl::Actor::renderBlock(), and vl::Actor::renderRank().