Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
Lighting Configuration

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.
 

Detailed Description

Functions to manage lighting in the rendering engine.

Enumeration Type Documentation

◆ Lightings

enum Lightings

Enumeration of different types of lights.

This enumeration defines the different types of lights that can be used in the rendering system.

  • POINT_LIGHT: A light that emits light in all directions from a single point.
  • DIRECTIONAL_LIGHT: A light that emits light in a specific direction, similar to sunlight.
  • SPOT_LIGHT: A light that emits light in a cone shape, with a defined cutoff angle.
  • LIGHTS_COUNT: The total number of light types defined.
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.

Function Documentation

◆ set_lightings()

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.

Parameters
lightsCountThe number of lights of each type to be initialized.