Move Recast configurations into RecastConfig.h

This commit is contained in:
Jakob Botsch Nielsen
2017-06-28 12:42:50 +02:00
parent 2589e1d5ad
commit a07fbdca25
2 changed files with 12 additions and 3 deletions
+3 -3
View File
@@ -15,10 +15,12 @@
// misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
//
#ifndef RECAST_H
#define RECAST_H
#include "RecastConfig.h"
/// The value of PI used by Recast.
static const float RC_PI = 3.14159265f;
@@ -262,8 +264,6 @@ struct rcConfig
float detailSampleMaxError;
};
/// Defines the number of bits allocated to rcSpan::smin and rcSpan::smax.
static const int RC_SPAN_HEIGHT_BITS = 13;
/// Defines the maximum value for rcSpan::smin and rcSpan::smax.
static const int RC_SPAN_MAX_HEIGHT = (1 << RC_SPAN_HEIGHT_BITS) - 1;
+9
View File
@@ -0,0 +1,9 @@
#ifndef RECASTCONFIG_H
#define RECASTCONFIG_H
/// Defines the number of bits allocated to rcSpan::smin and rcSpan::smax.
/// If the mesh is appearing below the actual terrain, this parameter may
/// need to be increased.
static const int RC_SPAN_HEIGHT_BITS = 13;
#endif // RECASTCONFIG_H