Nebula
Loading...
Searching...
No Matches
sampletype.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "core/types.h"
13#if !__NEBULA_JOB__
14#include "util/string.h"
15#endif
16
17//------------------------------------------------------------------------------
18namespace CoreAnimation
19{
21{
22public:
24 enum Code
25 {
26 Step, //> do not interpolate, just step
27 Linear, //> simple linear interpolation
28 Hermite, //> herminte spline interpolation
29 CatmullRom, //> catmull-rom interpolation
30
33 };
34
35 #if !__NEBULA_JOB__
37 static Code FromString(const Util::String& str);
39 static Util::String ToString(Code c);
40 #endif
41};
42
43} // namespace CoreAnimation
44//------------------------------------------------------------------------------
45
Describes how an animation curve should be sampled.
Definition sampletype.h:21
static Code FromString(const Util::String &str)
convert from string
Definition sampletype.cc:17
static Util::String ToString(Code c)
convert to string
Definition sampletype.cc:33
Code
animation sample types
Definition sampletype.h:25
@ CatmullRom
Definition sampletype.h:29
@ InvalidSampleType
Definition sampletype.h:32
@ Hermite
Definition sampletype.h:28
@ Step
Definition sampletype.h:26
@ NumSampleTypes
Definition sampletype.h:31
@ Linear
Definition sampletype.h:27
An animation resource holds a set of animations from a loaded NAX file.
Definition charactercontext.h:40
Nebula's universal string class.
Definition string.h:50