Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ClearDepthBufferTarget Class Reference

Resets depth buffer of the current render target. More...

#include <anaglyph.h>

+ Inheritance diagram for ClearDepthBufferTarget:
+ Collaboration diagram for ClearDepthBufferTarget:

Public Member Functions

 ClearDepthBufferTarget (RenderTarget *target)
 ClearDepthBufferTarget.
 
void reset (PipelineContext &context) override
 Resets the state of the object for the next pipeline iteration.
 
void activate (PipelineContext &context) override
 Activate the render target and configure OpenGL state for the output.
 
- Public Member Functions inherited from RenderPipelineObject
virtual ~RenderPipelineObject ()=default
 

Private Attributes

RenderTargettarget
 

Additional Inherited Members

- Protected Attributes inherited from RenderTarget
bool m_clear {true}
 

Detailed Description

Resets depth buffer of the current render target.

Constructor & Destructor Documentation

◆ ClearDepthBufferTarget()

ClearDepthBufferTarget::ClearDepthBufferTarget ( RenderTarget * target)

Member Function Documentation

◆ activate()

void ClearDepthBufferTarget::activate ( PipelineContext & context)
overridevirtual

Activate the render target and configure OpenGL state for the output.

This is usually done by

See also
RenderStep implementations.

Reimplemented from RenderTarget.

References RenderTarget::activate(), PipelineContext::device, and target.

+ Here is the call graph for this function:

◆ reset()

void ClearDepthBufferTarget::reset ( PipelineContext & context)
inlineoverridevirtual

Resets the state of the object for the next pipeline iteration.

Reimplemented from RenderTarget.

Member Data Documentation

◆ target

RenderTarget* ClearDepthBufferTarget::target
private

Referenced by activate().


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