engine/include/components/mesh_renderable.h

16 lines
356 B
C
Raw 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
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 {
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