comparison Vis.cpp @ 692:066e2b29b30f

viewport.cpp added
author Gloval
date Sat, 16 Mar 2013 21:57:32 +0400
parents ecfb1b3c9a39
children bd611ae85d27
comparison
equal deleted inserted replaced
691:c93f29773f84 692:066e2b29b30f
1741 if (Vis_static_stru_F91E10.uNumPointers) 1741 if (Vis_static_stru_F91E10.uNumPointers)
1742 { 1742 {
1743 if (Vis_static_stru_F91E10.object_pointers[0]->actual_z > pBillboardRenderList[v3].actual_z) 1743 if (Vis_static_stru_F91E10.object_pointers[0]->actual_z > pBillboardRenderList[v3].actual_z)
1744 return 1; 1744 return 1;
1745 } 1745 }
1746 else if ((double)(pViewport->uScreenX) <= *(float *)&v35 && 1746 else if ((double)(pViewport->uScreen_TL_X) <= *(float *)&v35 &&
1747 (double)pViewport->uScreenZ >= *(float *)&v35 && 1747 (double)pViewport->uScreen_BR_X >= *(float *)&v35 &&
1748 (double)pViewport->uScreenY <= *(float *)&v36 && 1748 (double)pViewport->uScreen_TL_Y <= *(float *)&v36 &&
1749 (double)pViewport->uScreenW >= *(float *)&v36) 1749 (double)pViewport->uScreen_BR_Y >= *(float *)&v36)
1750 return 1; 1750 return 1;
1751 v40 = 0; 1751 v40 = 0;
1752 v10 = (int)&pRenderer->pBillboardRenderListD3D[uD3DBillboardIdx].pQuards[0].pos.y; 1752 v10 = (int)&pRenderer->pBillboardRenderListD3D[uD3DBillboardIdx].pQuards[0].pos.y;
1753 LODWORD(v38) = (int)&pRenderer->pBillboardRenderListD3D[uD3DBillboardIdx].pQuards[0].pos.y; 1753 LODWORD(v38) = (int)&pRenderer->pBillboardRenderListD3D[uD3DBillboardIdx].pQuards[0].pos.y;
1754 while ( 1 ) 1754 while ( 1 )
1755 { 1755 {
1756 v12 = *(float *)(v10 - 4); 1756 v12 = *(float *)(v10 - 4);
1757 v11 = *(float *)v10; 1757 v11 = *(float *)v10;
1758 v13 = *(float *)(v10 - 4); 1758 v13 = *(float *)(v10 - 4);
1759 Vis_static_stru_F91E10.uNumPointers = 0; 1759 Vis_static_stru_F91E10.uNumPointers = 0;
1760 if ( v13 >= (double)(pViewport->uScreenX)) 1760 if ( v13 >= (double)(pViewport->uScreen_TL_X))
1761 { 1761 {
1762 if ( v12 <= (double)pViewport->uScreenZ ) 1762 if ( v12 <= (double)pViewport->uScreen_BR_X )
1763 { 1763 {
1764 if ( v11 >= (double)pViewport->uScreenY ) 1764 if ( v11 >= (double)pViewport->uScreen_TL_Y )
1765 { 1765 {
1766 if ( v11 <= (double)pViewport->uScreenW ) 1766 if ( v11 <= (double)pViewport->uScreen_BR_Y )
1767 { 1767 {
1768 v14 = v11; 1768 v14 = v11;
1769 v15 = v12; 1769 v15 = v12;
1770 CastPickRay(local_80, SLODWORD(v15), v14, fDepth); 1770 CastPickRay(local_80, SLODWORD(v15), v14, fDepth);
1771 if ( uCurrentlyLoadedLevelType == 1 ) 1771 if ( uCurrentlyLoadedLevelType == 1 )
1809 } 1809 }
1810 if ( v38 > (double)v41 ) 1810 if ( v38 > (double)v41 )
1811 v41 = v38; 1811 v41 = v38;
1812 Vis_static_stru_F91E10.uNumPointers = 0; 1812 Vis_static_stru_F91E10.uNumPointers = 0;
1813 v23 = (v20 - v21) * 0.5; 1813 v23 = (v20 - v21) * 0.5;
1814 if ( v23 < (double)(pViewport->uScreenX) 1814 if ( v23 < (double)(pViewport->uScreen_TL_X)
1815 || v23 > (double)pViewport->uScreenZ 1815 || v23 > (double)pViewport->uScreen_BR_X
1816 || (double)pViewport->uScreenY > v41 1816 || (double)pViewport->uScreen_TL_Y > v41
1817 || (double)pViewport->uScreenW < v41 1817 || (double)pViewport->uScreen_BR_Y < v41
1818 || ((v25 = v23, CastPickRay(local_80, SLODWORD(v25), v41, fDepth), uCurrentlyLoadedLevelType != 1) ? 1818 || ((v25 = v23, CastPickRay(local_80, SLODWORD(v25), v41, fDepth), uCurrentlyLoadedLevelType != 1) ?
1819 (PickOutdoorFaces_Mouse(fDepth, local_80, &Vis_static_stru_F91E10, &vis_face_filter, false)) : 1819 (PickOutdoorFaces_Mouse(fDepth, local_80, &Vis_static_stru_F91E10, &vis_face_filter, false)) :
1820 (PickIndoorFaces_Mouse(fDepth, local_80, &Vis_static_stru_F91E10, &vis_face_filter)), 1820 (PickIndoorFaces_Mouse(fDepth, local_80, &Vis_static_stru_F91E10, &vis_face_filter)),
1821 (Vis_static_stru_F91E10.create_object_pointers(), 1821 (Vis_static_stru_F91E10.create_object_pointers(),
1822 sort_object_pointers(Vis_static_stru_F91E10.object_pointers, 0, Vis_static_stru_F91E10.uNumPointers - 1), 1822 sort_object_pointers(Vis_static_stru_F91E10.object_pointers, 0, Vis_static_stru_F91E10.uNumPointers - 1),