blob: 93fcfd12cf431f234138028629e823a4278f82c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef HONEY_LIGHT_H
#define HONEY_LIGHT_H
#include "common.h"
#define HONEY_MAX_LIGHT_NAME_LENGTH 64
typedef struct {
vec3 position;
vec3 color;
float constant;
float linear;
float quadratic;
} honey_point_light;
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
typedef struct {
vec3 direction;
vec3 color;
} honey_directional_light;
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
void honey_point_light_new(honey_point_light* light,
float x, float y, float z,
float r, float g, float b,
float constant,
float linear,
float quadratic);
#endif
|