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

Implements a pipeline step that renders the game HUD. More...

#include <plain.h>

+ Inheritance diagram for DrawHUD:
+ Collaboration diagram for DrawHUD:

Public Member Functions

virtual void setRenderSource (RenderSource *) override
 Assigns render source to this step.
 
virtual void setRenderTarget (RenderTarget *) 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
 

Detailed Description

Implements a pipeline step that renders the game HUD.

Member Function Documentation

◆ reset()

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

Reimplemented from RenderPipelineObject.

◆ run()

void DrawHUD::run ( PipelineContext & context)
overridevirtual

Runs the step.

This method is invoked by the pipeline.

Implements RenderStep.

References PipelineContext::client, PipelineContext::device, PipelineContext::draw_crosshair, Hud::drawCrosshair(), ShadowRenderer::drawDebug(), Hud::drawLuaElements(), Camera::drawNametags(), Client::getCamera(), Camera::getOffset(), PipelineContext::hud, Hud::resizeHotbar(), PipelineContext::shadow_renderer, and PipelineContext::show_hud.

+ Here is the call graph for this function:

◆ setRenderSource()

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

Assigns render source to this step.

Parameters
sourcesource of rendering information

Implements RenderStep.

◆ setRenderTarget()

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

Assigned render target to this step.

Parameters
targetrender target to send output to.

Implements RenderStep.


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