|
constexpr | AnimationRef (const AnimationRef &other) |
| Copy constructor.
|
|
constexpr | AnimationRef (AnimationRef &&other) |
| Move constructor.
|
|
constexpr | ~AnimationRef ()=default |
| Default constructor.
|
|
AnimationRef & | operator= (AnimationRef other) |
| Assignment operator.
|
|
void | reset (IMG_Animation *newResource={}) |
| Dispose of an AnimationBase and free its resources.
|
|
| AnimationBase (StringParam file) |
| Load an animation from a file.
|
|
| AnimationBase (IOStreamBase &src) |
| Load an animation from an IOStreamBase.
|
|
| AnimationBase (IOStreamBase &src, StringParam type) |
| Load an animation from an SDL datasource.
|
|
| AnimationBase (StringParam file) |
| Load an animation from a file.
|
|
| AnimationBase (IOStreamBase &src) |
| Load an animation from an IOStreamBase.
|
|
| AnimationBase (IOStreamBase &src, StringParam type) |
| Load an animation from an SDL datasource.
|
|
int | GetWidth () const |
| Get the width in pixels.
|
|
int | GetHeight () const |
| Get the height in pixels.
|
|
Point | GetSize () const |
| Get the size in pixels.
|
|
int | GetCount () const |
| Return the number of frames.
|
|
SurfaceRef | GetFrame (int index) const |
| Return the frame image under given index.
|
|
int | GetDelay (int index) const |
| Return the frame delay under given index.
|
|
constexpr | Resource (T resource={}) |
| Constructs the underlying resource.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
| Resource (const Resource &other)=delete |
|
| Resource (Resource &&other)=delete |
|
constexpr | Resource (IMG_Animation * resource={}) |
| Constructs the underlying resource.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
| Resource (const Resource &other)=delete |
|
| Resource (Resource &&other)=delete |
|
Resource & | operator= (const Resource &other)=delete |
|
Resource & | operator= (Resource &&other)=delete |
|
constexpr | operator bool () const |
| True if contains a valid resource.
|
|
constexpr bool | operator== (const Resource &other) const=default |
| Comparison.
|
|
constexpr bool | operator== (std::nullopt_t) const |
| Comparison.
|
|
constexpr bool | operator== (std::nullptr_t) const |
| Comparison.
|
|
constexpr IMG_Animation * | get () const |
| Return contained resource;.
|
|
constexpr IMG_Animation * | release (IMG_Animation * newResource={}) |
| Return contained resource and empties or replace value.
|
|
constexpr const IMG_Animation * | operator-> () const |
| Access to fields.
|
|
constexpr IMG_Animation * | operator-> () |
| Access to fields.
|
|