|
| static bool | overlapBounds (const float *aMin, const float *aMax, const float *bMin, const float *bMax) |
| | Check whether two bounding boxes overlap.
|
| |
| static rcSpan * | allocSpan (rcHeightfield &heightfield) |
| | Allocates a new span in the heightfield.
|
| |
| static void | freeSpan (rcHeightfield &heightfield, rcSpan *span) |
| | Releases the memory used by the span back to the heightfield, so it can be re-used for new spans.
|
| |
| static bool | addSpan (rcHeightfield &heightfield, const int x, const int z, const unsigned short min, const unsigned short max, const unsigned char areaID, const int flagMergeThreshold) |
| | Adds a span to the heightfield.
|
| |
| bool | rcAddSpan (rcContext *context, rcHeightfield &heightfield, const int x, const int z, const unsigned short spanMin, const unsigned short spanMax, const unsigned char areaID, const int flagMergeThreshold) |
| | Adds a span to the specified heightfield.
|
| |
| static void | dividePoly (const float *inVerts, int inVertsCount, float *outVerts1, int *outVerts1Count, float *outVerts2, int *outVerts2Count, float axisOffset, rcAxis axis) |
| | Divides a convex polygon of max 12 vertices into two convex polygons across a separating axis.
|
| |
| static bool | rasterizeTri (const float *v0, const float *v1, const float *v2, const unsigned char areaID, rcHeightfield &heightfield, const float *heightfieldBBMin, const float *heightfieldBBMax, const float cellSize, const float inverseCellSize, const float inverseCellHeight, const int flagMergeThreshold) |
| | Rasterize a single triangle to the heightfield.
|
| |
| bool | rcRasterizeTriangle (rcContext *context, const float *v0, const float *v1, const float *v2, const unsigned char areaID, rcHeightfield &heightfield, const int flagMergeThreshold) |
| | Rasterizes a single triangle into the specified heightfield.
|
| |
| bool | rcRasterizeTriangles (rcContext *context, const float *verts, const int, const int *tris, const unsigned char *triAreaIDs, const int numTris, rcHeightfield &heightfield, const int flagMergeThreshold) |
| | Rasterizes an indexed triangle mesh into the specified heightfield.
|
| |
| bool | rcRasterizeTriangles (rcContext *context, const float *verts, const int, const unsigned short *tris, const unsigned char *triAreaIDs, const int numTris, rcHeightfield &heightfield, const int flagMergeThreshold) |
| | Rasterizes an indexed triangle mesh into the specified heightfield.
|
| |
| bool | rcRasterizeTriangles (rcContext *context, const float *verts, const unsigned char *triAreaIDs, const int numTris, rcHeightfield &heightfield, const int flagMergeThreshold) |
| | Rasterizes a triangle list into the specified heightfield.
|
| |