Recast Navigation
Navigation-mesh Toolset for Games
RecastDump.cpp File Reference
#include <math.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include "Recast.h"
#include "RecastAlloc.h"
#include "RecastDump.h"

Functions

static void ioprintf (duFileIO *io, const char *format,...)
 
bool duDumpPolyMeshToObj (rcPolyMesh &pmesh, duFileIO *io)
 
bool duDumpPolyMeshDetailToObj (rcPolyMeshDetail &dmesh, duFileIO *io)
 
bool duDumpContourSet (struct rcContourSet &cset, duFileIO *io)
 
bool duReadContourSet (struct rcContourSet &cset, duFileIO *io)
 
bool duDumpCompactHeightfield (struct rcCompactHeightfield &chf, duFileIO *io)
 
bool duReadCompactHeightfield (struct rcCompactHeightfield &chf, duFileIO *io)
 
static void logLine (rcContext &ctx, rcTimerLabel label, const char *name, const float pc)
 
void duLogBuildTimes (rcContext &ctx, const int totalTimeUsec)
 

Variables

static const int CSET_MAGIC = ('c' << 24) | ('s' << 16) | ('e' << 8) | 't'
 
static const int CSET_VERSION = 2
 
static const int CHF_MAGIC = ('r' << 24) | ('c' << 16) | ('h' << 8) | 'f'
 
static const int CHF_VERSION = 3
 

Function Documentation

◆ duDumpCompactHeightfield()

bool duDumpCompactHeightfield ( struct rcCompactHeightfield chf,
duFileIO io 
)

◆ duDumpContourSet()

bool duDumpContourSet ( struct rcContourSet cset,
duFileIO io 
)

◆ duDumpPolyMeshDetailToObj()

bool duDumpPolyMeshDetailToObj ( rcPolyMeshDetail dmesh,
duFileIO io 
)

◆ duDumpPolyMeshToObj()

bool duDumpPolyMeshToObj ( rcPolyMesh pmesh,
duFileIO io 
)

◆ duLogBuildTimes()

void duLogBuildTimes ( rcContext ctx,
const int  totalTimeUsec 
)

◆ duReadCompactHeightfield()

bool duReadCompactHeightfield ( struct rcCompactHeightfield chf,
duFileIO io 
)

◆ duReadContourSet()

bool duReadContourSet ( struct rcContourSet cset,
duFileIO io 
)

◆ ioprintf()

static void ioprintf ( duFileIO io,
const char *  format,
  ... 
)
static

◆ logLine()

static void logLine ( rcContext ctx,
rcTimerLabel  label,
const char *  name,
const float  pc 
)
static

Variable Documentation

◆ CHF_MAGIC

const int CHF_MAGIC = ('r' << 24) | ('c' << 16) | ('h' << 8) | 'f'
static

◆ CHF_VERSION

const int CHF_VERSION = 3
static

◆ CSET_MAGIC

const int CSET_MAGIC = ('c' << 24) | ('s' << 16) | ('e' << 8) | 't'
static

◆ CSET_VERSION

const int CSET_VERSION = 2
static