Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
animationresource.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
9
//------------------------------------------------------------------------------
10
#include "
resources/resourceid.h
"
11
#include "
ids/idallocator.h
"
12
#include "
util/fixedarray.h
"
13
#include "
animation.h
"
14
namespace
CoreAnimation
15
{
16
17
RESOURCE_ID_TYPE
(
AnimationResourceId
);
18
20
const
AnimationId
AnimationResourceGetAnimation
(
const
AnimationResourceId
id
,
IndexT
index);
21
23
void
DestroyAnimationResource
(
const
AnimationResourceId
id
);
24
25
typedef
Ids::IdAllocator
<
26
Util::FixedArray<AnimationId>
27
>
AnimationResourceAllocator
;
28
extern
AnimationResourceAllocator
animationResourceAllocator
;
29
30
}
// namespace CoreAnimation
animation.h
Ids::IdAllocator
An ID allocator associates an id with a slice in an N number of arrays.
Definition
idallocator.h:39
Util::FixedArray
Implements a fixed size one-dimensional array.
Definition
fixedarray.h:20
fixedarray.h
idallocator.h
CoreAnimation
An animation resource holds a set of animations from a loaded NAX file.
Definition
charactercontext.h:40
CoreAnimation::DestroyAnimationResource
void DestroyAnimationResource(const AnimationResourceId id)
Destroy animation resource.
Definition
animationresource.cc:24
CoreAnimation::AnimationResourceAllocator
Ids::IdAllocator< Util::FixedArray< AnimationId > > AnimationResourceAllocator
Definition
animationresource.h:27
CoreAnimation::AnimationResourceGetAnimation
const AnimationId AnimationResourceGetAnimation(const AnimationResourceId id, IndexT index)
Get animation from resource.
Definition
animationresource.cc:15
CoreAnimation::animationResourceAllocator
AnimationResourceAllocator animationResourceAllocator
Definition
animationresource.cc:9
resourceid.h
RESOURCE_ID_TYPE
#define RESOURCE_ID_TYPE(type)
Definition
resourceid.h:41
CoreAnimation::AnimationId
Definition
animation.h:25
CoreAnimation::AnimationResourceId
Definition
animationresource.h:17
IndexT
int IndexT
Definition
types.h:41
code
render
coreanimation
animationresource.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.