Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2847 in orxonox.OLD for orxonox/trunk/importer/object.cc


Ignore:
Timestamp:
Nov 13, 2004, 12:12:33 AM (21 years ago)
Author:
bensch
Message:

orxonox/trunk/importer: implemented destructors of Class Array and Class Material… working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/importer/object.cc

    r2846 r2847  
    2424
    2525  initialize();
    26   //  importFile ("");
     26
    2727  BoxObject();
    2828
     
    5757
    5858  finalize();
     59}
     60
     61/**
     62   \brief deletes an Object
     63*/
     64Object::~Object()
     65{
     66  if (verbose >= 2)
     67    printf ("Don't know what to delete, or how to destroy a glList\n");
     68
    5969}
    6070
     
    8090  vTexture = new Array();
    8191
     92  material = new Material();
     93
    8294  glNewList (listNumber, GL_COMPILE);
    8395  glEnableClientState (GL_VERTEX_ARRAY);
     
    111123  glEnd();
    112124  glEndList();
     125  delete vertices;
     126  delete normals;
     127  delete vTexture;
     128  if (material != NULL)
     129    delete material;
    113130  return true;
    114131}
     
    351368    printf ("Opening mtlFile: %s\n", mtlFileName);
    352369  char Buffer[500];
    353   vertices = new Array();
    354   material = new Material();
    355370  Material* tmpMat = material;
    356371  while(!MTL_FILE->eof())
Note: See TracChangeset for help on using the changeset viewer.