ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

An image with an animated flashing effect. More...

#include <flashingimage.h>

Inheritance diagram for Stark::VisualFlashingImage:
Collaboration diagram for Stark::VisualFlashingImage:

List of all members.

Public Member Functions

 VisualFlashingImage (Gfx::Driver *gfx)
 ~VisualFlashingImage () override
void initFromSurface (const Graphics::Surface *surface)
 Prepare flashing the specified image.
void render (const Common::Point &position)
 Render the image at the specified position.

Static Public Attributes

static const VisualType TYPE = Visual::kFlashingImage

Private Member Functions

void updateFadeLevel ()

Private Attributes

Gfx::Driver_gfx
Gfx::SurfaceRenderer_surfaceRenderer
Gfx::Texture_texture
int _flashingTimeRemaining
float _fadeLevel
bool _fadeLevelIncreasing

Static Private Attributes

static const float _fadeValueMax = 0.55f

Detailed Description

An image with an animated flashing effect.

Used by the top bar when a new entry has been added to the player's diary

Definition at line 52 of file flashingimage.h.


Constructor & Destructor Documentation

Stark::VisualFlashingImage::VisualFlashingImage ( Gfx::Driver gfx  )  [explicit]

Definition at line 39 of file flashingimage.cpp.

Stark::VisualFlashingImage::~VisualFlashingImage (  )  [override]

Definition at line 49 of file flashingimage.cpp.


Member Function Documentation

void Stark::VisualFlashingImage::initFromSurface ( const Graphics::Surface surface  ) 

Prepare flashing the specified image.

Definition at line 54 of file flashingimage.cpp.

void Stark::VisualFlashingImage::render ( const Common::Point position  ) 

Render the image at the specified position.

Definition at line 79 of file flashingimage.cpp.

void Stark::VisualFlashingImage::updateFadeLevel (  )  [private]

Definition at line 60 of file flashingimage.cpp.


Member Data Documentation

Definition at line 73 of file flashingimage.h.

Definition at line 74 of file flashingimage.h.

const float Stark::VisualFlashingImage::_fadeValueMax = 0.55f [static, private]

Definition at line 75 of file flashingimage.h.

Definition at line 72 of file flashingimage.h.

Definition at line 68 of file flashingimage.h.

Definition at line 70 of file flashingimage.h.

const VisualType Stark::VisualFlashingImage::TYPE = Visual::kFlashingImage [static]

Definition at line 54 of file flashingimage.h.


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


Generated on Sat Jan 12 2019 05:05:14 for ResidualVM by doxygen 1.7.1
curved edge   curved edge