comparison Indoor.h @ 2139:f9b55be70c1b

Слияние
author Ritor1
date Thu, 02 Jan 2014 09:11:28 +0600
parents a869b0376b48
children 00bd098f6435
comparison
equal deleted inserted replaced
2138:7cc14d9d966d 2139:f9b55be70c1b
226 226
227 #define FACE_PORTAL 0x00000001 // portal/two-sided 227 #define FACE_PORTAL 0x00000001 // portal/two-sided
228 #define FACE_CAN_SATURATE_COLOR 0x00000002 228 #define FACE_CAN_SATURATE_COLOR 0x00000002
229 #define FACE_FLUID 0x00000010 // wavy animated water or lava 229 #define FACE_FLUID 0x00000010 // wavy animated water or lava
230 #define FACE_DONT_CACHE_TEXTURE 0x00000040 // do not load face texture if it isn't loaded already 230 #define FACE_DONT_CACHE_TEXTURE 0x00000040 // do not load face texture if it isn't loaded already
231 #define FACE_UNKNOW4 0x00000080
231 #define FACE_XY_PLANE 0x00000100 232 #define FACE_XY_PLANE 0x00000100
232 #define FACE_XZ_PLANE 0x00000200 233 #define FACE_XZ_PLANE 0x00000200
233 #define FACE_YZ_PLANE 0x00000400 234 #define FACE_YZ_PLANE 0x00000400
235 #define FACE_UNKNOW3 0x00001000
234 #define FACE_INVISIBLE 0x00002000 236 #define FACE_INVISIBLE 0x00002000
235 #define FACE_TEXTURE_FRAME 0x00004000 // Texture ID is a frameset from TextureFrameTable, otherwise BitmapID 237 #define FACE_TEXTURE_FRAME 0x00004000 // Texture ID is a frameset from TextureFrameTable, otherwise BitmapID
236 #define FACE_OUTLINED 0x00010000 // outline face edges 238 #define FACE_OUTLINED 0x00010000 // outline face edges
237 #define FACE_TEXTURE_FLOW 0x00040000 // The texture moves slowly. For horizontal facets only. 239 #define FACE_TEXTURE_FLOW 0x00040000 // The texture moves slowly. For horizontal facets only.
240 #define FACE_UNKNOW 0x00100000
238 #define FACE_INDOOR_SKY 0x00400000 241 #define FACE_INDOOR_SKY 0x00400000
239 #define FACE_CLICKABLE 0x02000000 // Event can be triggered by clicking on the facet. 242 #define FACE_CLICKABLE 0x02000000 // Event can be triggered by clicking on the facet.
240 #define FACE_PRESSURE_PLATE 0x04000000 // Event can be triggered by stepping on the facet. 243 #define FACE_PRESSURE_PLATE 0x04000000 // Event can be triggered by stepping on the facet.
244 #define FACE_INDICATE 0x06000000 // Event can be triggered by indicating on the facet.
245 #define FACE_UNKNOW2 0x10000000
241 #define FACE_ETHEREAL 0x20000000 // Untouchable. You can pass through it. 246 #define FACE_ETHEREAL 0x20000000 // Untouchable. You can pass through it.
242 #define FACE_PICKED 0x80000000 247 #define FACE_PICKED 0x80000000
243 248
244 /* 93 */ 249 /* 93 */
245 #pragma pack(push, 1) 250 #pragma pack(push, 1)
255 this->pZInterceptDisplacements = 0; 260 this->pZInterceptDisplacements = 0;
256 this->pYInterceptDisplacements = 0; 261 this->pYInterceptDisplacements = 0;
257 this->pXInterceptDisplacements = 0; 262 this->pXInterceptDisplacements = 0;
258 } 263 }
259 264
260 char _get_normals(Vec3_int_ *a2, Vec3_int_ *a3); 265 void _get_normals(Vec3_int_ *a2, Vec3_int_ *a3);
261 struct Texture *GetTexture(); 266 struct Texture *GetTexture();
262 void FromODM(struct ODMFace *face); 267 void FromODM(struct ODMFace *face);
263 268
264 inline bool Invisible() const {return (uAttributes & FACE_INVISIBLE) != 0;} 269 inline bool Invisible() const {return (uAttributes & FACE_INVISIBLE) != 0;}
265 inline bool Visible() const {return !Invisible();} 270 inline bool Visible() const {return !Invisible();}
266 inline bool Portal() const {return (uAttributes & FACE_PORTAL) != 0;} 271 inline bool Portal() const {return (uAttributes & FACE_PORTAL) != 0;}
267 inline bool Fluid() const {return (uAttributes & FACE_FLUID) != 0;} 272 inline bool Fluid() const {return (uAttributes & FACE_FLUID) != 0;}
273 inline bool Indoor_sky() const {return (uAttributes & FACE_INDOOR_SKY) != 0;}
268 inline bool Clickable() const {return (uAttributes & FACE_CLICKABLE) != 0;} 274 inline bool Clickable() const {return (uAttributes & FACE_CLICKABLE) != 0;}
275 inline bool Pressure_Plate() const {return (uAttributes & FACE_PRESSURE_PLATE) != 0;}
269 inline bool Ethereal() const {return (uAttributes & FACE_ETHEREAL) != 0;} 276 inline bool Ethereal() const {return (uAttributes & FACE_ETHEREAL) != 0;}
270 277
271 struct Plane_float_ pFacePlane; 278 struct Plane_float_ pFacePlane;
272 struct Plane_int_ pFacePlane_old; 279 struct Plane_int_ pFacePlane_old;
273 int zCalc1; 280 int zCalc1;
493 float _unused_fSineY; // matches old IndoorCamera::fRotationSineY (new IndoorCameraD3D::fRotationSineY) 500 float _unused_fSineY; // matches old IndoorCamera::fRotationSineY (new IndoorCameraD3D::fRotationSineY)
494 float _unused_fCosineNegX; // the same 501 float _unused_fCosineNegX; // the same
495 float _unused_fSineNegX; // the same 502 float _unused_fSineNegX; // the same
496 int fov_rad_fixpoint; 503 int fov_rad_fixpoint;
497 int fov_rad_inv_fixpoint;//float 504 int fov_rad_inv_fixpoint;//float
498 unsigned __int16 *pRenderTarget; 505 void *pRenderTarget;
499 unsigned int uTargetWidth; 506 unsigned int uTargetWidth;
500 unsigned int uTargetHeight; 507 unsigned int uTargetHeight;
501 unsigned int uViewportX; 508 unsigned int uViewportX;
502 unsigned int uViewportY; 509 unsigned int uViewportY;
503 unsigned int uViewportZ; 510 unsigned int uViewportZ;