CoriEngine
Loading...
Searching...
No Matches
Cori::Graphics::Animation Struct Reference

Owning handle to the animation inside the AnimationPack, when paired with Animation::PlayParams can be passed to QuadAnimator. More...

#include <Animation.hpp>

Classes

struct  PlayParams
 Tells the QuadAnimator how to play the animation. More details in the QuadAnimator docs. More...

Public Member Functions

glm::u16vec2 GetFrameSize () const

Public Attributes

std::shared_ptr< AnimationPackm_Pack
uint32_t m_AnimationID { 0 }

Detailed Description

Owning handle to the animation inside the AnimationPack, when paired with Animation::PlayParams can be passed to QuadAnimator.

Definition at line 10 of file Graphics/Animator/Animation.hpp.

Member Function Documentation

◆ GetFrameSize()

glm::u16vec2 Cori::Graphics::Animation::GetFrameSize ( ) const
nodiscard

Definition at line 6 of file Graphics/Animator/Animation.cpp.

Member Data Documentation

◆ m_AnimationID

uint32_t Cori::Graphics::Animation::m_AnimationID { 0 }

Definition at line 28 of file Graphics/Animator/Animation.hpp.

◆ m_Pack

std::shared_ptr<AnimationPack> Cori::Graphics::Animation::m_Pack

Definition at line 27 of file Graphics/Animator/Animation.hpp.


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