vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
mesh.h
1#pragma once
2
3#include "core/reflect.h"
4
5#include "resource/asset/material_asset.h"
6#include "resource/asset/mesh_asset.h"
7
8namespace Vkm::Engine {
9
16enum class SeenBy {
17 All = 0,
18 AllButEye = 1,
19 EyeOnly = 2,
20
27 Viewmodel = 3,
28 Count
29};
30
34struct Mesh {
35 MeshHandle mesh;
36 MaterialHandle material;
37 bool visible = true;
38 bool castShadows = true;
39 SeenBy seenBy = SeenBy::All;
40
49 bool movable = true;
50};
51
52} // namespace Vkm::Engine
53
54VKM_ENUM_NAMES(::Vkm::Engine::SeenBy, "All", "AllButEye", "EyeOnly", "Viewmodel")
55
56VKM_REFLECT_BEGIN(::Vkm::Engine::Mesh)
57 VKM_F(mesh)
58 VKM_F(material)
59 VKM_F(visible)
60 VKM_F(castShadows)
61 VKM_F(seenBy)
62 VKM_F(movable)
63VKM_REFLECT_END()
Component representing a renderable mesh (geometry + material) in the world.
Definition mesh.h:34
bool movable
Off: it never moves, changes or hides while the world runs.
Definition mesh.h:49