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

Implements a pipeline step that renders the 3D scene. More...

#include <plain.h>

+ Inheritance diagram for Draw3D:
+ Collaboration diagram for Draw3D:

Public Member Functions

virtual void setRenderSource (RenderSource *) override
 Assigns render source to this step.
 
virtual void setRenderTarget (RenderTarget *target) override
 Assigned render target to this step.
 
virtual void reset (PipelineContext &context) override
 
virtual void run (PipelineContext &context) override
 Draw3D pipeline step.
 
- Public Member Functions inherited from RenderPipelineObject
virtual ~RenderPipelineObject ()=default
 

Private Attributes

RenderTargetm_target {nullptr}
 

Detailed Description

Implements a pipeline step that renders the 3D scene.

Member Function Documentation

◆ reset()

virtual void Draw3D::reset ( PipelineContext & context)
inlineoverridevirtual

Reimplemented from RenderPipelineObject.

◆ run()

void Draw3D::run ( PipelineContext & context)
overridevirtual

Draw3D pipeline step.

Implements RenderStep.

References RenderTarget::activate(), PipelineContext::device, Hud::drawBlockBounds(), Hud::drawSelectionMesh(), PipelineContext::hud, m_target, and PipelineContext::show_hud.

+ Here is the call graph for this function:

◆ setRenderSource()

virtual void Draw3D::setRenderSource ( RenderSource * source)
inlineoverridevirtual

Assigns render source to this step.

Parameters
sourcesource of rendering information

Implements RenderStep.

◆ setRenderTarget()

virtual void Draw3D::setRenderTarget ( RenderTarget * target)
inlineoverridevirtual

Assigned render target to this step.

Parameters
targetrender target to send output to.

Implements RenderStep.

References m_target.

Member Data Documentation

◆ m_target

RenderTarget* Draw3D::m_target {nullptr}
private

Referenced by run(), and setRenderTarget().


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