summaryrefslogtreecommitdiffstats
path: root/zoom/light.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-10-24 17:04:02 +0200
committerneoraider <devnull@localhost>2006-10-24 17:04:02 +0200
commite43bceafaba72d34dfbea1deecd56c2f694d704a (patch)
treef403b0e076df599084d55bf04e546b565731e3c6 /zoom/light.h
parent79801b6b794a5fb50a3a013354323a48de37c050 (diff)
downloadlibzoom-e43bceafaba72d34dfbea1deecd56c2f694d704a.tar
libzoom-e43bceafaba72d34dfbea1deecd56c2f694d704a.zip
Beleuchtung und Rendering ge?ndert, um Schatten zu erm?glichen.
Diffstat (limited to 'zoom/light.h')
-rw-r--r--zoom/light.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/zoom/light.h b/zoom/light.h
new file mode 100644
index 0000000..06d6756
--- /dev/null
+++ b/zoom/light.h
@@ -0,0 +1,23 @@
+#ifndef ZOOM_LIGHT_H
+#define ZOOM_LIGHT_H
+
+#include <zoom/types.h>
+
+#define LIGHT_UNKNOWN 0
+#define LIGHT_POINT 1
+#define LIGHT_DIRECTIONAL 2
+#define LIGHT_SPOT 3
+
+typedef struct _LIGHT {
+ unsigned char type;
+ COLOR diffuse;
+ VERTEX pos;
+} LIGHT;
+
+
+void SetAmbient(COLOR);
+void AddLight(LIGHT);
+void ResetLights();
+void ApplyLightScale();
+
+#endif