summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/honey.h1
-rw-r--r--src/light.c20
-rw-r--r--src/light.h33
4 files changed, 0 insertions, 55 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 721c52f..7a4db6c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,7 +23,6 @@ set(SOURCE_FILES
src/honey.c
src/input.c
src/honey_lua.c
- src/light.c
src/mesh.c
src/primitives.c
src/shader.c
diff --git a/src/honey.h b/src/honey.h
index 96ba14e..66a61a4 100644
--- a/src/honey.h
+++ b/src/honey.h
@@ -10,7 +10,6 @@
#include "glm_bindings.h"
#include "input.h"
-#include "light.h"
#include "mesh.h"
#include "primitives.h"
#include "shader.h"
diff --git a/src/light.c b/src/light.c
deleted file mode 100644
index 839d747..0000000
--- a/src/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.h b/src/light.h
deleted file mode 100644
index 93fcfd1..0000000
--- a/src/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