Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
DrawWield Class Reference

#include <plain.h>

+ Inheritance diagram for DrawWield:
+ Collaboration diagram for DrawWield:

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
 Runs the step.
 
- Public Member Functions inherited from RenderPipelineObject
virtual ~RenderPipelineObject ()=default
 

Private Attributes

RenderTargetm_target {nullptr}
 

Member Function Documentation

◆ reset()

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

Reimplemented from RenderPipelineObject.

◆ run()

void DrawWield::run ( PipelineContext & context)
overridevirtual

Runs the step.

This method is invoked by the pipeline.

Implements RenderStep.

References RenderTarget::activate(), PipelineContext::client, PipelineContext::draw_wield_tool, Camera::drawWieldedTool(), Client::getCamera(), and m_target.

+ Here is the call graph for this function:

◆ setRenderSource()

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

Assigns render source to this step.

Parameters
sourcesource of rendering information

Implements RenderStep.

◆ setRenderTarget()

virtual void DrawWield::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* DrawWield::m_target {nullptr}
private

Referenced by run(), and setRenderTarget().


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