Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
animationloader.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
12
//------------------------------------------------------------------------------
13
#include "
util/stringatom.h
"
14
#include "
resources/resourceloader.h
"
15
#include "
coreanimation/animclip.h
"
16
#include "
coreanimation/animkeybuffer.h
"
17
#include "
coregraphics/config.h
"
18
#include "
ids/idallocator.h
"
19
20
namespace
Characters
21
{
22
class
CharacterContext;
23
}
24
25
namespace
CoreAnimation
26
{
27
28
class
AnimationLoader
:
public
Resources::ResourceLoader
29
{
30
__DeclareClass
(
AnimationLoader
);
31
33
AnimationLoader
();
34
35
private
:
36
friend
class
AnimSampleBuffer
;
37
friend
class
Characters::CharacterContext
;
38
40
ResourceLoader::ResourceInitOutput
InitializeResource
(
const
ResourceLoadJob
& job,
const
Ptr<IO::Stream>
& stream)
override
;
42
ResourceLoader::ResourceInitOutput
ReinitializeResource
(
const
ResourceLoadJob
& job,
const
Ptr<IO::Stream>
& stream)
override
;
44
void
Unload
(
const
Resources::ResourceId
id
)
override
;
45
};
46
47
}
// namespace CoreAnimation
48
//------------------------------------------------------------------------------
animclip.h
animkeybuffer.h
Characters::CharacterContext
Assumes control over the character animation functionalities of a model if it contains a character de...
Definition
charactercontext.h:59
CoreAnimation::AnimationLoader::AnimSampleBuffer
friend class AnimSampleBuffer
Definition
animationloader.h:36
CoreAnimation::AnimationLoader::AnimationLoader
AnimationLoader()
Constructor.
Definition
animationloader.cc:24
CoreAnimation::AnimationLoader::Unload
void Unload(const Resources::ResourceId id) override
unload resource
Definition
animationloader.cc:189
CoreAnimation::AnimationLoader::ReinitializeResource
ResourceLoader::ResourceInitOutput ReinitializeResource(const ResourceLoadJob &job, const Ptr< IO::Stream > &stream) override
load the animations again into the same resource, the animations it had are destroyed
Definition
animationloader.cc:168
CoreAnimation::AnimationLoader::InitializeResource
ResourceLoader::ResourceInitOutput InitializeResource(const ResourceLoadJob &job, const Ptr< IO::Stream > &stream) override
perform actual load, override in subclass
Definition
animationloader.cc:150
CoreAnimation::AnimationLoader::__DeclareClass
__DeclareClass(AnimationLoader)
Ptr
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition
ptr.h:38
Resources::ResourceLoader
Definition
resourceloader.h:61
idallocator.h
Characters
A character encapsulates a skeleton resource, an animation resource, and the ability to instantiate s...
Definition
charactercontext.cc:24
CoreAnimation
An animation resource holds a set of animations from a loaded NAX file.
Definition
charactercontext.h:41
config.h
Compile time configuration options for the CoreGraphics subsystem.
resourceloader.h
stringatom.h
Resources::ResourceLoader::ResourceLoadJob
Definition
resourceloader.h:182
code
render
coreanimation
animationloader.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.