comparison Indoor.h @ 791:346f7069676a

Indoor::GetSector and various stuff
author Nomad
date Mon, 25 Mar 2013 05:27:18 +0200
parents a5e587c8e30e
children 4a00901e063c
comparison
equal deleted inserted replaced
790:1e2be0f5eb30 791:346f7069676a
250 #pragma pack(pop) 250 #pragma pack(pop)
251 251
252 252
253 #define FACE_PORTAL 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_FLUID 0x00000010 // wavy animated water or lava
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
259 #define FACE_TEXTURE_FLOW 0x00040000 // The texture moves slowly. For horizontal facets only. 259 #define FACE_TEXTURE_FLOW 0x00040000 // The texture moves slowly. For horizontal facets only.
260 #define FACE_DO_NOT_LIGHT 0x00400000 260 #define FACE_DO_NOT_LIGHT 0x00400000
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 Portal() const {return uAttributes & FACE_PORTAL;} 287 inline bool Portal() const {return uAttributes & FACE_PORTAL;}
288 inline bool Animated() const {return uAttributes & FACE_TEXTURE_ANIMATED;} 288 inline bool Fluid() const {return uAttributes & FACE_FLUID;}
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;
293 struct Plane_int_ pFacePlane_old; 293 struct Plane_int_ pFacePlane_old;
525 525
526 /* 162 */ 526 /* 162 */
527 #pragma pack(push, 1) 527 #pragma pack(push, 1)
528 struct BLVRenderParams 528 struct BLVRenderParams
529 { 529 {
530 inline BLVRenderParams():
531 uFlags(0)
532 {}
533
530 int Reset(struct IndoorLocation_drawstru *a2); 534 int Reset(struct IndoorLocation_drawstru *a2);
531 535
532 int field_0_timer_; 536 int field_0_timer_;
533 int uFlags; // & INDOOR_CAMERA_DRAW_D3D_OUTLINES: render d3d outlines 537 int uFlags; // & INDOOR_CAMERA_DRAW_D3D_OUTLINES: render d3d outlines
534 Vec3_int_ vPartyPos; 538 Vec3_int_ vPartyPos;