Estella
0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
Billboard.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
13
#pragma once
14
15
#include "
../../core/Types.hpp
"
16
#include "
../../core/Reflection.hpp
"
17
18
namespace
esengine::ecs
{
19
22
ES_ENUM
(stability=beta)
23
enum class
BillboardMode
:
i32
{
24
ViewPlane
= 0,
25
Upright
= 1,
26
};
27
36
ES_COMPONENT
(stability=beta)
37
struct
Billboard
{
38
ES_PROPERTY
(
enum
=
BillboardMode
, tooltip=
"View plane lies flat in the view, like a particle. Upright turns about world up only, so it stays standing as the camera looks down."
)
39
i32
mode
{
static_cast<
i32
>
(
BillboardMode::ViewPlane
)};
40
41
ES_PROPERTY
(tooltip=
"Off: the mesh keeps the entity's own rotation."
)
42
bool
enabled
{
true
};
43
44
Billboard
() =
default
;
45
};
46
47
}
// namespace esengine::ecs
Reflection.hpp
Reflection and metadata system for automatic binding generation.
ES_COMPONENT
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
Definition
Reflection.hpp:46
ES_ENUM
#define ES_ENUM(...)
Mark an enum that should be exposed to scripts.
Definition
Reflection.hpp:119
ES_PROPERTY
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Definition
Reflection.hpp:95
Types.hpp
Core type definitions and utilities for ESEngine.
esengine::ecs
Definition
AotComponents.generated.hpp:8
esengine::ecs::BillboardMode
BillboardMode
Definition
Billboard.hpp:23
esengine::ecs::BillboardMode::ViewPlane
@ ViewPlane
Definition
Billboard.hpp:24
esengine::ecs::BillboardMode::Upright
@ Upright
Definition
Billboard.hpp:25
esengine::i32
std::int32_t i32
Signed 32-bit integer.
Definition
Types.hpp:54
esengine::ecs::Billboard::Billboard
Billboard()=default
esengine::ecs::Billboard::mode
i32 mode
Definition
Billboard.hpp:39
esengine::ecs::Billboard::enabled
bool enabled
Definition
Billboard.hpp:42
src
esengine
ecs
components
Billboard.hpp
Generated by
1.15.0