comparison Indoor.h @ 676:ecfb1b3c9a39

BLV: when standing right on the portal (orange wall) everything looks fine
author Nomad
date Fri, 15 Mar 2013 04:13:24 +0200
parents ccf8b4815a1f
children a5e587c8e30e
comparison
equal deleted inserted replaced
675:92c1e1250e7c 676:ecfb1b3c9a39
248 unsigned __int16 uFlags; 248 unsigned __int16 uFlags;
249 }; 249 };
250 #pragma pack(pop) 250 #pragma pack(pop)
251 251
252 252
253 #define FACE_TWO_SIDED 0x00000001 // portal/two-sided 253 #define FACE_PORTAL 0x00000001 // portal/two-sided
254 #define FACE_CAN_SATURATE_COLOR 0x00000002 254 #define FACE_CAN_SATURATE_COLOR 0x00000002
255 #define FACE_TEXTURE_ANIMATED 0x00000010 // like wavy water 255 #define FACE_TEXTURE_ANIMATED 0x00000010 // like wavy water
256 #define FACE_INVISIBLE 0x00002000 256 #define FACE_INVISIBLE 0x00002000
257 #define FACE_TEXTURE_FRAME 0x00004000 // Texture ID is a frameset from TextureFrameTable, otherwise BitmapID 257 #define FACE_TEXTURE_FRAME 0x00004000 // Texture ID is a frameset from TextureFrameTable, otherwise BitmapID
258 #define FACE_OUTLINED 0x00010000 // outline face edges 258 #define FACE_OUTLINED 0x00010000 // outline face edges
282 struct Texture *GetTexture(); 282 struct Texture *GetTexture();
283 void FromODM(struct ODMFace *a2); 283 void FromODM(struct ODMFace *a2);
284 284
285 inline bool Invisible() const {return uAttributes & FACE_INVISIBLE;} 285 inline bool Invisible() const {return uAttributes & FACE_INVISIBLE;}
286 inline bool Visible() const {return !Invisible();} 286 inline bool Visible() const {return !Invisible();}
287 inline bool TwoSided() const {return uAttributes & FACE_TWO_SIDED;} 287 inline bool Portal() const {return uAttributes & FACE_PORTAL;}
288 inline bool Animated() const {return uAttributes & FACE_TEXTURE_ANIMATED;} 288 inline bool Animated() const {return uAttributes & FACE_TEXTURE_ANIMATED;}
289 inline bool Clickable() const {return uAttributes & FACE_CLICKABLE;} 289 inline bool Clickable() const {return uAttributes & FACE_CLICKABLE;}
290 290
291 291
292 struct Plane_float_ pFacePlane; 292 struct Plane_float_ pFacePlane;
294 int zCalc1; 294 int zCalc1;
295 int zCalc2; 295 int zCalc2;
296 int zCalc3; 296 int zCalc3;
297 unsigned int uAttributes; 297 unsigned int uAttributes;
298 unsigned __int16 *pVertexIDs; 298 unsigned __int16 *pVertexIDs;
299 unsigned __int16 *pXInterceptDisplacements; 299 signed __int16 *pXInterceptDisplacements;
300 unsigned __int16 *pYInterceptDisplacements; 300 signed __int16 *pYInterceptDisplacements;
301 unsigned __int16 *pZInterceptDisplacements; 301 signed __int16 *pZInterceptDisplacements;
302 signed __int16 *pVertexUIDs; 302 signed __int16 *pVertexUIDs;
303 signed __int16 *pVertexVIDs; 303 signed __int16 *pVertexVIDs;
304 unsigned __int16 uFaceExtraID; 304 unsigned __int16 uFaceExtraID;
305 unsigned __int16 uBitmapID; 305 unsigned __int16 uBitmapID;
306 unsigned __int16 uSectorID; 306 unsigned __int16 uSectorID;