#include <exception>
#include <string>
#include <memory>
#include <vector>
Go to the source code of this file.
|
| void | require_ (int line, bool value, const char *type, const char *message) |
| |
| template<typename T > |
| void | write (OutputCB &output, const T &data) |
| | Outputs a structure, using sizeof to get the size. More...
|
| |
| bool | FindSingleInstance (FCDSceneNode *node, FCDEntityInstance *&instance, FMMatrix44 &transform) |
| | Tries to find a single suitable entity instance in the scene. More...
|
| |
| void | SkinReduceInfluences (FCDSkinController *skin, size_t maxInfluenceCount, float minimumWeight) |
| | Like FCDSkinController::ReduceInfluences but works correctly. More...
|
| |
| void | FixSkeletonRoots (FCDControllerInstance &controllerInstance) |
| | Fixes some occasional problems with the skeleton root definitions in a controller. More...
|
| |
| const Skeleton & | FindSkeleton (const FCDControllerInstance &controllerInstance) |
| | Finds the skeleton definition which best matches the given controller. More...
|
| |
| void | TransformBones (std::vector< BoneTransform > &bones, const FMMatrix44 &scaleTransform, bool yUp) |
| | Performs the standard transformations on bones, applying a scale matrix and moving them into the game's coordinate space. More...
|
| |
◆ REQUIRE
| #define REQUIRE |
( |
|
value, |
|
|
|
message |
|
) |
| require_(__LINE__, value, "Assertion not satisfied", "failed requirement \"" message "\"") |
◆ REQUIRE_SUCCESS
| #define REQUIRE_SUCCESS |
( |
|
status | ) |
require_(__LINE__, status, "FCollada error", "Line " STRINGIFY(__LINE__)) |
◆ STRINGIFY
| #define STRINGIFY |
( |
|
x | ) |
#x |
◆ FindSingleInstance()
| bool FindSingleInstance |
( |
FCDSceneNode * |
node, |
|
|
FCDEntityInstance *& |
instance, |
|
|
FMMatrix44 & |
transform |
|
) |
| |
Tries to find a single suitable entity instance in the scene.
Fails if there are none, or if there are too many and it's not clear which one should be converted.
- Parameters
-
| node | root scene node to search under |
| instance | output - the found entity instance (if any) |
| transform | - the world-space transform of the found entity |
- Returns
- true if one was found
◆ FindSkeleton()
| const Skeleton & FindSkeleton |
( |
const FCDControllerInstance & |
controllerInstance | ) |
|
Finds the skeleton definition which best matches the given controller.
- Exceptions
-
◆ FixSkeletonRoots()
| void FixSkeletonRoots |
( |
FCDControllerInstance & |
controllerInstance | ) |
|
Fixes some occasional problems with the skeleton root definitions in a controller.
(In particular, it's needed for models exported from XSI.) Should be called before extracting any joint information from the controller.
◆ require_()
| void require_ |
( |
int |
line, |
|
|
bool |
value, |
|
|
const char * |
type, |
|
|
const char * |
message |
|
) |
| |
◆ SkinReduceInfluences()
| void SkinReduceInfluences |
( |
FCDSkinController * |
skin, |
|
|
size_t |
maxInfluenceCount, |
|
|
float |
minimumWeight |
|
) |
| |
Like FCDSkinController::ReduceInfluences but works correctly.
Additionally, multiple influences for the same joint-vertex pair are collapsed into a single influence.
◆ TransformBones()
| void TransformBones |
( |
std::vector< BoneTransform > & |
bones, |
|
|
const FMMatrix44 & |
scaleTransform, |
|
|
bool |
yUp |
|
) |
| |
Performs the standard transformations on bones, applying a scale matrix and moving them into the game's coordinate space.
◆ write()
| void write |
( |
OutputCB & |
output, |
|
|
const T & |
data |
|
) |
| |
Outputs a structure, using sizeof to get the size.
◆ FMMatrix44_Identity
| FMMatrix44 FMMatrix44_Identity |
|
extern |