SimpleEngine/include/simpleengine/ecs/component/model_component.h

25 lines
437 B
C
Raw Normal View History

2022-09-22 02:52:06 +00:00
#pragma once
#include "../../gfx/model.h"
#include <iostream>
#include <vector>
namespace simpleengine {
/**
* @brief A component that contains a Model that will be rendered.
2022-09-22 02:52:06 +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) {
}
};
}