- Timestamp:
- Jan 10, 2007, 3:18:41 PM (18 years ago)
- Location:
- branches/mount_points/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/model.cc
r10201 r10216 98 98 void Model::addMountPoint(const Vector& up, const Vector& forward, const Vector& center, const std::string& name) 99 99 { 100 PRINTF(0)("added mount point\n");101 102 100 mountPointSkeleton mps; 103 101 mps.up = up; … … 107 105 108 106 this->mountPoints.push_back(mps); 109 PRINTF(0)(" size: %i\n", this->mountPoints.size());110 107 } -
branches/mount_points/src/lib/graphics/importer/static_model.cc
r10202 r10216 228 228 this->pModelInfo.pTriangles = this->data->getTrianglesExt(); 229 229 this->pModelInfo.numTriangles = this->data->getTriangles().size(); 230 231 this->extractMountPoints();232 230 } 233 231 -
branches/mount_points/src/story_entities/game_world.cc
r10013 r10216 11 11 ### File Specific: 12 12 main-programmer: Patrick Boenzli 13 main-programmer: Benjamin Grauer 13 14 co-programmer: Christian Meyer 14 co-programmer: Benjamin Grauer 15 15 16 */ 16 17 … … 73 74 SHELL_COMMAND(togglePNodeVisibility, GameWorld, togglePNodeVisibility); 74 75 SHELL_COMMAND(showBVLevel, GameWorld, toggleBVVisibility); 76 SHELL_COMMAND(showMountPoints, GameWorld, toggleMPVisibility); 75 77 76 78 -
branches/mount_points/src/story_entities/game_world.h
r9869 r10216 62 62 void togglePNodeVisibility(); 63 63 void toggleBVVisibility(int level); 64 inline void toggleMPVisibility() { this->showMPV = !this->showMPV; } 64 65 65 66 inline void setSky(WorldEntity* sky) { this->dataTank->sky = sky; } … … 99 100 bool showBV; //!< if the Bounding Volumes should be visible. 100 101 int showBVLevel; //!< the depth level of the displayed bounding volumes 102 bool showMPV; //!< true if the mounting points should be drawn for debug purposes 101 103 102 104 /* world timing */ -
branches/mount_points/src/world_entities/mount_point.cc
r10203 r10216 35 35 MountPoint::MountPoint (const Vector& up, const Vector& forward, const Vector& center, const std::string& name) 36 36 { 37 PRINTF(0)("Created mount point %s\n", name.c_str()); 37 38 38 39 this->_name = name; -
branches/mount_points/src/world_entities/world_entity.cc
r10203 r10216 278 278 PRINTF(0)("loading the oif File: %s\n", fileName.c_str()); 279 279 280 // extract the mount points 281 model->extractMountPoints(); 282 280 283 // first get all mount points from the model 281 284 const std::list<mountPointSkeleton> mpList = model->getMountPoints();
Note: See TracChangeset
for help on using the changeset viewer.