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
 

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, 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 = 63
 
static const int RC_MAX_NEIS = 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 = 63
static

◆ RC_MAX_NEIS

const int RC_MAX_NEIS = 16
static