Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
Occluder.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
14#pragma once
15
16#include "../../core/Types.hpp"
18
19#include <glm/glm.hpp>
20
21namespace esengine::ecs {
22
31ES_COMPONENT(stability=beta)
32struct Occluder {
35 ES_PROPERTY(min=0, tooltip="Half the solid box, in world units, from the entity's position.")
36 glm::vec3 halfExtents{50.0f, 50.0f, 50.0f};
37
40 ES_PROPERTY(tooltip="Off: this box hides nothing.")
41 bool enabled{true};
42
43 Occluder() = default;
44};
45
46} // namespace esengine::ecs
Reflection and metadata system for automatic binding generation.
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Core type definitions and utilities for ESEngine.
bool enabled
Disabled occluders hide nothing, which is what every scene without one gets: the test costs a compari...
Definition Occluder.hpp:41
glm::vec3 halfExtents
Half the box, in world units, from the entity's position. The default fills an unscaled builtin cube ...
Definition Occluder.hpp:36