Hymn to Beauty
C++ 3D Engine
Model.hpp
Go to the documentation of this file.
1#pragma once
2
4#include <json/json.h>
5
6namespace Geometry {
9 public:
11
17
19 virtual ~Model();
20
22
25 Json::Value Save() const;
26
28
31 void Load(const std::string& name);
32
34 std::string name;
35
37 std::string path;
38
39 private:
40 void LoadGeometry(const char* filename);
41};
42} // namespace Geometry
Interface of a model loaded from a file.
Definition: Model.hpp:8
Json::Value Save() const
Save the model.
Definition: Model.cpp:16
std::string name
The name of the model.
Definition: Model.hpp:34
Model(Video::LowLevelRenderer *lowLevelRenderer)
Create new empty model.
Definition: Model.cpp:12
virtual ~Model()
Destructor.
Definition: Model.cpp:14
std::string path
The folder containing the model file.
Definition: Model.hpp:37
void Load(const std::string &name)
Load model from file.
Definition: Model.cpp:22
Renderable 3D geometry.
Definition: Geometry3D.hpp:15
LowLevelRenderer * lowLevelRenderer
The low-level renderer used to create buffers and the vertex description.
Definition: Geometry3D.hpp:98
Low level renderer abstracting the underlaying graphics API (OpenGL or Vulkan).
Definition: LowLevelRenderer.hpp:27
Definition: AssetEditor.hpp:5