summaryrefslogtreecommitdiff
path: root/src/libs/ray/ray_light_emitter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/ray/ray_light_emitter.h')
-rw-r--r--src/libs/ray/ray_light_emitter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/ray/ray_light_emitter.h b/src/libs/ray/ray_light_emitter.h
index 3b5509e..4a1dce5 100644
--- a/src/libs/ray/ray_light_emitter.h
+++ b/src/libs/ray/ray_light_emitter.h
@@ -5,6 +5,7 @@
#include "ray_object_sphere.h"
typedef enum ray_light_emitter_type_t {
+ RAY_LIGHT_EMITTER_TYPE_SENTINEL, /* TODO: this is fragile, the enum values align with ray_object_type_t so the object-specific .type can be assigned as object types to silence compiler warnings, without producing wrong type values in the ray_light_emitter_t.type. What should probably be done is splitting out the rudimentary objects into even simpler structs without a type member so we can have light variants and object variants each with their own enum typed type members... not now. */
RAY_LIGHT_EMITTER_TYPE_SPHERE,
RAY_LIGHT_EMITTER_TYPE_POINT,
} ray_light_emitter_type_t;
© All Rights Reserved