Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 10, 2007, 11:14:32 AM (17 years ago)
Author:
patrick
Message:

tracing a bug within the mp structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/lib/graphics/importer/model.cc

    r9869 r10201  
    1717
    1818#include "model.h"
    19 
     19#include "debug.h"
    2020#include "glincl.h"
    2121
     
    8888  glEnd();
    8989}
     90
     91
     92/**
     93 * adds a mounting point to the model
     94 * @param up up vector
     95 * @param forward forward vector
     96 * @param center center vector
     97 */
     98void Model::addMountPoint(const Vector& up, const Vector& forward, const Vector& center, const std::string& name)
     99{
     100  PRINTF(0)("added mount point\n");
     101
     102  mountPointSkeleton mps;
     103  mps.up = up;
     104  mps.forward = forward;
     105  mps.center = center;
     106  mps.name = name;
     107
     108  this->mountPoints.push_back(mps);
     109  PRINTF(0)(" size: %i\n", this->mountPoints.size());
     110}
Note: See TracChangeset for help on using the changeset viewer.