engine/include/components/renderable.hpp

19 lines
375 B
C++
Raw Normal View History

2023-05-01 12:55:49 +00:00
#ifndef ENGINE_INCLUDE_COMPONENTS_RENDERABLE_H_
#define ENGINE_INCLUDE_COMPONENTS_RENDERABLE_H_
2023-01-02 17:24:20 +00:00
2023-01-02 21:11:29 +00:00
#include <memory>
2023-01-02 17:24:20 +00:00
2023-05-01 12:55:49 +00:00
#include "resources/material.hpp"
#include "resources/mesh.hpp"
2023-01-02 17:24:20 +00:00
namespace engine {
2023-05-01 12:55:49 +00:00
struct RenderableComponent {
std::shared_ptr<resources::Mesh> mesh;
std::shared_ptr<resources::Material> material;
bool shown = true;
};
2023-01-02 21:11:29 +00:00
2023-05-01 12:55:49 +00:00
} // namespace engine
2023-01-02 17:24:20 +00:00
2023-05-01 12:55:49 +00:00
#endif