Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::LightGrant Struct Reference

One light that asked to be in the frame, and what it was told. More...

#include <LightPlan.hpp>

Public Attributes

Entity light {}
u8 type = 0
f32 brightness = 0.0f
LightRefusal refusal = LightRefusal::None

Detailed Description

One light that asked to be in the frame, and what it was told.

Definition at line 44 of file LightPlan.hpp.

Member Data Documentation

◆ brightness

f32 esengine::LightGrant::brightness = 0.0f

What decided the order — the brightness the cap sorted on. Recorded so "why THIS one" has an answer that is not "it happened to be last".

Definition at line 52 of file LightPlan.hpp.

◆ light

Entity esengine::LightGrant::light {}

Definition at line 45 of file LightPlan.hpp.

◆ refusal

LightRefusal esengine::LightGrant::refusal = LightRefusal::None

Definition at line 53 of file LightPlan.hpp.

◆ type

u8 esengine::LightGrant::type = 0

The light's own type, kept because a per-type cap would refuse for a reason a single number cannot express, and the day that arrives the reader should not have to guess which pool it was.

Definition at line 49 of file LightPlan.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/store/LightPlan.hpp