Mercurial > mm7
comparison Indoor.cpp @ 1025:8b492d4722d4
Intersection
author | Ritor1 |
---|---|
date | Tue, 21 May 2013 12:42:57 +0600 |
parents | 0d96349d8c87 |
children | 6afa77761a00 |
comparison
equal
deleted
inserted
replaced
1024:d353bd3009d9 | 1025:8b492d4722d4 |
---|---|
393 pGame->DrawParticles(); | 393 pGame->DrawParticles(); |
394 array_5118E8._440F07(); | 394 array_5118E8._440F07(); |
395 } | 395 } |
396 | 396 |
397 //----- (004C0EF2) -------------------------------------------------------- | 397 //----- (004C0EF2) -------------------------------------------------------- |
398 void BLVFace::FromODM(ODMFace *a2) | 398 void BLVFace::FromODM(ODMFace *face) |
399 { | 399 { |
400 this->pFacePlane_old.vNormal.x = a2->pFacePlane.vNormal.x; | 400 this->pFacePlane_old.vNormal.x = face->pFacePlane.vNormal.x; |
401 this->pFacePlane_old.vNormal.y = a2->pFacePlane.vNormal.y; | 401 this->pFacePlane_old.vNormal.y = face->pFacePlane.vNormal.y; |
402 this->pFacePlane_old.vNormal.z = a2->pFacePlane.vNormal.z; | 402 this->pFacePlane_old.vNormal.z = face->pFacePlane.vNormal.z; |
403 this->pFacePlane_old.dist = a2->pFacePlane.dist; | 403 this->pFacePlane_old.dist = face->pFacePlane.dist; |
404 this->pFacePlane.vNormal.x = (double)(a2->pFacePlane.vNormal.x & 0xFFFF) * 0.000015259022 | 404 this->pFacePlane.vNormal.x = (double)(face->pFacePlane.vNormal.x & 0xFFFF) * 0.000015259022 |
405 + (double)(a2->pFacePlane.vNormal.x >> 16); | 405 + (double)(face->pFacePlane.vNormal.x >> 16); |
406 this->pFacePlane.vNormal.y = (double)(a2->pFacePlane.vNormal.y & 0xFFFF) * 0.000015259022 | 406 this->pFacePlane.vNormal.y = (double)(face->pFacePlane.vNormal.y & 0xFFFF) * 0.000015259022 |
407 + (double)(a2->pFacePlane.vNormal.y >> 16); | 407 + (double)(face->pFacePlane.vNormal.y >> 16); |
408 this->pFacePlane.vNormal.z = (double)(a2->pFacePlane.vNormal.z & 0xFFFF) * 0.000015259022 | 408 this->pFacePlane.vNormal.z = (double)(face->pFacePlane.vNormal.z & 0xFFFF) * 0.000015259022 |
409 + (double)(a2->pFacePlane.vNormal.z >> 16); | 409 + (double)(face->pFacePlane.vNormal.z >> 16); |
410 this->pFacePlane.dist = (double)(a2->pFacePlane.dist & 0xFFFF) * 0.000015259022 + (double)(a2->pFacePlane.dist >> 16); | 410 this->pFacePlane.dist = (double)(face->pFacePlane.dist & 0xFFFF) * 0.000015259022 + (double)(face->pFacePlane.dist >> 16); |
411 this->uAttributes = a2->uAttributes; | 411 this->uAttributes = face->uAttributes; |
412 this->pBounding.x1 = a2->pBoundingBox.x1; | 412 this->pBounding.x1 = face->pBoundingBox.x1; |
413 this->pBounding.y1 = a2->pBoundingBox.y1; | 413 this->pBounding.y1 = face->pBoundingBox.y1; |
414 this->pBounding.z1 = a2->pBoundingBox.z1; | 414 this->pBounding.z1 = face->pBoundingBox.z1; |
415 this->pBounding.x2 = a2->pBoundingBox.x2; | 415 this->pBounding.x2 = face->pBoundingBox.x2; |
416 this->pBounding.y2 = a2->pBoundingBox.y2; | 416 this->pBounding.y2 = face->pBoundingBox.y2; |
417 this->pBounding.z2 = a2->pBoundingBox.z2; | 417 this->pBounding.z2 = face->pBoundingBox.z2; |
418 this->zCalc1 = a2->zCalc1; | 418 this->zCalc1 = face->zCalc1; |
419 this->zCalc2 = a2->zCalc2; | 419 this->zCalc2 = face->zCalc2; |
420 this->zCalc3 = a2->zCalc3; | 420 this->zCalc3 = face->zCalc3; |
421 this->pXInterceptDisplacements = a2->pXInterceptDisplacements; | 421 this->pXInterceptDisplacements = face->pXInterceptDisplacements; |
422 this->pYInterceptDisplacements = a2->pYInterceptDisplacements; | 422 this->pYInterceptDisplacements = face->pYInterceptDisplacements; |
423 this->pZInterceptDisplacements = a2->pZInterceptDisplacements; | 423 this->pZInterceptDisplacements = face->pZInterceptDisplacements; |
424 this->uPolygonType = (PolygonType)a2->uPolygonType; | 424 this->uPolygonType = (PolygonType)face->uPolygonType; |
425 this->uNumVertices = a2->uNumVertices; | 425 this->uNumVertices = face->uNumVertices; |
426 this->uBitmapID = a2->uTextureID; | 426 this->uBitmapID = face->uTextureID; |
427 this->pVertexIDs = a2->pVertexIDs; | 427 this->pVertexIDs = face->pVertexIDs; |
428 } | 428 } |
429 | 429 |
430 //----- (004B0A25) -------------------------------------------------------- | 430 //----- (004B0A25) -------------------------------------------------------- |
431 void IndoorLocation::ExecDraw_d3d(unsigned int uFaceID, IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, RenderVertexSoft *pPortalBounding) | 431 void IndoorLocation::ExecDraw_d3d(unsigned int uFaceID, IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, RenderVertexSoft *pPortalBounding) |
432 { | 432 { |