| PathEngine home | previous: | next: |
Loads pathfinding preprocess from persistent storage.
void loadPathfindPreprocessFor(const iShape* shape, const char* dataBuffer, tUnsigned32 bufferSize); |
| shape | The shape for which preprocess should be loaded. | ||
| dataBuffer | A byte buffer. This buffer is not retained after the call and can subsequently be safely deleted. | ||
| bufferSize | The size of the buffer pointed to by dataBuffer, in bytes. |
Collision preprocess must already be present for this shape on this mesh.
(So this should already have been generated with a call to
Pathfind preprocess should not already be present.
The ground mesh and base circuits must be identical to the mesh for which the preprocess was originally saved.
The shape must be identical to the shape for which the preprocess was originally saved.
The buffer passed in must contain data previously saved out by
This method can be called where you would previously have called
The structure of PathEngine's pathfinding preproces may be changed between releases.
In the case where the preprocess version is not compatible
a non fatal error will be emitted and preprocess will not be loaded.
| Documentation for PathEngine release 5.29 - Copyright © 2002-2012 PathEngine | next: |