Porytiles
Loading...
Searching...
No Matches
porytiles::FrameLoadResult< PixelType > Struct Template Reference

Result of loading an animation frame from a PNG file. More...

#include <anim_frame_loader.hpp>

Public Attributes

AnimFrame< PixelType > frame
 
std::size_t width_tiles
 
std::size_t height_tiles
 

Detailed Description

template<SupportsTransparency PixelType>
struct porytiles::FrameLoadResult< PixelType >

Result of loading an animation frame from a PNG file.

Contains the loaded AnimFrame along with the frame dimensions in tiles. The dimensions are calculated from the source image and should be used to update AnimParams (typically only from the first frame, since all frames in an animation must have the same dimensions).

Template Parameters
PixelTypeThe pixel type for the frame tiles (Rgba32 or IndexPixel)

Definition at line 50 of file anim_frame_loader.hpp.

Member Data Documentation

◆ frame

template<SupportsTransparency PixelType>
AnimFrame<PixelType> porytiles::FrameLoadResult< PixelType >::frame

Definition at line 51 of file anim_frame_loader.hpp.

◆ height_tiles

template<SupportsTransparency PixelType>
std::size_t porytiles::FrameLoadResult< PixelType >::height_tiles

Definition at line 53 of file anim_frame_loader.hpp.

◆ width_tiles

template<SupportsTransparency PixelType>
std::size_t porytiles::FrameLoadResult< PixelType >::width_tiles

Definition at line 52 of file anim_frame_loader.hpp.


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