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.h
Go to the documentation of this file.
1#ifndef LIGHTING_H
2#define LIGHTING_H
3
4struct WorldShaders;
5struct Window;
6struct Node;
7struct Camera;
8
9
19typedef struct PointLight {
20 vec3 color;
21 float bias;
22 float size;
23 float constant;
24 float linear;
25 float quadratic;
27
28
38typedef struct DirectionalLight {
39 vec3 color;
40 float bias;
41 float size;
42 float constant;
43 float linear;
44 float quadratic;
46
47
57typedef struct SpotLight {
58 vec3 color;
59 float bias;
60 float size;
61 float constant;
62 float linear;
63 float quadratic;
64 float cutOff;
66} SpotLight;
67
68
92
93
106
107
116void set_lightings(u8 lightsCount[LIGHTS_COUNT]);
117
// end of Lighting group
119#endif
#define u32
Alias for uint32_t (unsigned 32-bit integer).
Definition aliases.h:19
#define u8
Alias for uint8_t (unsigned 8-bit integer).
Definition aliases.h:7
A structure to represent a camera with position and rotation in 3D space.
Definition camera.class.c:29
Represents a directional light source.
Definition directional_light.class.c:28
vec3 color
Definition lighting.h:39
float quadratic
Definition lighting.h:44
float linear
Definition lighting.h:43
float bias
Definition lighting.h:40
float constant
Definition lighting.h:42
float size
Definition lighting.h:41
Represents a node in the tree structure.
Definition node.class.c:26
Represents a point light source.
Definition point_light.class.c:31
float quadratic
Definition lighting.h:25
float linear
Definition lighting.h:24
float bias
Definition lighting.h:21
float constant
Definition lighting.h:23
vec3 color
Definition lighting.h:20
float size
Definition lighting.h:22
Represents a spotlight source.
Definition spot_light.class.c:31
float constant
Definition lighting.h:61
float cutOff
Definition lighting.h:64
float quadratic
Definition lighting.h:63
float bias
Definition lighting.h:59
float size
Definition lighting.h:60
float outerCutOff
Definition lighting.h:65
vec3 color
Definition lighting.h:58
float linear
Definition lighting.h:62
void set_lightings(u8 lightsCount[LIGHTS_COUNT])
Initializes the lighting buffer.
Definition lighting.c:17
Lightings
Enumeration of different types of lights.
Definition lighting.h:86
@ POINT_LIGHT
Definition lighting.h:87
@ SPOT_LIGHT
Definition lighting.h:89
@ LIGHTS_COUNT
Definition lighting.h:90
@ DIRECTIONAL_LIGHT
Definition lighting.h:88
Buffer structure to manage an array of lighting nodes.
Definition lighting.h:101
u32 length
Definition lighting.h:103
u32 index
Definition lighting.h:104
struct Node ** lightings
Definition lighting.h:102
Structure representing the SDL window and its associated OpenGL context.
Definition window.h:51
A structure to hold various shaders used in the rendering process.
Definition render.h:25