#include <explodingimage.h>
Public Member Functions | |
VisualExplodingImage (Gfx::Driver *gfx) | |
void | initFromSurface (const Graphics::Surface *surface, uint originalWidth, uint originalHeight) |
void | render (const Common::Point &position) |
Public Member Functions inherited from Stark::Visual | |
Visual (VisualType type) | |
template<class T > | |
T * | get () |
Static Public Attributes | |
static const VisualType | TYPE = Visual::kExplodingImage |
Additional Inherited Members | |
Public Types inherited from Stark::Visual | |
enum | VisualType { kImageXMG = 2, kRendered = 3, kImageText = 4, kSmackerStream = 5, kActor = 6, kSmackerFMV = 7, kEffectFish = 8, kEffectBubbles = 9, kEffectFirefly = 10, kExplodingImage = 100, kFlashingImage = 101 } |
An image with an animated explosion effect
Used by the top bar when picking up an inventory item
void Stark::VisualExplodingImage::initFromSurface | ( | const Graphics::Surface * | surface, |
uint | originalWidth, | ||
uint | originalHeight | ||
) |
Prepare exploding the specified image
void Stark::VisualExplodingImage::render | ( | const Common::Point & | position | ) |
Render the image at the specified position