Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
LightPlan.hpp File Reference

Which lights reached the frame, and who was turned away. More...

#include "../../core/Types.hpp"
#include "../../math/Math.hpp"
#include <vector>
Include dependency graph for LightPlan.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esengine::LightGrant
 One light that asked to be in the frame, and what it was told. More...
struct  esengine::LightCapReport
 What the frame's light cap came to. More...

Namespaces

namespace  esengine

Enumerations

enum class  esengine::LightRefusal : u8 { esengine::None = 0 , esengine::Capacity , esengine::NoEnvironmentSun }
 Why a light did not reach the frame. More...

Functions

const char * esengine::lightRefusalName (LightRefusal why)
 The refusal as a word, for a log line and for a reader.

Detailed Description

Which lights reached the frame, and who was turned away.

The cap logged a COUNT and dropped the rest. "Three lights exceed the cap" tells a creator that something went dark and not which thing, so the only way to find out was to delete lights until one came back.

Named alongside ShadowPlanReport rather than folded into it: they are two different contentions over two different resources, and a light that lost its shadow tile is still lighting the scene.

Definition in file LightPlan.hpp.