Ignore:
Timestamp:
10/08/07 13:57:35 (17 years ago)
Author:
mattausch
Message:

implemented part of chc++

Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgrePlatformHierarchyInterface.cpp

    r2555 r2556  
    240240        //////// 
    241241        //-- the actual query test 
     242 
    242243        query->BeginQuery(); 
    243244 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreSolidBoundingBox.cpp

    r2532 r2556  
    8484void SolidBoundingBox::SetupBoundingBoxVertices(const AxisAlignedBox& aab)  
    8585{ 
    86         const Vector3& min = aab.getMinimum(); 
    87     const Vector3& max = aab.getMaximum(); 
     86        const Vector3& minV = aab.getMinimum(); 
     87    const Vector3& maxV = aab.getMaximum(); 
    8888 
    8989        // fill the vertex buffer: 12 lines with 2 endpoints each make up a box 
     
    9393    float* pPos = static_cast<float*>(vbuf->lock(HardwareBuffer::HBL_DISCARD)); 
    9494 
    95         *pPos++ = min.x; *pPos++ = max.y; *pPos++ = min.z;  
    96         *pPos++ = max.x; *pPos++ = max.y; *pPos++ = min.z;  
    97         *pPos++ = max.x; *pPos++ = min.y; *pPos++ = min.z;  
    98         *pPos++ = min.x; *pPos++ = min.y; *pPos++ = min.z;  
     95        pPos[0]  = minV.x; pPos[1]  = maxV.y; pPos[2]  = minV.z;  
     96        pPos[3]  = maxV.x; pPos[4]  = maxV.y; pPos[5]  = minV.z;  
     97        pPos[6]  = maxV.x; pPos[7]  = minV.y; pPos[8]  = minV.z;  
     98        pPos[9]  = minV.x; pPos[10]  = minV.y; pPos[11] = minV.z;  
    9999                 
    100         *pPos++ = min.x; *pPos++ = max.y; *pPos++ = max.z;  
    101         *pPos++ = max.x; *pPos++ = max.y; *pPos++ = max.z;  
    102         *pPos++ = max.x; *pPos++ = min.y; *pPos++ = max.z;  
    103         *pPos++ = min.x; *pPos++ = min.y; *pPos++ = max.z; 
     100        pPos[12] = minV.x; pPos[13] = maxV.y; pPos[14] = maxV.z;  
     101        pPos[15] = maxV.x; pPos[16] = maxV.y; pPos[17] = maxV.z;  
     102        pPos[18] = maxV.x; pPos[19] = minV.y; pPos[20] = maxV.z;  
     103        pPos[21] = minV.x; pPos[22] = minV.y; pPos[23] = maxV.z; 
    104104 
    105105    vbuf->unlock(); 
Note: See TracChangeset for help on using the changeset viewer.