Mercurial > might-and-magic-trilogy
comparison stru6.cpp @ 59:5159d2e6f559
BLV render
author | Nomad |
---|---|
date | Fri, 26 Oct 2012 02:38:26 +0200 |
parents | bcc051713d20 |
children | fdacbc653945 |
comparison
equal
deleted
inserted
replaced
58:41cbaabde2cb | 59:5159d2e6f559 |
---|---|
121 v[1].vWorldPosition.z = p->dstZ; | 121 v[1].vWorldPosition.z = p->dstZ; |
122 pGame->pIndoorCameraD3D->ViewTransform(v, 2); | 122 pGame->pIndoorCameraD3D->ViewTransform(v, 2); |
123 | 123 |
124 sr_42620A(v); | 124 sr_42620A(v); |
125 | 125 |
126 pGame->pIndoorCameraD3D->_436BB7_project_and_stuff(v, 2, 0); | 126 pGame->pIndoorCameraD3D->Project(v, 2, 0); |
127 | 127 |
128 if (p->uTextureID != -1) | 128 if (p->uTextureID != -1) |
129 v12 = pBitmaps_LOD->pHardwareTextures[p->uTextureID]; | 129 v12 = pBitmaps_LOD->pHardwareTextures[p->uTextureID]; |
130 else | 130 else |
131 v12 = 0; | 131 v12 = 0; |
132 | 132 |
133 v10 = pGame->pIndoorCameraD3D->flt_D0 / v[1].vWorldViewPosition.x * 20.0; | 133 v10 = pGame->pIndoorCameraD3D->fov_x / v[1].vWorldViewPosition.x * 20.0; |
134 v11 = pGame->pIndoorCameraD3D->flt_D0 / v[0].vWorldViewPosition.x * 20.0; | 134 v11 = pGame->pIndoorCameraD3D->fov_x / v[0].vWorldViewPosition.x * 20.0; |
135 pRenderer->DrawProjectile( | 135 pRenderer->DrawProjectile( |
136 v[0].vWorldViewProjX, | 136 v[0].vWorldViewProjX, |
137 v[0].vWorldViewProjY, | 137 v[0].vWorldViewProjY, |
138 v[0].vWorldViewPosition.x, | 138 v[0].vWorldViewPosition.x, |
139 v11, | 139 v11, |
410 a1->vPosition.x, | 410 a1->vPosition.x, |
411 a1->vPosition.y, | 411 a1->vPosition.y, |
412 a1->vPosition.z, | 412 a1->vPosition.z, |
413 a1->uSectorID, | 413 a1->uSectorID, |
414 uRadius, | 414 uRadius, |
415 uDiffuse >> 16, | 415 (uDiffuse & 0x00FF0000) >> 16, |
416 BYTE1(uDiffuse), | 416 (uDiffuse & 0x0000FF00) >> 8, |
417 uDiffuse != 0, | 417 uDiffuse & 0x000000FF, |
418 (int *)byte_4E94D3); | 418 byte_4E94D3); |
419 } | 419 } |
420 // 4E94D3: using guessed type char byte_4E94D3; | 420 // 4E94D3: using guessed type char byte_4E94D3; |
421 | 421 |
422 //----- (004A7A66) -------------------------------------------------------- | 422 //----- (004A7A66) -------------------------------------------------------- |
423 void stru6::_4A7A66_miltiple_spell_collision_partifles___like_after_sparks_or_lightning(LayingItem *a1, unsigned int uDiffuse, unsigned int uTextureID, float a4) | 423 void stru6::_4A7A66_miltiple_spell_collision_partifles___like_after_sparks_or_lightning(LayingItem *a1, unsigned int uDiffuse, unsigned int uTextureID, float a4) |