2022-09-22 02:52:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../../gfx/model.h"
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace simpleengine {
|
|
|
|
/**
|
2022-09-23 04:44:07 +00:00
|
|
|
* @brief A component that contains a Model that will be rendered.
|
2022-09-22 02:52:06 +00:00
|
|
|
*
|
|
|
|
*/
|
2022-09-23 04:44:07 +00:00
|
|
|
class ModelComponent {
|
2022-09-22 02:52:06 +00:00
|
|
|
public:
|
|
|
|
gfx::Model model;
|
|
|
|
|
|
|
|
ModelComponent(gfx::Model model) : model(model) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ModelComponent(std::string model_file_path) : model(model_file_path) {
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|