From 79801b6b794a5fb50a3a013354323a48de37c050 Mon Sep 17 00:00:00 2001 From: neoraider Date: Fri, 20 Oct 2006 12:57:05 +0000 Subject: Physik-Engine angefangen. Lightmaps implementiert. --- zoom/types.h | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'zoom/types.h') diff --git a/zoom/types.h b/zoom/types.h index eeacde7..9e40ea6 100644 --- a/zoom/types.h +++ b/zoom/types.h @@ -7,10 +7,15 @@ #define TRIANGLE_WALL 1 #define TRIANGLE_FLOOR 2 -#define OBJECT_UNKNOWN 0 -#define OBJECT_MEDIPAK25 1 -#define OBJECT_MEDIPAK50 2 -#define OBJECT_MEDIPAK100 3 +#define LIGHT_UNKNOWN 0 +#define LIGHT_POINT 1 +#define LIGHT_DIRECTIONAL 2 +#define LIGHT_SPOT 3 + +#define THING_UNKNOWN 0 +#define THING_MEDIPAK25 1 +#define THING_MEDIPAK50 2 +#define THING_MEDIPAK100 3 #define GATE_UNKNOWN 0 #define GATE_SIDE 1 @@ -36,11 +41,21 @@ typedef struct WALL { TEXCOORDS texcoords[3]; } WALL; -typedef struct _OBJECT { +typedef struct _COLOR { + float r, g, b; +} COLOR; + +typedef struct _LIGHT { + unsigned char type; + COLOR diffuse; + VERTEX pos; +} LIGHT; + +typedef struct _THING { unsigned char type; unsigned char visible; VERTEX pos; -} OBJECT; +} THING; typedef struct _GATE { unsigned char type; -- cgit v1.2.3