Recast Navigation  1.0.35
RecastRasterization.cpp File Reference
#include <math.h>
#include <stdio.h>
#include "Recast.h"
#include "RecastAlloc.h"
#include "RecastAssert.h"

Macros

#define _USE_MATH_DEFINES
 

Functions

bool overlapBounds (const float *amin, const float *amax, const float *bmin, const float *bmax)
 
bool overlapInterval (unsigned short amin, unsigned short amax, unsigned short bmin, unsigned short bmax)
 
static rcSpanallocSpan (rcHeightfield &hf)
 
static void freeSpan (rcHeightfield &hf, rcSpan *ptr)
 
static void addSpan (rcHeightfield &hf, const int x, const int y, const unsigned short smin, const unsigned short smax, const navAreaMask areaMask, const int flagMergeThr)
 
void rcAddSpan (rcContext *ctx, rcHeightfield &hf, const int x, const int y, const unsigned short smin, const unsigned short smax, const navAreaMask areaMask, const int flagMergeThr)
 Adds a span to the specified heightfield. More...
 
static void dividePoly (const float *in, int nin, float *out1, int *nout1, float *out2, int *nout2, float x, int axis)
 
static void rasterizeTri (const float *v0, const float *v1, const float *v2, const navAreaMask areaMask, rcHeightfield &hf, const float *bmin, const float *bmax, const float cs, const float ics, const float ich, const int flagMergeThr)
 
void rcRasterizeTriangle (rcContext *ctx, const float *v0, const float *v1, const float *v2, const navAreaMask areaMask, rcHeightfield &solid, const int flagMergeThr)
 Rasterizes a triangle into the specified heightfield. More...
 
void rcRasterizeTriangles (rcContext *ctx, const float *verts, const int nv, const int *tris, const navAreaMask *areaMasks, const int nt, rcHeightfield &solid, const int flagMergeThr)
 Rasterizes an indexed triangle mesh into the specified heightfield. More...
 
void rcRasterizeTriangles (rcContext *ctx, const float *verts, const int nv, const unsigned short *tris, const navAreaMask *areaMasks, const int nt, rcHeightfield &solid, const int flagMergeThr)
 Rasterizes an indexed triangle mesh into the specified heightfield. More...
 
void rcRasterizeTriangles (rcContext *ctx, const float *verts, const navAreaMask *areaMasks, const int nt, rcHeightfield &solid, const int flagMergeThr)
 Rasterizes triangles into the specified heightfield. More...
 

Macro Definition Documentation

#define _USE_MATH_DEFINES

Function Documentation

static void addSpan ( rcHeightfield hf,
const int  x,
const int  y,
const unsigned short  smin,
const unsigned short  smax,
const navAreaMask  areaMask,
const int  flagMergeThr 
)
static
static rcSpan* allocSpan ( rcHeightfield hf)
static
static void dividePoly ( const float *  in,
int  nin,
float *  out1,
int *  nout1,
float *  out2,
int *  nout2,
float  x,
int  axis 
)
static
static void freeSpan ( rcHeightfield hf,
rcSpan ptr 
)
static
bool overlapBounds ( const float *  amin,
const float *  amax,
const float *  bmin,
const float *  bmax 
)
inline
bool overlapInterval ( unsigned short  amin,
unsigned short  amax,
unsigned short  bmin,
unsigned short  bmax 
)
inline
static void rasterizeTri ( const float *  v0,
const float *  v1,
const float *  v2,
const navAreaMask  areaMask,
rcHeightfield hf,
const float *  bmin,
const float *  bmax,
const float  cs,
const float  ics,
const float  ich,
const int  flagMergeThr 
)
static