Recast Navigation
Navigation-mesh Toolset for Games
RecastLayers.cpp File Reference
#include <float.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "Recast.h"
#include "RecastAlloc.h"
#include "RecastAssert.h"

Classes

struct  rcLayerRegion
 
struct  rcLayerSweepSpan
 

Macros

#define RC_MAX_LAYERS_DEF   63
 
#define RC_MAX_NEIS_DEF   16
 

Functions

static bool contains (const unsigned char *a, const unsigned char an, const unsigned char v)
 
static bool addUnique (unsigned char *a, unsigned char &an, int anMax, unsigned char v)
 
bool overlapRange (const unsigned short amin, const unsigned short amax, const unsigned short bmin, const unsigned short bmax)
 
bool rcBuildHeightfieldLayers (rcContext *ctx, const rcCompactHeightfield &chf, const int borderSize, const int walkableHeight, rcHeightfieldLayerSet &lset)
 Builds a layer set from the specified compact heightfield. More...
 

Variables

static const int RC_MAX_LAYERS = RC_MAX_LAYERS_DEF
 
static const int RC_MAX_NEIS = RC_MAX_NEIS_DEF
 

Macro Definition Documentation

◆ RC_MAX_LAYERS_DEF

#define RC_MAX_LAYERS_DEF   63

◆ RC_MAX_NEIS_DEF

#define RC_MAX_NEIS_DEF   16

Function Documentation

◆ addUnique()

static bool addUnique ( unsigned char *  a,
unsigned char &  an,
int  anMax,
unsigned char  v 
)
static

◆ contains()

static bool contains ( const unsigned char *  a,
const unsigned char  an,
const unsigned char  v 
)
static

◆ overlapRange()

bool overlapRange ( const unsigned short  amin,
const unsigned short  amax,
const unsigned short  bmin,
const unsigned short  bmax 
)
inline

Variable Documentation

◆ RC_MAX_LAYERS

const int RC_MAX_LAYERS = RC_MAX_LAYERS_DEF
static

◆ RC_MAX_NEIS

const int RC_MAX_NEIS = RC_MAX_NEIS_DEF
static