~rebel/horde3d/trunk

« back to all changes in this revision

Viewing changes to trunk/Tools/Dependencies/RecastNavigation/DebugUtils/Source/DebugDraw.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:
17
17
//
18
18
 
19
19
#define _USE_MATH_DEFINES
20
 
#include <math.h>
21
20
#include <string.h>
22
21
#include "DebugDraw.h"
 
22
#include "DetourMath.h"
23
23
 
24
24
 
25
25
duDebugDraw::~duDebugDraw()
180
180
                for (int i = 0; i < NUM_SEG; ++i)
181
181
                {
182
182
                        const float a = (float)i/(float)NUM_SEG*DU_PI*2;
183
 
                        dir[i*2] = cosf(a);
184
 
                        dir[i*2+1] = sinf(a);
 
183
                        dir[i*2] = dtMathCosf(a);
 
184
                        dir[i*2+1] = dtMathSinf(a);
185
185
                }
186
186
        }
187
187