TDME2 1.9.121
Animation.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include <tdme/tdme.h>
8
9using std::vector;
10
12
13/**
14 * Animation entity
15 * @author andreas.drewke
16 * @version $Id$
17 */
19{
20private:
21 vector<Matrix4x4> transformationsMatrices;
22
23public:
24 /**
25 * Public constructor
26 * @param frames frames
27 */
28 Animation();
29
30 /**
31 * @return number of frames
32 */
33 inline int getFrames() const {
34 return transformationsMatrices.size();
35 }
36
37 /**
38 * Returns transformation matrices
39 * @return transformation matrices
40 */
41 inline const vector<Matrix4x4>& getTransformationsMatrices() const {
43 }
44
45 /**
46 * Set transformation matrices
47 * @return transformationMatrices transformation matrices
48 */
49 inline void setTransformationsMatrices(const vector<Matrix4x4>& transformationsMatrices) {
50 this->transformationsMatrices = transformationsMatrices;
51 }
52
53};
vector< Matrix4x4 > transformationsMatrices
Definition: Animation.h:21
void setTransformationsMatrices(const vector< Matrix4x4 > &transformationsMatrices)
Set transformation matrices.
Definition: Animation.h:49
const vector< Matrix4x4 > & getTransformationsMatrices() const
Returns transformation matrices.
Definition: Animation.h:41
Animation()
Public constructor.
Definition: Animation.cpp:9
4x4 3D Matrix class
Definition: Matrix4x4.h:24