|
@@ -190,12 +190,11 @@ struct SceneHelper {
|
|
* and loaders (ie. LWS).
|
|
* and loaders (ie. LWS).
|
|
*/
|
|
*/
|
|
class ASSIMP_API SceneCombiner {
|
|
class ASSIMP_API SceneCombiner {
|
|
|
|
+public:
|
|
// class cannot be instanced
|
|
// class cannot be instanced
|
|
SceneCombiner() = delete;
|
|
SceneCombiner() = delete;
|
|
-
|
|
|
|
~SceneCombiner() = delete;
|
|
~SceneCombiner() = delete;
|
|
|
|
|
|
-public:
|
|
|
|
// -------------------------------------------------------------------
|
|
// -------------------------------------------------------------------
|
|
/** Merges two or more scenes.
|
|
/** Merges two or more scenes.
|
|
*
|
|
*
|
|
@@ -275,8 +274,8 @@ public:
|
|
/** Builds a list of uniquely named bones in a mesh list
|
|
/** Builds a list of uniquely named bones in a mesh list
|
|
*
|
|
*
|
|
* @param asBones Receives the output list
|
|
* @param asBones Receives the output list
|
|
- * @param it First mesh to be processed
|
|
|
|
- * @param end Last mesh to be processed
|
|
|
|
|
|
+ * @param it First mesh to be processed
|
|
|
|
+ * @param end Last mesh to be processed
|
|
*/
|
|
*/
|
|
static void BuildUniqueBoneList(std::list<BoneWithHash> &asBones,
|
|
static void BuildUniqueBoneList(std::list<BoneWithHash> &asBones,
|
|
std::vector<aiMesh *>::const_iterator it,
|
|
std::vector<aiMesh *>::const_iterator it,
|
|
@@ -285,9 +284,9 @@ public:
|
|
// -------------------------------------------------------------------
|
|
// -------------------------------------------------------------------
|
|
/** Add a name prefix to all nodes in a scene.
|
|
/** Add a name prefix to all nodes in a scene.
|
|
*
|
|
*
|
|
- * @param Current node. This function is called recursively.
|
|
|
|
|
|
+ * @param node Current node. This function is called recursively.
|
|
* @param prefix Prefix to be added to all nodes
|
|
* @param prefix Prefix to be added to all nodes
|
|
- * @param len STring length
|
|
|
|
|
|
+ * @param len String length
|
|
*/
|
|
*/
|
|
static void AddNodePrefixes(aiNode *node, const char *prefix,
|
|
static void AddNodePrefixes(aiNode *node, const char *prefix,
|
|
unsigned int len);
|
|
unsigned int len);
|
|
@@ -295,7 +294,7 @@ public:
|
|
// -------------------------------------------------------------------
|
|
// -------------------------------------------------------------------
|
|
/** Add an offset to all mesh indices in a node graph
|
|
/** Add an offset to all mesh indices in a node graph
|
|
*
|
|
*
|
|
- * @param Current node. This function is called recursively.
|
|
|
|
|
|
+ * @param node Current node. This function is called recursively.
|
|
* @param offset Offset to be added to all mesh indices
|
|
* @param offset Offset to be added to all mesh indices
|
|
*/
|
|
*/
|
|
static void OffsetNodeMeshIndices(aiNode *node, unsigned int offset);
|
|
static void OffsetNodeMeshIndices(aiNode *node, unsigned int offset);
|
|
@@ -310,7 +309,7 @@ public:
|
|
* the master graph), a scene is attached to the root of the master
|
|
* the master graph), a scene is attached to the root of the master
|
|
* graph (as an additional child node)
|
|
* graph (as an additional child node)
|
|
* @duplicates List of duplicates. If elem[n] == n the scene is not
|
|
* @duplicates List of duplicates. If elem[n] == n the scene is not
|
|
- * a duplicate. Otherwise elem[n] links scene n to its first occurrence.
|
|
|
|
|
|
+ * a duplicate. Otherwise, elem[n] links scene n to its first occurrence.
|
|
*/
|
|
*/
|
|
static void AttachToGraph(aiScene *master,
|
|
static void AttachToGraph(aiScene *master,
|
|
std::vector<NodeAttachmentInfo> &srcList);
|
|
std::vector<NodeAttachmentInfo> &srcList);
|
|
@@ -321,8 +320,9 @@ public:
|
|
// -------------------------------------------------------------------
|
|
// -------------------------------------------------------------------
|
|
/** Get a deep copy of a scene
|
|
/** Get a deep copy of a scene
|
|
*
|
|
*
|
|
- * @param dest Receives a pointer to the destination scene
|
|
|
|
- * @param src Source scene - remains unmodified.
|
|
|
|
|
|
+ * @param dest Receives a pointer to the destination scene
|
|
|
|
+ * @param source Source scene - remains unmodified.
|
|
|
|
+ * @param allocate true for allocation a new scene
|
|
*/
|
|
*/
|
|
static void CopyScene(aiScene **dest, const aiScene *source, bool allocate = true);
|
|
static void CopyScene(aiScene **dest, const aiScene *source, bool allocate = true);
|
|
|
|
|