engine/include/components/mesh_renderable.h

19 lines
452 B
C
Raw Normal View History

#ifndef ENGINE_INCLUDE_COMPONENTS_MESH_RENDERABLE_H_
#define ENGINE_INCLUDE_COMPONENTS_MESH_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 13:13:35 +00:00
#include "resources/material.h"
#include "resources/mesh.h"
2023-05-01 12:55:49 +00:00
2023-01-02 17:24:20 +00:00
namespace engine {
2023-09-12 18:03:23 +00:00
struct MeshRenderableComponent {
2023-11-05 01:04:05 +00:00
std::shared_ptr<Mesh> mesh;
std::shared_ptr<Material> material;
2024-02-28 22:18:19 +00:00
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
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