~rebel/horde3d/trunk

« back to all changes in this revision

Viewing changes to trunk/Tools/Dependencies/RecastNavigation/Recast/Source/Recast.cpp

  • Committer: felix
  • Date: 2015-07-07 12:57:07 UTC
  • Revision ID: svn-v4:5ce291ac-9df0-446f-9e4f-d57731c4dda7::1699
- Updated RecastNavigation to latest version and fixed multiple issues.
- Adapted GameDetourComponent, GameDetourCrowdComponent, DetourCrowdDemo and AAA accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
/// See the #rcConfig documentation for more information on the configuration parameters.
209
209
/// 
210
210
/// @see rcAllocHeightfield, rcHeightfield 
211
 
bool rcCreateHeightfield(rcContext* /*ctx*/, rcHeightfield& hf, int width, int height,
 
211
bool rcCreateHeightfield(rcContext* ctx, rcHeightfield& hf, int width, int height,
212
212
                                                 const float* bmin, const float* bmax,
213
213
                                                 float cs, float ch)
214
214
{
215
 
        // TODO: VC complains about unref formal variable, figure out a way to handle this better.
216
 
//      rcAssert(ctx);
 
215
        rcIgnoreUnused(ctx);
217
216
        
218
217
        hf.width = width;
219
218
        hf.height = height;
239
238
 
240
239
/// @par
241
240
///
242
 
/// Only sets the aread id's for the walkable triangles.  Does not alter the
 
241
/// Only sets the area id's for the walkable triangles.  Does not alter the
243
242
/// area id's for unwalkable triangles.
244
243
/// 
245
244
/// See the #rcConfig documentation for more information on the configuration parameters.
246
245
/// 
247
246
/// @see rcHeightfield, rcClearUnwalkableTriangles, rcRasterizeTriangles
248
 
void rcMarkWalkableTriangles(rcContext* /*ctx*/, const float walkableSlopeAngle,
 
247
void rcMarkWalkableTriangles(rcContext* ctx, const float walkableSlopeAngle,
249
248
                                                         const float* verts, int /*nv*/,
250
249
                                                         const int* tris, int nt,
251
250
                                                         unsigned char* areas)
252
251
{
253
 
        // TODO: VC complains about unref formal variable, figure out a way to handle this better.
254
 
//      rcAssert(ctx);
 
252
        rcIgnoreUnused(ctx);
255
253
        
256
254
        const float walkableThr = cosf(walkableSlopeAngle/180.0f*RC_PI);
257
255
 
269
267
 
270
268
/// @par
271
269
///
272
 
/// Only sets the aread id's for the unwalkable triangles.  Does not alter the
 
270
/// Only sets the area id's for the unwalkable triangles.  Does not alter the
273
271
/// area id's for walkable triangles.
274
272
/// 
275
273
/// See the #rcConfig documentation for more information on the configuration parameters.
276
274
/// 
277
275
/// @see rcHeightfield, rcClearUnwalkableTriangles, rcRasterizeTriangles
278
 
void rcClearUnwalkableTriangles(rcContext* /*ctx*/, const float walkableSlopeAngle,
 
276
void rcClearUnwalkableTriangles(rcContext* ctx, const float walkableSlopeAngle,
279
277
                                                                const float* verts, int /*nv*/,
280
278
                                                                const int* tris, int nt,
281
279
                                                                unsigned char* areas)
282
280
{
283
 
        // TODO: VC complains about unref formal variable, figure out a way to handle this better.
284
 
//      rcAssert(ctx);
 
281
        rcIgnoreUnused(ctx);
285
282
        
286
283
        const float walkableThr = cosf(walkableSlopeAngle/180.0f*RC_PI);
287
284
        
297
294
        }
298
295
}
299
296
 
300
 
int rcGetHeightFieldSpanCount(rcContext* /*ctx*/, rcHeightfield& hf)
 
297
int rcGetHeightFieldSpanCount(rcContext* ctx, rcHeightfield& hf)
301
298
{
302
 
        // TODO: VC complains about unref formal variable, figure out a way to handle this better.
303
 
//      rcAssert(ctx);
 
299
        rcIgnoreUnused(ctx);
304
300
        
305
301
        const int w = hf.width;
306
302
        const int h = hf.height;
322
318
/// @par
323
319
///
324
320
/// This is just the beginning of the process of fully building a compact heightfield.
325
 
/// Various filters may be applied applied, then the distance field and regions built.
 
321
/// Various filters may be applied, then the distance field and regions built.
326
322
/// E.g: #rcBuildDistanceField and #rcBuildRegions
327
323
///
328
324
/// See the #rcConfig documentation for more information on the configuration parameters.
490
486
        size += sizeof(rcCompactCell) * chf.width * chf.height;
491
487
        return size;
492
488
}
493
 
*/
 
 
b'\\ No newline at end of file'
 
489
*/