Functions to manage lighting in the rendering engine. More...
Classes | |
struct | LightingBuffer |
Buffer structure to manage an array of lighting nodes. More... | |
Enumerations | |
enum | Lightings { POINT_LIGHT , DIRECTIONAL_LIGHT , SPOT_LIGHT , LIGHTS_COUNT } |
Enumeration of different types of lights. More... | |
Functions | |
void | set_lightings (u8 lightsCount[LIGHTS_COUNT]) |
Initializes the lighting buffer. | |
Functions to manage lighting in the rendering engine.
enum Lightings |
Enumeration of different types of lights.
This enumeration defines the different types of lights that can be used in the rendering system.
Enumerator | |
---|---|
POINT_LIGHT | A point light source. |
DIRECTIONAL_LIGHT | A directional light source. |
SPOT_LIGHT | A spotlight source. |
LIGHTS_COUNT | The total number of light types. |
void set_lightings | ( | u8 | lightsCount[LIGHTS_COUNT] | ) |
Initializes the lighting buffer.
This function initializes the lighting buffer, allocating memory for the array of lighting nodes and setting the length and index to zero.
lightsCount | The number of lights of each type to be initialized. |