Hymn to Beauty
C++ 3D Engine
AssetEditor.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace Geometry {
6class Model;
7}
8
9namespace GUI {
12 public:
15
17 void Show();
18
20
23 const Geometry::Model* GetModel() const;
24
26
29 void SetModel(Geometry::Model* model);
30
32
35 bool IsVisible() const;
36
38
41 void SetVisible(bool visible);
42
43 private:
44 Geometry::Model* model = nullptr;
45 bool visible = false;
46
47 char name[128];
48
49 std::string destination;
50};
51} // namespace GUI
Used to edit models.
Definition: AssetEditor.hpp:11
bool IsVisible() const
Get whether the window is visible.
Definition: AssetEditor.cpp:53
void SetVisible(bool visible)
Set whether the window should be visible.
Definition: AssetEditor.cpp:57
void Show()
Show the editor.
Definition: AssetEditor.cpp:22
AssetEditor()
Constructor.
Definition: AssetEditor.cpp:18
const Geometry::Model * GetModel() const
Get the model being edited.
Definition: AssetEditor.cpp:41
void SetModel(Geometry::Model *model)
Set the model to edit.
Definition: AssetEditor.cpp:45
Interface of a model loaded from a file.
Definition: Model.hpp:8
Definition: AssetEditor.hpp:9
Definition: AssetEditor.hpp:5