1 // Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details 2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt 3 4 #ifndef _SCENEGRAPH_ANIMATIONCHANNEL_H 5 #define _SCENEGRAPH_ANIMATIONCHANNEL_H 6 /* 7 * Animation channel affecting a single transform node 8 */ 9 #include "AnimationKey.h" 10 #include "MatrixTransform.h" 11 namespace SceneGraph { 12 13 class AnimationChannel { 14 public: AnimationChannel(MatrixTransform * t)15 AnimationChannel(MatrixTransform *t) : 16 node(t) {} 17 std::vector<PositionKey> positionKeys; 18 std::vector<RotationKey> rotationKeys; 19 std::vector<ScaleKey> scaleKeys; 20 MatrixTransform *node; 21 }; 22 23 } // namespace SceneGraph 24 25 #endif 26