Nebula
Loading...
Searching...
No Matches
animationloader.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12//------------------------------------------------------------------------------
13#include "util/stringatom.h"
17#include "coregraphics/config.h"
18#include "ids/idallocator.h"
19
20namespace Characters
21{
22class CharacterContext;
23}
24
25namespace CoreAnimation
26{
27
29{
31
34
35private:
36 friend class AnimSampleBuffer;
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//------------------------------------------------------------------------------
Assumes control over the character animation functionalities of a model if it contains a character de...
Definition charactercontext.h:59
friend class AnimSampleBuffer
Definition animationloader.h:36
AnimationLoader()
Constructor.
Definition animationloader.cc:24
void Unload(const Resources::ResourceId id) override
unload resource
Definition animationloader.cc:189
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
ResourceLoader::ResourceInitOutput InitializeResource(const ResourceLoadJob &job, const Ptr< IO::Stream > &stream) override
perform actual load, override in subclass
Definition animationloader.cc:150
__DeclareClass(AnimationLoader)
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Definition resourceloader.h:61
A character encapsulates a skeleton resource, an animation resource, and the ability to instantiate s...
Definition charactercontext.cc:24
An animation resource holds a set of animations from a loaded NAX file.
Definition charactercontext.h:41
Compile time configuration options for the CoreGraphics subsystem.
Definition resourceloader.h:182