Changeset 2556 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Timestamp:
- 10/08/07 13:57:35 (17 years ago)
- 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 240 240 //////// 241 241 //-- the actual query test 242 242 243 query->BeginQuery(); 243 244 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreSolidBoundingBox.cpp
r2532 r2556 84 84 void SolidBoundingBox::SetupBoundingBoxVertices(const AxisAlignedBox& aab) 85 85 { 86 const Vector3& min = aab.getMinimum();87 const Vector3& max = aab.getMaximum();86 const Vector3& minV = aab.getMinimum(); 87 const Vector3& maxV = aab.getMaximum(); 88 88 89 89 // fill the vertex buffer: 12 lines with 2 endpoints each make up a box … … 93 93 float* pPos = static_cast<float*>(vbuf->lock(HardwareBuffer::HBL_DISCARD)); 94 94 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; 99 99 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; 104 104 105 105 vbuf->unlock();
Note: See TracChangeset
for help on using the changeset viewer.