supertux
Public Types | Public Member Functions | List of all members
ShrinkFade Class Referencefinal

Shrinks a rectangle screen towards a specific position. More...

#include <shrinkfade.hpp>

Inheritance diagram for ShrinkFade:
Inheritance graph
[legend]
Collaboration diagram for ShrinkFade:
Collaboration graph
[legend]

Public Types

enum  Direction { FADEOUT, FADEIN }
 
- Public Types inherited from ScreenFade
enum  FadeType { NONE, FADE, CIRCLE }
 

Public Member Functions

 ShrinkFade (const Vector &point, float fade_time, int draw_layer=LAYER_GUI+1, Direction=FADEOUT)
 
virtual void update (float dt_sec) override
 gets called for once (per logical) frame. More...
 
virtual void draw (DrawingContext &context) override
 gets called once per frame. More...
 
virtual bool done () const override
 returns true if the effect is completed
 

Detailed Description

Shrinks a rectangle screen towards a specific position.

Member Function Documentation

◆ draw()

void ShrinkFade::draw ( DrawingContext context)
overridevirtual

gets called once per frame.

The ScreenFade should draw itself in this function. State changes should not be done in this function, but rather in update

Implements ScreenFade.

◆ update()

void ShrinkFade::update ( float  dt_sec)
overridevirtual

gets called for once (per logical) frame.

ScreenFades should do their state updates and logic here

Implements ScreenFade.


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