diff options
author | sanine-a <sanine.not@pm.me> | 2020-11-29 15:16:42 -0600 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-11-29 15:16:42 -0600 |
commit | 140666204191b218b72274d8d14921c89a6631fd (patch) | |
tree | 8436c81dda007e934f6b5cadd41789c677306b44 /src/light.h | |
parent | 146d708c67172a05a62f944b16fdcb0dccc4713d (diff) |
refactor: eliminate src subdirectories for honey files
Diffstat (limited to 'src/light.h')
-rw-r--r-- | src/light.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/light.h b/src/light.h new file mode 100644 index 0000000..93fcfd1 --- /dev/null +++ b/src/light.h @@ -0,0 +1,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 |