FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::anim::AnimationFrame Struct Reference

Structure that contains the information of a frame of an animation. More...

#include <anim_manager.hpp>

Public Attributes

std::shared_ptr< fge::TextureType_texture
 The shared pointer texture of the frame.
 
std::filesystem::path _path
 The file path of the texture.
 
fge::Vector2u _texturePosition
 The tileset grid position, only useful if the type is ANIM_TYPE_TILESET.
 
uint32_t _ticks
 The number of ticks that the frame will be displayed, by default 1 tick take 100 ms.
 

Detailed Description

Structure that contains the information of a frame of an animation.

Member Data Documentation

◆ _path

std::filesystem::path fge::anim::AnimationFrame::_path

The file path of the texture.

◆ _texture

std::shared_ptr<fge::TextureType> fge::anim::AnimationFrame::_texture

The shared pointer texture of the frame.

◆ _texturePosition

fge::Vector2u fge::anim::AnimationFrame::_texturePosition

The tileset grid position, only useful if the type is ANIM_TYPE_TILESET.

◆ _ticks

uint32_t fge::anim::AnimationFrame::_ticks

The number of ticks that the frame will be displayed, by default 1 tick take 100 ms.


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