OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
keyframe.h
1 /*
2  Copyright (C) 2014 - 2016 Mutzii
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 */
18 #ifndef KEYFRAME_H
19 #define KEYFRAME_H
20 
21 #include "index.h"
22 
23 namespace Engine
24 {
30  class KeyFrame
31  {
32  public:
33 
34  explicit KeyFrame();
35  explicit KeyFrame( uint frame_number );
36 
37  ~KeyFrame(){}
38 
44  void setFrameNumber( uint frame_number );
45 
50  void setFrameRotation( const Vector3f & rotation );
51 
56  glm::mat4 getFrameMatrix(void);
57 
62  uint getFrameNumber(void);
63 
68  const Vector3f & getRotation(void);
69 
74  const Vector4f & getQuaternion(void);
75 
76  private:
77 
78  glm::mat4 mFrameMatrix;
79  Vector3f mRotation;
80  Vector4f mQuanternion;
81  uint mFrameNumber;
82  };
83 
84 }
85 
86 
87 #endif // KEYFRAME_H
void setFrameNumber(uint frame_number)
setFrameNumber
Definition: Keyframe.cpp:38
uint getFrameNumber(void)
getFrameNumber
Definition: Keyframe.cpp:48
Definition: element.h:23
glm::mat4 getFrameMatrix(void)
getFrameMatrix
Definition: Keyframe.cpp:53
const Vector3f & getRotation(void)
getRotation
Definition: Keyframe.cpp:58
const Vector4f & getQuaternion(void)
getQuaternion
Definition: Keyframe.cpp:63
The KeyFrame class.
Definition: keyframe.h:30
void setFrameRotation(const Vector3f &rotation)
setFrameRotation
Definition: Keyframe.cpp:43