From 140666204191b218b72274d8d14921c89a6631fd Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sun, 29 Nov 2020 15:16:42 -0600 Subject: refactor: eliminate src subdirectories for honey files --- src/light/light.c | 20 -------------------- src/light/light.h | 33 --------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 src/light/light.c delete mode 100644 src/light/light.h (limited to 'src/light') diff --git a/src/light/light.c b/src/light/light.c deleted file mode 100644 index 839d747..0000000 --- a/src/light/light.c +++ /dev/null @@ -1,20 +0,0 @@ -#include "light.h" - -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) { - light->position[0] = x; - light->position[1] = y; - light->position[2] = z; - - light->color[0] = r; - light->color[1] = g; - light->color[2] = b; - - light->constant = constant; - light->linear = linear; - light->quadratic = quadratic; -} diff --git a/src/light/light.h b/src/light/light.h deleted file mode 100644 index dfb6979..0000000 --- a/src/light/light.h +++ /dev/null @@ -1,33 +0,0 @@ -#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 -- cgit v1.2.1