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 copied

Legend:

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

    r6006 r6009  
    1010
    1111   ### File Specific:
    12    main-programmer: ...
     12   main-programmer: Patrick Boenzli
    1313   co-programmer: ...
    1414*/
    1515
    16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
     16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_MODEL
    1717
    18 #include "proto_class.h"
     18#include "abstract_model.h"
    1919
    2020using namespace std;
     
    2525 * @todo this constructor is not jet implemented - do it
    2626*/
    27 ProtoClass::ProtoClass ()
     27AbstractModel::AbstractModel()
    2828{
    29    this->setClassID(CL_PROTO_ID, "ProtoClass");
     29//   this->setClassID(CL_PROTO_ID, "ProtoClass");
     30  this->pModelInfo.numVertices = 0;
     31  this->pModelInfo.numTriangles = 0;
     32  this->pModelInfo.numTexCoor = 0;
    3033
    31    /* If you make a new class, what is most probably the case when you write this file
    32       don't forget to:
    33        1. Add the new file new_class.cc to the ./src/Makefile.am
    34        2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS
    35 
    36       Advanced Topics:
    37       - if you want to let your object be managed via the ObjectManager make sure to read
    38         the object_manager.h header comments. You will use this most certanly only if you
    39         make many objects of your class, like a weapon bullet.
    40    */
     34  this->pModelInfo.pVertices = NULL;
     35  this->pModelInfo.pTriangles = NULL;
     36  this->pModelInfo.pNormals = NULL;
     37  this->pModelInfo.pTexCoor = NULL;
    4138}
    4239
     
    4542 * standard deconstructor
    4643*/
    47 ProtoClass::~ProtoClass ()
     44AbstractModel::~AbstractModel()
    4845{
    4946  // delete what has to be deleted here
Note: See TracChangeset for help on using the changeset viewer.