SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL::AnimationDecoder Struct Reference

An object representing animation decoder. More...

Inheritance diagram for SDL::AnimationDecoder:
[legend]

Public Member Functions

constexpr AnimationDecoder (AnimationDecoderRaw resource) noexcept
 Constructs from raw AnimationDecoder.
constexpr AnimationDecoder (const AnimationDecoder &other)=delete
 Copy constructor.
constexpr AnimationDecoder (AnimationDecoder &&other) noexcept
 Move constructor.
constexpr AnimationDecoder (const AnimationDecoderRef &other)=delete
constexpr AnimationDecoder (AnimationDecoderRef &&other)=delete
 AnimationDecoder (StringParam file)
 Create a decoder to read a series of images from a file.
 AnimationDecoder (IOStreamRef src, StringParam type, bool closeio=false)
 Create a decoder to read a series of images from an IOStream.
 AnimationDecoder (PropertiesRef props)
 Create an animation decoder with the specified properties.
 ~AnimationDecoder ()
 Destructor.
constexpr AnimationDecoderoperator= (AnimationDecoder &&other) noexcept
 Assignment operator.
AnimationDecoderoperator= (const AnimationDecoder &other)=delete
 Assignment operator.
void Close ()
 Close an animation decoder, finishing any decoding.
PropertiesRef GetProperties ()
 Get the properties of an animation decoder.
Surface GetFrame (Uint64 *duration)
 Get the next frame in an animation decoder.
AnimationDecoderStatus GetStatus ()
 Get the decoder status indicating the current state of the decoder.
void Reset ()
 Reset an animation decoder.
constexpr ResourceBase (RawPointer resource)
 Constructs from resource pointer.
constexpr ResourceBase (std::nullptr_t=nullptr)
 Constructs null/invalid.
Public Member Functions inherited from SDL::ResourceBase< AnimationDecoderRaw >
constexpr ResourceBase (RawPointer resource)
 Constructs from resource pointer.
constexpr operator bool () const
 Converts to bool.
constexpr auto operator<=> (const ResourceBase &other) const=default
 Comparison.
constexpr RawConstPointer operator-> () const noexcept
 member access to underlying resource pointer.
constexpr RawPointer get () const noexcept
 Retrieves underlying resource pointer.
constexpr RawPointer release () noexcept
 Retrieves underlying resource pointer and clear this.

Additional Inherited Members

Public Types inherited from SDL::ResourceBase< AnimationDecoderRaw >
using RawPointer
 The underlying raw pointer type.
using RawConstPointer
 The underlying const raw pointer type.

Detailed Description

An object representing animation decoder.

Category:
Resource

Constructor & Destructor Documentation

◆ AnimationDecoder()

SDL::AnimationDecoder::AnimationDecoder ( AnimationDecoderRaw resource)
inlineexplicitconstexprnoexcept

Constructs from raw AnimationDecoder.

Parameters
resourcea AnimationDecoderRaw to be wrapped.

This assumes the ownership, call release() if you need to take back.


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