Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions

vl::RenderQueueSorterOcclusion Class Reference

Implements a RenderQueueSorter that maximizes the z-buffer test efficiency as much as possible. More...

#include <RenderQueueSorter.hpp>

Inheritance diagram for vl::RenderQueueSorterOcclusion:
vl::RenderQueueSorter vl::Object

List of all members.

Public Member Functions

 RenderQueueSorterOcclusion ()
virtual bool mightNeedZCameraDistance () const
virtual bool confirmZCameraDistanceNeed (const RenderToken *) const
virtual bool operator() (const RenderToken *a, const RenderToken *b) const

Detailed Description

Implements a RenderQueueSorter that maximizes the z-buffer test efficiency as much as possible.

Sorts the RenderTokens by:

  1. Actor render block
  2. Effect render rank
  3. Actor render rank
  4. Solid objects first, translucent objects last
  5. Sort solid objects front-to-back
  6. Sort translucent objects back-to-front

Definition at line 231 of file RenderQueueSorter.hpp.


Constructor & Destructor Documentation

vl::RenderQueueSorterOcclusion::RenderQueueSorterOcclusion (  ) [inline]

Definition at line 236 of file RenderQueueSorter.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

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]

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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:11.
Permission is granted to use this page to write and publish articles regarding Visualization Library.