Nebula
Toggle main menu visibility
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
//------------------------------------------------------------------------------
18
namespace
CoreAnimation
19
{
20
class
CurveType
21
{
22
public
:
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
33
NumCurveTypes
,
34
InvalidCurveType
,
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
CoreAnimation::CurveType
Describes the general data type of the keys stored in an animation curve.
Definition
curvetype.h:21
CoreAnimation::CurveType::FromString
static Code FromString(const Util::String &str)
convert from string
Definition
curvetype.cc:17
CoreAnimation::CurveType::Code
Code
animation curve types, keep this order!
Definition
curvetype.h:25
CoreAnimation::CurveType::Scale
@ Scale
Definition
curvetype.h:28
CoreAnimation::CurveType::Color
@ Color
Definition
curvetype.h:29
CoreAnimation::CurveType::InvalidCurveType
@ InvalidCurveType
Definition
curvetype.h:34
CoreAnimation::CurveType::Rotation
@ Rotation
Definition
curvetype.h:27
CoreAnimation::CurveType::Velocity
@ Velocity
Definition
curvetype.h:30
CoreAnimation::CurveType::Translation
@ Translation
Definition
curvetype.h:26
CoreAnimation::CurveType::NumCurveTypes
@ NumCurveTypes
Definition
curvetype.h:33
CoreAnimation::CurveType::Float4
@ Float4
Definition
curvetype.h:31
CoreAnimation::CurveType::ToString
static Util::String ToString(Code c)
convert to string
Definition
curvetype.cc:35
CoreAnimation
An animation resource holds a set of animations from a loaded NAX file.
Definition
charactercontext.h:40
string.h
Util.String
Nebula's universal string class.
Definition
String.cs:8
types.h
code
render
coreanimation
curvetype.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.