File tree Expand file tree Collapse file tree 4 files changed +0
-39
lines changed Expand file tree Collapse file tree 4 files changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,6 @@ class IAnimatedMesh : public IMesh
1919 // ! Gets the maximum frame number, 0 if the mesh is static.
2020 virtual f32 getMaxFrameNumber () const = 0;
2121
22- // ! Gets the animation speed of the animated mesh.
23- /* * \return The number of frames per second to play the
24- animation with by default. If the amount is 0,
25- it is a static, non animated mesh. */
26- virtual f32 getAnimationSpeed () const = 0;
27-
28- // ! Sets the animation speed of the animated mesh.
29- /* * \param fps Number of frames per second to play the
30- animation with by default. If the amount is 0,
31- it is not animated. The actual speed is set in the
32- scene node the mesh is instantiated in.*/
33- virtual void setAnimationSpeed (f32 fps) = 0;
34-
3522 // ! Returns the type of the animated mesh. Useful for safe downcasts.
3623 E_ANIMATED_MESH_TYPE getMeshType () const = 0;
3724};
Original file line number Diff line number Diff line change @@ -138,8 +138,6 @@ struct SMesh final : public IAnimatedMesh
138138 // with all the animation-related parts behind an optional.
139139
140140 virtual f32 getMaxFrameNumber () const override { return 0 .0f ; }
141- virtual f32 getAnimationSpeed () const override { return 0 .0f ; }
142- virtual void setAnimationSpeed (f32 fps) override {}
143141 E_ANIMATED_MESH_TYPE getMeshType () const override { return EAMT_STATIC; }
144142};
145143
Original file line number Diff line number Diff line change @@ -59,15 +59,6 @@ class SkinnedMesh : public IAnimatedMesh
5959 // ! If the duration is 0, it is a static (=non animated) mesh.
6060 f32 getMaxFrameNumber () const override ;
6161
62- // ! Gets the default animation speed of the animated mesh.
63- /* * \return Amount of frames per second. If the amount is 0, it is a static, non animated mesh. */
64- f32 getAnimationSpeed () const override ;
65-
66- // ! Gets the frame count of the animated mesh.
67- /* * \param fps Frames per second to play the animation with. If the amount is 0, it is not animated.
68- The actual speed is set in the scene node the mesh is instantiated in.*/
69- void setAnimationSpeed (f32 fps) override ;
70-
7162 // ! Turns the given array of local matrices into an array of global matrices
7263 // ! by multiplying with respective parent matrices.
7364 void calculateGlobalMatrices (std::vector<core::matrix4> &matrices) const ;
Original file line number Diff line number Diff line change @@ -36,21 +36,6 @@ f32 SkinnedMesh::getMaxFrameNumber() const
3636 return EndFrame;
3737}
3838
39- // ! Gets the default animation speed of the animated mesh.
40- /* * \return Amount of frames per second. If the amount is 0, it is a static, non animated mesh. */
41- f32 SkinnedMesh::getAnimationSpeed () const
42- {
43- return FramesPerSecond;
44- }
45-
46- // ! Gets the frame count of the animated mesh.
47- /* * \param fps Frames per second to play the animation with. If the amount is 0, it is not animated.
48- The actual speed is set in the scene node the mesh is instantiated in.*/
49- void SkinnedMesh::setAnimationSpeed (f32 fps)
50- {
51- FramesPerSecond = fps;
52- }
53-
5439// Keyframe Animation
5540
5641
You can’t perform that action at this time.
0 commit comments