Changeset 3089 for code/trunk/src/orxonox/tools/DynamicRenderable.cpp
- Timestamp:
- May 27, 2009, 4:11:31 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/map (added) merged: 2802,2812,2837-2838,2856,2913,2942,2956,2977,3082
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/tools/DynamicRenderable.cpp
- Property svn:eol-style set to native
r3087 r3089 5 5 using namespace Ogre; 6 6 7 namespace orxonox 8 { 7 9 DynamicRenderable::DynamicRenderable() 8 10 { … … 33 35 } 34 36 35 void DynamicRenderable::prepareHardwareBuffers(size_t vertexCount, 37 void DynamicRenderable::prepareHardwareBuffers(size_t vertexCount, 36 38 size_t indexCount) 37 39 { … … 57 59 newVertCapacity >>= 1; 58 60 } 59 if (newVertCapacity != mVertexBufferCapacity) 61 if (newVertCapacity != mVertexBufferCapacity) 60 62 { 61 63 mVertexBufferCapacity = newVertCapacity; … … 94 96 95 97 } 96 else if (indexCount < newIndexCapacity>>1) 98 else if (indexCount < newIndexCapacity>>1) 97 99 { 98 100 // Make capacity the previous power of two … … 132 134 return vDist.squaredLength(); 133 135 } 136 }
Note: See TracChangeset
for help on using the changeset viewer.