Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2009, 4:11:31 PM (16 years ago)
Author:
landauf
Message:

merged map branch back to trunk

Location:
code/trunk
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/tools/DynamicRenderable.cpp

    • Property svn:eol-style set to native
    r3087 r3089  
    55using namespace Ogre;
    66
     7namespace orxonox
     8{
    79DynamicRenderable::DynamicRenderable()
    810{
     
    3335}
    3436
    35 void DynamicRenderable::prepareHardwareBuffers(size_t vertexCount, 
     37void DynamicRenderable::prepareHardwareBuffers(size_t vertexCount,
    3638                                               size_t indexCount)
    3739{
     
    5759      newVertCapacity >>= 1;
    5860  }
    59   if (newVertCapacity != mVertexBufferCapacity) 
     61  if (newVertCapacity != mVertexBufferCapacity)
    6062  {
    6163    mVertexBufferCapacity = newVertCapacity;
     
    9496
    9597    }
    96     else if (indexCount < newIndexCapacity>>1) 
     98    else if (indexCount < newIndexCapacity>>1)
    9799    {
    98100      // Make capacity the previous power of two
     
    132134   return vDist.squaredLength();
    133135}
     136}
Note: See TracChangeset for help on using the changeset viewer.