Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2005, 4:07:04 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: abstract model implementation in .cc

@patrick: do you aprove?

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/vertex_array_model.cc

    r6008 r6009  
    2727using namespace std;
    2828
    29 /**
    30  *  cleans up a ModelGroup
    31 
    32    actually does the same as the delete Operator, but does not delete the predecessing group
    33 */
    34 void ModelGroup::cleanup()
    35 {
    36   PRINTF(5)("Cleaning up group\n");
    37   if (this->firstFace)
    38     delete this->firstFace;
    39   this->firstFace = NULL;
    40   if (this->next)
    41     this->next->cleanup();
    42 }
    43 
    44 
    4529/////////////
    4630/// MODEL ///
     
    6044  this->finalized = false;
    6145  // setting the start group;
    62   this->currentGroup = this->firstGroup = new ModelGroup;
    63   this->groupCount = 0;
    64   this->vertexCount = 0;
    65   this->normalCount = 0;
    66   this->texCoordCount = 0;
    67   this->faceCount = 0;
    68   this->triangleCount = 0;
    69   this->triangles = NULL;
    70   this->pModelInfo = NULL;
    7146
    7247  this->scaleFactor = 1;
Note: See TracChangeset for help on using the changeset viewer.