Hymn to Beauty
C++ 3D Engine
GLTFEditor.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
5
6namespace GUI {
8class GLTFEditor {
9 public:
11 GLTFEditor();
12
14 void Show();
15
17
21 void SetFile(const std::string& path, const std::string& filename);
22
24
27 bool IsVisible() const;
28
30
33 void SetVisible(bool visible);
34
35 private:
36 bool visible = false;
37 std::string path;
38 std::string filename;
39
40 GLTFImporter gltfImporter;
41};
42} // namespace GUI
Converts GLTF models to internal format.
Definition: GLTFImporter.hpp:15
Used to import GLTF models.
Definition: GLTFEditor.hpp:8
void Show()
Show the editor.
Definition: GLTFEditor.cpp:11
GLTFEditor()
Constructor.
Definition: GLTFEditor.cpp:7
void SetFile(const std::string &path, const std::string &filename)
Set file to import.
Definition: GLTFEditor.cpp:20
void SetVisible(bool visible)
Set whether the window should be visible.
Definition: GLTFEditor.cpp:29
bool IsVisible() const
Get whether the window is visible.
Definition: GLTFEditor.cpp:25
Definition: AssetEditor.hpp:9