From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a03574.html | 187 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 docs/doxygen/nel/a03574.html (limited to 'docs/doxygen/nel/a03574.html') diff --git a/docs/doxygen/nel/a03574.html b/docs/doxygen/nel/a03574.html new file mode 100644 index 00000000..eed137d6 --- /dev/null +++ b/docs/doxygen/nel/a03574.html @@ -0,0 +1,187 @@ + + +NeL: NL3D::CTrackKeyFramerLinear< CKeyRGBA, NLMISC::CRGBA > class Reference + + + +
+

NL3D::CTrackKeyFramerLinear< CKeyRGBA, NLMISC::CRGBA > Class Reference

#include <track_keyframer.h> +

+


Detailed Description

+ITrack implementation for linear CRGBA keyframer.

+

Author:
Cyril 'Hulud' Corvazier

+Nevrax France

+
Date:
2001
+ +

+ +

+Definition at line 611 of file track_keyframer.h. + + + + + + + + + + + +

Public Member Functions

virtual void evalKey (const CKeyRGBA *previous, const CKeyRGBA *next, TAnimationTime datePrevious, TAnimationTime dateNext, TAnimationTime date)
 From ITrackKeyFramer.

virtual const IAnimatedValuegetValue () const
 From ITrack.


Private Attributes

CAnimatedValueBlendable< NLMISC::CRGBA_Value
+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual void NL3D::CTrackKeyFramerLinear< CKeyRGBA, NLMISC::CRGBA >::evalKey const CKeyRGBA previous,
const CKeyRGBA next,
TAnimationTime  datePrevious,
TAnimationTime  dateNext,
TAnimationTime  date
[inline, virtual]
+
+ + + + + +
+   + + +

+From ITrackKeyFramer. +

+ +

+Definition at line 622 of file track_keyframer.h. +

+References NLMISC::clamp(), NL3D::CKey< T >::OODeltaTime, NL3D::TAnimationTime, uint, and NL3D::CKey< T >::Value. +

+

00625         {
+00626                 if(previous && next)
+00627                 {
+00628                         // lerp from previous to cur.
+00629                         date-= datePrevious;
+00630                         date*= previous->OODeltaTime;
+00631                         NLMISC::clamp(date, 0,1);
+00632                         
+00633                         // blend.
+00634                         _Value.Value.blendFromui(previous->Value, next->Value, (uint)(date*256));
+00635                 }
+00636                 else
+00637                 {
+00638                         if (previous)
+00639                                 _Value.Value= previous->Value;
+00640                         else
+00641                                 if (next)
+00642                                         _Value.Value= next->Value;
+00643                 }
+00644         }
+
+

+ + + + +
+ + + + + + + + + +
virtual const IAnimatedValue& NL3D::CTrackKeyFramerLinear< CKeyRGBA, NLMISC::CRGBA >::getValue  )  const [inline, virtual]
+
+ + + + + +
+   + + +

+From ITrack. +

+ +

+Definition at line 616 of file track_keyframer.h. +

+

00617         {
+00618                 return _Value;
+00619         }
+
+


Field Documentation

+

+ + + + +
+ + +
CAnimatedValueBlendable<NLMISC::CRGBA> NL3D::CTrackKeyFramerLinear< CKeyRGBA, NLMISC::CRGBA >::_Value [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 647 of file track_keyframer.h.

+


The documentation for this class was generated from the following file: +
Generated on Tue Mar 16 08:10:47 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1