Pioneer
Loading...
Searching...
No Matches
PiGuiView.h
Go to the documentation of this file.
1// Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4#pragma once
5
6#include "../View.h"
7
8// Replacement for UIView. This class dispatches to lua-registered pigui draw
9// functions when DrawPiGui() is called.
10// TODO: support rendering to a debug window during the Update() and Draw3D() methods.
11class PiGuiView : public View {
12public:
13 PiGuiView(std::string name) :
14 m_handlerName(name) {}
15
16 virtual void Update() override {}
17 virtual void Draw3D() override {}
18 virtual void DrawPiGui() override;
19
20 const std::string &GetViewName() { return m_handlerName; }
21
22private:
23 virtual void OnSwitchTo() override{};
24
25 std::string m_handlerName;
26};
Definition PiGuiView.h:11
virtual void Update() override
Definition PiGuiView.h:16
virtual void DrawPiGui() override
Definition PiGuiView.cpp:8
PiGuiView(std::string name)
Definition PiGuiView.h:13
const std::string & GetViewName()
Definition PiGuiView.h:20
virtual void Draw3D() override
Definition PiGuiView.h:17
Definition View.h:21