From 05f9b1d15c237e89176cc2b207454f0f30073d57 Mon Sep 17 00:00:00 2001 From: neoraider Date: Sat, 23 Apr 2005 11:41:04 +0000 Subject: libneofx: neofx/types.h: TRIANGLE-Struktur aufger?umt; libzoom: zoom/types.h: WALL-Struktur als Ersatz f?r TRIANGLE eingef?gt; zoom/level.h, level.c und player.c an die neuen Strukturen angepasst --- zoom/types.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'zoom/types.h') diff --git a/zoom/types.h b/zoom/types.h index 51dc259..eeacde7 100644 --- a/zoom/types.h +++ b/zoom/types.h @@ -22,6 +22,20 @@ #define STATE_CLOSING 4 #pragma pack(push, 2) +typedef struct WALL { + unsigned char type; + unsigned char visible; + union { + TRIANGLE triangle; + struct { + VERTEX vertices[3]; + VECTOR normal; + }; + }; + int texture; + TEXCOORDS texcoords[3]; +} WALL; + typedef struct _OBJECT { unsigned char type; unsigned char visible; @@ -31,7 +45,7 @@ typedef struct _OBJECT { typedef struct _GATE { unsigned char type; unsigned char open; - TRIANGLE triangles[2]; + WALL walls[2]; VERTEX point; int room; int gate; -- cgit v1.2.3