mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Move drawing of wield tool into a dedicated step of the pipeline (#13338)
This commit is contained in:
parent
09342c0811
commit
6cd2eea487
6 changed files with 36 additions and 9 deletions
|
@ -38,6 +38,19 @@ private:
|
|||
RenderTarget *m_target {nullptr};
|
||||
};
|
||||
|
||||
class DrawWield : public RenderStep
|
||||
{
|
||||
public:
|
||||
virtual void setRenderSource(RenderSource *) override {}
|
||||
virtual void setRenderTarget(RenderTarget *target) override { m_target = target; }
|
||||
|
||||
virtual void reset(PipelineContext &context) override {}
|
||||
virtual void run(PipelineContext &context) override;
|
||||
|
||||
private:
|
||||
RenderTarget *m_target {nullptr};
|
||||
};
|
||||
|
||||
/**
|
||||
* Implements a pipeline step that renders the game HUD
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue