* Load model animations from file */
| 33 | * Load model animations from file |
| 34 | */ |
| 35 | static std::vector<ModelAnimation> Load(const std::string& fileName) { |
| 36 | int count = 0; |
| 37 | ::ModelAnimation* modelAnimations = ::LoadModelAnimations(fileName.c_str(), &count); |
| 38 | |
| 39 | std::vector<ModelAnimation> mats(modelAnimations, modelAnimations + count); |
| 40 | |
| 41 | RL_FREE(modelAnimations); |
| 42 | |
| 43 | return mats; |
| 44 | } |
| 45 | |
| 46 | GETTERSETTER(int, BoneCount, boneCount) |
| 47 | GETTERSETTER(int, KeyframeCount, keyframeCount) |