|
| | Animation () |
| | Default constructor. More...
|
| |
| | Animation (const Animation &)=delete |
| | Copy constructor is disabled, use Duplicate or DeepDuplicate. More...
|
| |
| | Animation (Graphics::BitmapAnimationProvider &&anim) |
| | Conversion constructor. More...
|
| |
| virtual GID::Type | GetGID () const override |
| | Returns the Gorgon Identifier. More...
|
| |
| Graphics::RectangularAnimationStorage | MoveOut () |
| | Moves this animation out as a generic value type animation. More...
|
| |
| Graphics::BitmapAnimationProvider | MoveOutAsBitmap () |
| | Moves the animation out of the resource system. Use Prepare and Discard before moving out to avoid copying data. !!! More...
|
| |
| Graphics::BitmapAnimationProvider & | MoveOutProvider () override |
| |
| Animation & | operator= (const Animation &other)=delete |
| | Copy assignment is disabled, use Duplicate. More...
|
| |
| | basic_TextureAnimationProvider ()=default |
| |
| template<class C_ > |
| | basic_TextureAnimationProvider (C_ &&other) |
| |
| | basic_TextureAnimationProvider (const basic_TextureAnimationProvider &)=delete |
| |
| | ~basic_TextureAnimationProvider () |
| |
| void | Add (const F_ &frame) |
| |
| void | Add (const Gorgon::Animation::Frame &frame) override |
| |
| void | Add (T_ &&image, unsigned duration=42) |
| | Adds the given image to the end of the animation. More...
|
| |
| void | Add (T_ &image, unsigned duration=42, bool own=false) |
| | Adds the given image to the end of the animation. More...
|
| |
| Iterator | begin () |
| | Returns an iterator to the beginning of the animation frames. More...
|
| |
| ConstIterator | begin () const |
| | Returns an iterator to the beginning of the animation frames. More...
|
| |
| void | Clear () override |
| | Removes all images from the animation. More...
|
| |
| virtual AnimationType & | CreateAnimation (bool create=true) const override |
| | Creates a new animation from this resource. More...
|
| |
| virtual AnimationType & | CreateAnimation (Gorgon::Animation::ControllerBase &controller) const override |
| | Creates a new animation from this resource. More...
|
| |
| basic_TextureAnimationProvider | Duplicate () const |
| |
| Iterator | end () |
| | Returns an iterator to the end of the animation frames. More...
|
| |
| ConstIterator | end () const |
| | Returns an iterator to the end of the animation frames. More...
|
| |
| const F_ & | FrameAt (int index) const override |
| | Returns the frame at specific point. More...
|
| |
| unsigned | FrameIndexAt (unsigned time) const |
| | Returns which frame is at the given time. More...
|
| |
| int | GetCount () const override |
| | Returns number of frames. More...
|
| |
| unsigned | GetDuration () const override |
| | Returns the duration of the animation. More...
|
| |
| unsigned | GetDuration (unsigned frame) const override |
| | Returns the duration of the given frame. More...
|
| |
| int | GetHeight () const |
| | Returns the size of the first image. More...
|
| |
| Geometry::Size | GetSize () const override |
| | Returns the size of the first image. More...
|
| |
| int | GetWidth () const |
| | Returns the size of the first image. More...
|
| |
| T_ & | ImageAt (unsigned time) const |
| | Returns the image that is to be shown at the given time. More...
|
| |
| void | Insert (const F_ &frm, int before) |
| | Inserts the given image before the given frame. More...
|
| |
| void | Insert (const Gorgon::Animation::Frame &frame, int before) override |
| | Inserts the given image before the given frame. More...
|
| |
| void | Insert (T_ &&img, int before, unsigned duration=42) |
| | Inserts the given image before the given frame. More...
|
| |
| void | Insert (T_ &image, int before, unsigned duration=42) |
| | Inserts the given image before the given frame. More...
|
| |
| void | MoveBefore (unsigned index, int before) override |
| | Moves a frame that has the index before the given position. More...
|
| |
| template<class C_ > |
| basic_TextureAnimationProvider & | operator= (C_ &&other) |
| |
| basic_TextureAnimationProvider & | operator= (const basic_TextureAnimationProvider &)=delete |
| |
| T_ & | operator[] (int frame) const |
| | Returns the image at the given frame. More...
|
| |
| void | Own (T_ &image) |
| | Owns the given image so that it would be destroyed with this animation. More...
|
| |
| void | ReleaseAll () |
| | Releases ownership of all images in the animation without destroying them. More...
|
| |
| void | Remove (ConstIterator it) |
| | Removes an image from the animation. More...
|
| |
| void | Remove (unsigned frame) override |
| | Removes an image from the animation. More...
|
| |
| unsigned | StartOf (unsigned frame) const override |
| | Returns the starting time of the given frame. More...
|
| |
| Graphics::RectangularAnimationStorage | MoveOut () |
| | Moves this animation out as a generic value type animation. More...
|
| |
| | Base () |
| | Default constructor. More...
|
| |
| const Containers::Collection< Base >::ConstIterator | begin () const |
| | Allows easy iteration through range based fors. More...
|
| |
| const Containers::Collection< Base >::ConstIterator | cbegin () const |
| | Beginning of children. More...
|
| |
| const Containers::Collection< Base >::ConstIterator | cend () const |
| | End of children. More...
|
| |
| bool | DeleteResource () |
| | Safely deletes the resource. More...
|
| |
| virtual void | Discard () |
| | This function shall discard any transitional data which is not vital after Prepare function is issued. More...
|
| |
| const Containers::Collection< Base >::ConstIterator | end () const |
| | Allows easy iteration through range based fors. More...
|
| |
| virtual SGuid | GetGuid () const |
| | Returns the guid of the object. More...
|
| |
| const std::string & | GetName () const |
| | Returns the name of this object. More...
|
| |
| Base & | GetParent () const |
| | Returns the parent. If no parent set, this function throws std::runtime_error. More...
|
| |
| Base * | GetParentPtr () const |
| | Returns the pointer to the parent. This function may return nullptr. More...
|
| |
| const Base & | GetRoot () const |
| | Returns the root of this resource. More...
|
| |
| bool | HasParent () const |
| | Returns whether this object has a parent. More...
|
| |
| virtual bool | IsEqual (const SGuid &guid) const |
| | This function tests whether this object has the given SGuid. More...
|
| |
| virtual void | Prepare () |
| | This function shall prepare this resource to be used after resource is loaded. More...
|
| |
| virtual void | Resolve (File &file) |
| | This function shall resolve links or similar constructs. More...
|
| |
| void | Save (Writer &writer) |
| | Saves this object into the given writer. The writer should be open prior to this call. More...
|
| |
| virtual void | SetGuid (SGuid guid) |
| | Changes the guid of the object. More...
|
| |
| virtual void | SetName (const std::string &name) |
| | Sets the name of the object. More...
|
| |
This class represents an animation resource.
Image animations can be created using this object. An animation object can be moved. Duplicate function should be used to copy an animation.