From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../doxygen/nel/animation__playlist_8h-source.html | 214 +++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 docs/doxygen/nel/animation__playlist_8h-source.html (limited to 'docs/doxygen/nel/animation__playlist_8h-source.html') diff --git a/docs/doxygen/nel/animation__playlist_8h-source.html b/docs/doxygen/nel/animation__playlist_8h-source.html new file mode 100644 index 00000000..6cc57ffa --- /dev/null +++ b/docs/doxygen/nel/animation__playlist_8h-source.html @@ -0,0 +1,214 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

animation_playlist.h

Go to the documentation of this file.
00001 
+00007 /* Copyright, 2001 Nevrax Ltd.
+00008  *
+00009  * This file is part of NEVRAX NEL.
+00010  * NEVRAX NEL is free software; you can redistribute it and/or modify
+00011  * it under the terms of the GNU General Public License as published by
+00012  * the Free Software Foundation; either version 2, or (at your option)
+00013  * any later version.
+00014 
+00015  * NEVRAX NEL is distributed in the hope that it will be useful, but
+00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
+00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+00018  * General Public License for more details.
+00019 
+00020  * You should have received a copy of the GNU General Public License
+00021  * along with NEVRAX NEL; see the file COPYING. If not, write to the
+00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+00023  * MA 02111-1307, USA.
+00024  */
+00025 
+00026 #ifndef NL_ANIMATION_PLAYLIST_H
+00027 #define NL_ANIMATION_PLAYLIST_H
+00028 
+00029 #include "nel/misc/types_nl.h"
+00030 #include "3d/channel_mixer.h"
+00031 
+00032 
+00033 namespace NL3D 
+00034 {
+00035 
+00036 
+00043 class CAnimationPlaylist : public NLMISC::CRefCount
+00044 {
+00045 public:
+00046         enum 
+00047         { 
+00048                 // 
+00049                 empty=0xffffffff
+00050         };
+00051 
+00053         enum TWrapMode
+00054         { 
+00056                 Clamp=0,
+00057 
+00059                 Repeat,
+00060                 
+00062                 Disable,
+00063 
+00064                 WrapModeCount
+00065         };
+00066 
+00068         CAnimationPlaylist();
+00069 
+00073         void emptyPlayList ();
+00074 
+00081         void setAnimation (uint8 slot, uint animation);
+00082 
+00089         uint getAnimation (uint8 slot) const;
+00090 
+00098         void setSkeletonWeight (uint8 slot, uint skeletonId, bool inverted=false);
+00099 
+00107         uint getSkeletonWeight (uint8 slot, bool &inverted) const;
+00108 
+00116         void setTimeOrigin (uint8 slot, TGlobalAnimationTime timeOrigin);
+00117 
+00125         TGlobalAnimationTime getTimeOrigin (uint8 slot) const;
+00126 
+00134         void setSpeedFactor (uint8 slot, float speedFactor);
+00135 
+00143         float getSpeedFactor (uint8 slot) const;
+00144 
+00153         void setStartWeight (uint8 slot, float startWeight, TGlobalAnimationTime time);
+00154 
+00163         float getStartWeight (uint8 slot, TGlobalAnimationTime& time) const;
+00164 
+00173         void setEndWeight (uint8 slot, float endWeight, TGlobalAnimationTime time);
+00174 
+00183         float getEndWeight (uint8 slot, TGlobalAnimationTime& time) const;
+00184 
+00194         void setWeightSmoothness (uint8 slot, float smoothness);
+00195 
+00205         float getWeightSmoothness (uint8 slot) const;
+00206 
+00216         void setupMixer (CChannelMixer& mixer, TGlobalAnimationTime time) const;
+00217 
+00228         static float getWeightValue (TGlobalAnimationTime startWeightTime, TGlobalAnimationTime endWeightTime, TGlobalAnimationTime time, float startWeight, float endWeight, float smoothness);
+00229 
+00236         void setWrapMode (uint8 slot, TWrapMode wrapMode);
+00237 
+00244         TWrapMode getWrapMode (uint8 slot) const;
+00245 
+00254         TAnimationTime getLocalTime (uint8 slot, TGlobalAnimationTime globalTime, const CAnimationSet& animSet) const;
+00255 
+00264         float getLocalWeight (uint8 slot, TGlobalAnimationTime globalTime) const;
+00265 
+00269         void serial (NLMISC::IStream& f);
+00270 
+00271 private:
+00272 
+00273         // Animation in slot
+00274         uint32                          _Animations[CChannelMixer::NumAnimationSlot];
+00275 
+00276         // Skeleton weight in slot
+00277         uint32                          _SkeletonWeight[CChannelMixer::NumAnimationSlot];
+00278 
+00279         // Invert Skeleton weight in slot
+00280         bool                            _InvertWeight[CChannelMixer::NumAnimationSlot];
+00281 
+00282         // Time origin in slot
+00283         TGlobalAnimationTime    _TimeOrigin[CChannelMixer::NumAnimationSlot];
+00284 
+00285         // Speed factor in slot
+00286         float                           _SpeedFactor[CChannelMixer::NumAnimationSlot];
+00287 
+00288         // Start weight
+00289         float                           _StartWeight[CChannelMixer::NumAnimationSlot];
+00290 
+00291         // Start weight time
+00292         TGlobalAnimationTime    _StartWeightTime[CChannelMixer::NumAnimationSlot];
+00293 
+00294         // End weight
+00295         float                           _EndWeight[CChannelMixer::NumAnimationSlot];
+00296 
+00297         // End weight time
+00298         TGlobalAnimationTime    _EndWeightTime[CChannelMixer::NumAnimationSlot];
+00299 
+00300         // Smoothness of the 
+00301         float                           _Smoothness[CChannelMixer::NumAnimationSlot];
+00302 
+00303         // Wrap mode
+00304         TWrapMode                       _WrapMode[CChannelMixer::NumAnimationSlot];
+00305 };
+00306 
+00307 
+00308 } // NL3D
+00309 
+00310 
+00311 #endif // NL_ANIMATION_PLAYLIST_H
+00312 
+00313 /* End of animation_playlist.h */
+
+ + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1