Nebula
Toggle main menu visibility
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
//------------------------------------------------------------------------------
18
namespace
CoreAnimation
19
{
20
class
SampleType
21
{
22
public
:
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
31
NumSampleTypes
,
32
InvalidSampleType
,
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
CoreAnimation::SampleType
Describes how an animation curve should be sampled.
Definition
sampletype.h:21
CoreAnimation::SampleType::FromString
static Code FromString(const Util::String &str)
convert from string
Definition
sampletype.cc:17
CoreAnimation::SampleType::ToString
static Util::String ToString(Code c)
convert to string
Definition
sampletype.cc:33
CoreAnimation::SampleType::Code
Code
animation sample types
Definition
sampletype.h:25
CoreAnimation::SampleType::CatmullRom
@ CatmullRom
Definition
sampletype.h:29
CoreAnimation::SampleType::InvalidSampleType
@ InvalidSampleType
Definition
sampletype.h:32
CoreAnimation::SampleType::Hermite
@ Hermite
Definition
sampletype.h:28
CoreAnimation::SampleType::Step
@ Step
Definition
sampletype.h:26
CoreAnimation::SampleType::NumSampleTypes
@ NumSampleTypes
Definition
sampletype.h:31
CoreAnimation::SampleType::Linear
@ Linear
Definition
sampletype.h:27
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
sampletype.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.