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

An object representing the encoder context. More...

Inheritance diagram for SDL::AnimationEncoder:
[legend]

Public Member Functions

constexpr AnimationEncoder (AnimationEncoderRaw resource) noexcept
 Constructs from raw AnimationEncoder.
constexpr AnimationEncoder (AnimationEncoder &&other) noexcept
 Move constructor.
 AnimationEncoder (StringParam file)
 Create an encoder to save a series of images to a file.
 AnimationEncoder (IOStreamRef dst, StringParam type, bool closeio=false)
 Create an encoder to save a series of images to an IOStream.
 AnimationEncoder (PropertiesRef props)
 Create an animation encoder with the specified properties.
 ~AnimationEncoder ()
 Destructor.
constexpr AnimationEncoderoperator= (AnimationEncoder &&other) noexcept
 Assignment operator.
Public Member Functions inherited from SDL::AnimationEncoderBase
void Close ()
 Close an animation encoder, finishing any encoding.
void AddFrame (SurfaceRef surface, Uint64 duration)
 Add a frame to an animation encoder.
constexpr ResourceBaseT ()=default
 Default constructor, creates null/invalid resource.
constexpr ResourceBaseT (RawPointer resource)
 Constructs from resource pointer.
constexpr ResourceBaseT (std::nullptr_t)
 Constructs null/invalid.
constexpr ResourceBaseT (const ResourceBaseT &)=default
 Copy constructor.
constexpr ResourceBaseT (ResourceBaseT &&) noexcept=default
 Move constructor.
Public Member Functions inherited from SDL::ResourceBaseT< AnimationEncoderRaw >
constexpr ResourceBaseT ()=default
 Default constructor, creates null/invalid resource.
constexpr operator bool () const
 Converts to bool.
constexpr auto operator<=> (const ResourceBaseT &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::ResourceBaseT< AnimationEncoderRaw >
using RawPointer
 The underlying raw pointer type.
using RawConstPointer
 The underlying const raw pointer type.
Protected Member Functions inherited from SDL::ResourceBaseT< AnimationEncoderRaw >
constexpr ~ResourceBaseT ()=default
 Destructor.
constexpr ResourceBaseToperator= (const ResourceBaseT &)=default
 Assignment operator.

Detailed Description

An object representing the encoder context.

Category:
Resource

Constructor & Destructor Documentation

◆ AnimationEncoder()

SDL::AnimationEncoder::AnimationEncoder ( AnimationEncoderRaw resource)
inlineexplicitconstexprnoexcept

Constructs from raw AnimationEncoder.

Parameters
resourcea AnimationEncoderRaw 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: