engine/include/component_mesh.h

16 lines
358 B
C
Raw Permalink Normal View History

2024-03-31 10:11:22 +00:00
#pragma once
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
namespace engine {
2024-06-04 18:01:49 +00:00
class Mesh; // forward-dec
class Material; // forward-dec
2023-09-12 18:03:23 +00:00
struct MeshRenderableComponent {
2024-03-31 10:11:22 +00:00
std::shared_ptr<Mesh> mesh;
std::shared_ptr<Material> material;
bool visible = true; // for static meshes, changes to this may require the static render list to be rebuilt
2023-05-01 12:55:49 +00:00
};
2023-01-02 21:11:29 +00:00
2024-03-31 10:11:22 +00:00
} // namespace engine