The functions in this toolkit are used to create a static world within an RpWorld object and generate the associated compressed BSP data.
The developer would normally create an RtWorldImport object, initialize it with all the static data needed for the final RpWorld object, fill the RtWorldImportParameters structure with the required settings and then call RtWorldImportCreateWorld to generate the BSP tree.
Callbacks are provided to increase flexibility.
|
This value means that no partition was found, or that the partition was invalid or impractical. The value represents infinity. |
|
RtWorldImportCloneVertexUserdataCallBack A pointer to the CallBack function that will be called during vertex cloning.
|
|
RtWorldImportDestroyPolygonUserdataCallBack A pointer to the CallBack function that will be called during polygon destruction.
|
|
RtWorldImportDestroyVertexUserdataCallBack A pointer to the CallBack function that will be called during vertex destruction.
|
|
RtWorldImportInterpVertexUserdataCallBack A pointer to the CallBack function that will be called during vertex interpolation.
|
|
RtWorldImportPartitionBuildCallBack A pointer to the function that will be called during the build process to select a suitable sector partition.
|
|
RtWorldImportProgressCallBack is the type for the callback function supplied to RtWorldImportSetProgressCallBack.
|
|
RtWorldImportSectorSetPolygonUserdataCallBack A pointer to the CallBack function that will be called during the setting of the polygon user data.
|
|
RtWorldImportSectorSetVertexUserdataCallBack A pointer to the CallBack function that will be called during the setting of the vertex user data.
|
|
RtWorldImportSplitPolygonUserdataCallBack A pointer to the CallBack function that will be called during polygon division.
|
|
RtWorldImportTerminationBuildCallBack A pointer to the function that will be called during the build process to determine whether the current sector should be subdivided further, or terminated.
|
|
RtWorldImportBuildPartitionSelector An enumeration that can be passed to RtWorldImportSetStandardBuildPartitionSelector to determine whether partitioning will be achieved automatically, using the default partition selected, or manually using the RtWorldImportGuideKDTree |
|
An enumeration that can be passed to RtWorldImportHintsSetGroup and RtWorldImportHintsGetGroup to determine whether hints will contribute towards the shield hint group or partition hint group |
|
RtWorldImportAddMaterial is used to register the given material with the specified import world. Once registered, this material can be associated with any triangle constituting the import world via the returned material index. All triangles must have a material before the import world is converted to a BSP world. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportAddNumTriangles is used to allocate memory in the specified import world for the given number of additional triangles.
|
|
RtWorldImportAddNumVertices is used to allocate memory in the specified import world for the given number of additional vertices.
|
|
RtWorldImportCreate is used to create a new import world that has no vertices or triangles. Vertices and triangles must be allocated and initialized before attempting to create a world using RtWorldImportCreateWorld. Use the function RtWorldImportDestroy to free this memory. Also, an RtWorldImportParameters structure must be defined, and initialized with RtWorldImportParametersInit, for use in creating a BSP world from the import world. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportCreateGeometry is used to create a geometry from the specified import world according to the given conversion parameters. The geometry is created with one morph target and with the following flags: rpGEOMETRYLIGHT, rpGEOMETRYNORMALS, rpGEOMETRYTEXTURED and rpGEOMETRYPRELIT. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportCreateWorld is used to create a BSP world from the specified import world according to the given conversion parameters. A world uses a BSP mechanism to make collision detection and rendering faster. An import world has no such mechanism and is a large collection of vertices and polygons that describe the world. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportDestroy is used to destroy the specified import world. This function should be used to free the memory allocated to triangles, vertices and materials created via RtWorldImportCreate or RtWorldImportRead. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportForAllMaterials is used to apply the given callback function to all materials registered with the specified import world. The format of the callback function is: RpMaterial *(*RpMaterialCallBack)(RpMaterial *material, void *data); The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportGetMaterial is used to retrieve a material from the specified import world with the given index into the import worlds material list. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportGetMaterialIndex is used to retrieve the index of the given material from the specified import worlds material list. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportGetNumTriangles is used to retrieve the number of triangles defining the specified import world. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportGetNumVertices is used to retrieve the number of vertices defining the specified import world. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportGetTriangles is used to retrieve the array of triangles (of type RtWorldImportTriangle) from the specified import world. Use this function for directly defining the properties of each triangle. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportGetVertices is used to retrieve the array of vertices of type RtWorldImportVertex from the specified import world. Use this function for directly defining the properties of each vertex. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportParametersGet is used to get the specified world convert structure RtWorldImportParameters with its given values.
|
|
RtWorldImportParametersInit is used to initialize the specified world convert structure RtWorldImportParameters with default values. The world convert structure is used by RtWorldImportCreateWorld to produce a world containing static geometry in the form of a compressed BSP tree. It controls the way the new world is generated. The following default values are set:
|
|
RtWorldImportParametersSet is used to set the specified world convert structure RtWorldImportParameters with specified values.
|
|
RtWorldImportRead is used to load a binary representation of the an import world from the given disk file. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportSetBuildCallBacks should be called to set the required or custom RtWorldImportPartitionBuildCallBack and RtWorldImportTerminationBuildCallBack
|
|
RtWorldImportSetBuildCallBacksUserData should be called to set the user data that is required by the RtWorldImportPartitionBuildCallBack and RtWorldImportTerminationBuildCallBack
|
|
RtWorldImportSetPartitionStatistics is used to set the stats for the given partition. This must be called before using any of the statistics of a partitioner.
|
|
RtWorldImportSetProgressCallBack is used to define a callback function that is called from RtWorldImportCreateWorld at strategic points to indicate the progress made in constructing a BSP world from an import world. The format of the callback function is: void (*RtWorldImportProgressCallBack) (RwInt32 message, RwReal value);
The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportSetUserdataCallBacks is used to define a set of callback functions that are called from RtWorldImportCreateWorld in order to allow userdata to be passed from an import world to an RpWorld. No callback functions are defined until this function is called. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
|
RtWorldImportWrite is used to save a binary representation of the specified import world to the given disk file. The world plugin must be attached before using this function. The include file rtimport.h and the library file rtimport.lib are also required.
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |