Changeset View
Changeset View
Standalone View
Standalone View
source/collada/StdSkeletons.h
/* Copyright (C) 2015 Wildfire Games. | /* Copyright (C) 2018 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | public: | ||||
* nonstandard-skeleton bone for each standard bone; returns -1 in other cases. | * nonstandard-skeleton bone for each standard bone; returns -1 in other cases. | ||||
* This is necessary when deciding which nonstandard-skeleton-bone's animation | * This is necessary when deciding which nonstandard-skeleton-bone's animation | ||||
* should be saved. (TODO: think of a better name.) | * should be saved. (TODO: think of a better name.) | ||||
*/ | */ | ||||
int GetRealBoneID(const std::string& name) const; | int GetRealBoneID(const std::string& name) const; | ||||
/** | /** | ||||
* Tries to find a skeleton that matches the given root bone name. | * Tries to find a skeleton that matches the given root bone name. | ||||
* Returns NULL if there is no match. | * Returns nullptr if there is no match. | ||||
*/ | */ | ||||
static const Skeleton* FindSkeleton(const std::string& rootBoneName); | static const Skeleton* FindSkeleton(const std::string& rootBoneName); | ||||
/** | /** | ||||
* Initialises the global state with skeleton data loaded from the | * Initialises the global state with skeleton data loaded from the | ||||
* given XML data. | * given XML data. | ||||
* @todo Stop using global state. | * @todo Stop using global state. | ||||
* @param xmlData | * @param xmlData | ||||
Show All 13 Lines |
Wildfire Games · Phabricator