RAII helper class for rendering visible parts of debug objects. More...
#include <kanzi/core.ui/node/debug_visualization.hpp>
Public Member Functions | |
| ScopedVisiblePass & | operator= (const ScopedVisiblePass &)=delete |
| ScopedVisiblePass (const ScopedVisiblePass &)=delete | |
| Non-copyable. | |
| ScopedVisiblePass (Renderer &renderer) | |
| Constructor - pushes visible pass rendering settings. | |
| ~ScopedVisiblePass () | |
| Destructor - pops rendering settings. | |
RAII helper class for rendering visible parts of debug objects.
Use this when rendering multiple parts that should depth-test against each other. All parts rendered within this scope will be fully opaque and write to depth buffer. After this scope, use ScopedOccludedPass to render the same parts with transparency.
When used within a ScopedDebugRenderSession, visible parts are marked in the stencil buffer so that the occluded pass (in the next phase) will skip those pixels across all debug objects.
|
explicit |
Constructor - pushes visible pass rendering settings.
| renderer | Renderer to use. |
| kanzi::DebugVisualization::ScopedVisiblePass::~ScopedVisiblePass | ( | ) |
Destructor - pops rendering settings.
|
delete |
Non-copyable.
|
delete |