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

A visual effect for drawing fire flies glowing on top of the scene. More...

#include <fireflies.h>

Inheritance diagram for Stark::VisualEffectFireFlies:
Collaboration diagram for Stark::VisualEffectFireFlies:

List of all members.

Classes

struct  FireFly
struct  Frame

Public Member Functions

 VisualEffectFireFlies (Gfx::Driver *gfx, const Common::Point &size)
 ~VisualEffectFireFlies () override
void setParams (const Common::String &params)
 Set the effect's parameters using the string based data format found in the game data files.
void render (const Common::Point &position)
 Draw the effect at the designated position.

Static Public Attributes

static const VisualType TYPE = Visual::kEffectFirefly

Private Member Functions

void update ()
void drawFireFly (const FireFly &fly)

Private Attributes

uint _fireFlyCount
byte _mainColorR
byte _mainColorG
byte _mainColorB
Common::Array< Frame_frames
Common::Array< FireFly_fireFlies

Detailed Description

A visual effect for drawing fire flies glowing on top of the scene.

Definition at line 42 of file fireflies.h.


Constructor & Destructor Documentation

Stark::VisualEffectFireFlies::VisualEffectFireFlies ( Gfx::Driver gfx,
const Common::Point size 
) [explicit]

Definition at line 40 of file fireflies.cpp.

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

Definition at line 48 of file fireflies.cpp.


Member Function Documentation

void Stark::VisualEffectFireFlies::drawFireFly ( const FireFly fly  )  [private]

Definition at line 172 of file fireflies.cpp.

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

Draw the effect at the designated position.

Definition at line 51 of file fireflies.cpp.

void Stark::VisualEffectFireFlies::setParams ( const Common::String params  ) 

Set the effect's parameters using the string based data format found in the game data files.

Definition at line 72 of file fireflies.cpp.

void Stark::VisualEffectFireFlies::update (  )  [private]

Definition at line 145 of file fireflies.cpp.


Member Data Documentation

Definition at line 75 of file fireflies.h.

Definition at line 78 of file fireflies.h.

Definition at line 77 of file fireflies.h.

Definition at line 76 of file fireflies.h.

const VisualType Stark::VisualEffectFireFlies::TYPE = Visual::kEffectFirefly [static]

Definition at line 44 of file fireflies.h.


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


Generated on Sat Jul 20 2019 05:03:31 for ResidualVM by doxygen 1.7.1
curved edge   curved edge