ScummVM API documentation
Alcachofa::Animation Class Reference

#include <graphics.h>

Inheritance diagram for Alcachofa::Animation:
Alcachofa::AnimationBase

Public Member Functions

 Animation (Common::String fileName, AnimationFolder folder=AnimationFolder::Animations)
 
void load ()
 
void freeImages ()
 
uint spriteCount () const
 
uint frameCount () const
 
uint32 frameDuration (int32 frameI) const
 
Common::Point frameCenter (int32 frameI) const
 
uint32 totalDuration () const
 
uint8 & premultiplyAlpha ()
 
Common::Rect frameBounds (int32 frameI) const
 
Common::Point totalFrameOffset (int32 frameI) const
 
int32 frameAtTime (uint32 time) const
 
int32 imageIndex (int32 frameI, int32 spriteI) const
 
void outputRect2D (int32 frameI, float scale, Math::Vector2d &topLeft, Math::Vector2d &size) const
 
void outputRect3D (int32 frameI, float scale, Math::Vector3d &topLeft, Math::Vector2d &size) const
 
void overrideTexture (const Graphics::ManagedSurface &surface)
 
void draw2D (int32 frameI, Math::Vector2d topLeft, float scale, BlendMode blendMode, Color color)
 
void draw3D (int32 frameI, Math::Vector3d topLeft, float scale, BlendMode blendMode, Color color)
 
void drawEffect (int32 frameI, Math::Vector3d topLeft, Math::Vector2d tiling, Math::Vector2d texOffset, BlendMode blendMode)
 

Detailed Description

Animations prerenders its sprites into a single texture for a set frame. This prerendering can be customized with a alpha to be premultiplied


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