Tramway SDK
Public Member Functions | Static Public Member Functions | List of all members
tram::Render::Animation Class Reference

Skeletal animation for a 3D model. More...

#include <render/animation.h>

Inheritance diagram for tram::Render::Animation:
tram::Resource

Public Member Functions

 Animation (name_t name)
 
KeyframeGetKeyframes (name_t bone)
 
uint32_t GetKeyframeCount (name_t bone)
 
KeyframeHeaderGetHeader (uint32_t index)
 
uint32_t GetHeaderCount ()
 
void LoadFromDisk ()
 
void LoadFromMemory ()
 
void Unload ()
 
- Public Member Functions inherited from tram::Resource
 Resource (name_t name)
 
Resource::Status GetStatus () const
 
name_t GetName () const
 
size_t GetReferences () const
 
bool IsLoadFailed () const
 
void AddReference ()
 
void RemoveReference ()
 
void Load ()
 

Static Public Member Functions

static AnimationFind (name_t name)
 
static void LoadAll ()
 

Additional Inherited Members

- Public Types inherited from tram::Resource
enum  Status { UNLOADED , LOADED , READY }
 
- Protected Attributes inherited from tram::Resource
Status status = UNLOADED
 
name_t name
 
bool load_fail = false
 
size_t references = 0
 

Detailed Description

Skeletal animation for a 3D model.

See also
https://racenis.github.io/tram-sdk/documentation/render/animation.html

Constructor & Destructor Documentation

◆ Animation()

tram::Render::Animation::Animation ( name_t  name)
inline

Member Function Documentation

◆ Find()

Animation * tram::Render::Animation::Find ( name_t  name)
static

◆ GetHeader()

KeyframeHeader * tram::Render::Animation::GetHeader ( uint32_t  index)
inline

◆ GetHeaderCount()

uint32_t tram::Render::Animation::GetHeaderCount ( )
inline

◆ GetKeyframeCount()

uint32_t tram::Render::Animation::GetKeyframeCount ( name_t  bone)

◆ GetKeyframes()

Keyframe * tram::Render::Animation::GetKeyframes ( name_t  bone)

◆ LoadAll()

static void tram::Render::Animation::LoadAll ( )
static

◆ LoadFromDisk()

void tram::Render::Animation::LoadFromDisk ( )
virtual

Implements tram::Resource.

◆ LoadFromMemory()

void tram::Render::Animation::LoadFromMemory ( )
inlinevirtual

Implements tram::Resource.

◆ Unload()

void tram::Render::Animation::Unload ( )
virtual

Implements tram::Resource.


The documentation for this class was generated from the following files: