Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/AI/PathFinding/NavMeshes/DetourTileCache/Headers/DivideTileCache.h

Diff revisions: vs.
  @@ -103,7 +103,7 @@
103 103 ~RasterizationContext()
104 104 {
105 105 rcFreeHeightField(solid);
106 - SAFE_DELETE_ARRAY(triareas);
106 + DELETE_ARRAY(triareas);
107 107 rcFreeHeightfieldLayerSet(lset);
108 108 rcFreeCompactHeightfield(chf);
109 109 for (I32 i = 0; i < MAX_LAYERS; ++i)
  @@ -417,7 +417,8 @@
417 417 * The current implementation of convex obstacles is very simple and not deferred. Also obstacles
418 418 * are stored in the inputGeom, which is not really nice.
419 419 **/
420 - //TODO by adding deferred tasking to add and removeConvexShapeObstacle one can add multiple shapes at once to the same tile without it being rebuilt multiple times
420 + // TODO by adding deferred tasking to add and remove ConvexShapeObstacle
421 + // one can add multiple shapes at once to the same tile without it being rebuilt multiple times
421 422 int addConvexShapeObstacle(ConvexVolume *obstacle);
422 423
423 424 /**
  @@ -518,12 +519,23 @@
518 519 * This process uses a large part of the recast navmesh building pipeline (implemented in OgreRecast::NavMeshBuild()),
519 520 * up till step 4.
520 521 **/
521 - int rasterizeTileLayers(SceneGraphNode* const geom, const I32 tx, const I32 ty, const rcConfig& cfg, TileCacheData* tiles, const I32 maxTiles);
522 + I32 rasterizeTileLayers(SceneGraphNode* const geom,
523 + const I32 tx,
524 + const I32 ty,
525 + const rcConfig& cfg,
526 + TileCacheData* tiles,
527 + const I32 maxTiles);
522 528
523 529 /**
524 530 * Debug draw a navmesh poly
525 531 **/
526 - void drawPolyMesh(const stringImpl& tileName, const struct dtTileCachePolyMesh &mesh, const F32 *orig, const F32 cs, const F32 ch, const struct dtTileCacheLayer &regionLayers, bool colorRegions=true);
532 + void drawPolyMesh(const stringImpl& tileName,
533 + const struct dtTileCachePolyMesh &mesh,
534 + const F32 *orig,
535 + const F32 cs,
536 + const F32 ch,
537 + const struct dtTileCacheLayer &regionLayers,
538 + bool colorRegions = true);
527 539
528 540 /**
529 541 * Inits the tilecache. Helper used by constructors.
  @@ -538,7 +550,9 @@
538 550 * In the future this variable will probably disappear.
539 551 **/
540 552 SceneGraphNode* m_geom;
541 - // TODO maybe in the future I don't want to store inputgeom anymore, at the moment it's only used for adding convex shapes (what really should be done from compressed tiles instead of rebuilding from input geom) The whole navmesh can be stored as compressed tiles, the input geom does not need to be stored.
553 + // TODO maybe in the future I don't want to store inputgeom anymore, at the moment it's only used for adding convex shapes
554 + // (what really should be done from compressed tiles instead of rebuilding from input geom)
555 + // The whole navmesh can be stored as compressed tiles, the input geom does not need to be stored.
542 556
543 557 /**
544 558 * Set to true to keep intermediary results from navmesh build for debugging purposes.