Nebula
Loading...
Searching...
No Matches
curvetype.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 Translation, //> keys in curve describe a translation
27 Rotation, //> keys in curve describe a rotation quaternion
28 Scale, //> keys in curve describe a scale
29 Color, //> keys in curve describe a color
30 Velocity, //> keys describe a linear velocition
31 Float4, //> generic 4D key
32
35 };
36
37 #if !__NEBULA_JOB__
39 static Code FromString(const Util::String& str);
41 static Util::String ToString(Code c);
42 #endif
43};
44
45} // namespace CoreAnimation
46//------------------------------------------------------------------------------
47
Describes the general data type of the keys stored in an animation curve.
Definition curvetype.h:21
static Code FromString(const Util::String &str)
convert from string
Definition curvetype.cc:17
Code
animation curve types, keep this order!
Definition curvetype.h:25
@ Scale
Definition curvetype.h:28
@ Color
Definition curvetype.h:29
@ InvalidCurveType
Definition curvetype.h:34
@ Rotation
Definition curvetype.h:27
@ Velocity
Definition curvetype.h:30
@ Translation
Definition curvetype.h:26
@ NumCurveTypes
Definition curvetype.h:33
@ Float4
Definition curvetype.h:31
static Util::String ToString(Code c)
convert to string
Definition curvetype.cc:35
An animation resource holds a set of animations from a loaded NAX file.
Definition charactercontext.h:40
Nebula's universal string class.
Definition String.cs:8