This commit is contained in:
Paul 2001-01-11 20:25:27 +00:00
parent e69ccf257a
commit dd449b08ff

View File

@ -32,24 +32,34 @@
class CFader class CFader
{ {
public: public:
typedef enum
{
BUBBLE_FADE,
BLACK_FADE,
} FADE_STYLE;
static void render(); static void render();
static void think(int _frames); static void think(int _frames);
static void setFadingOut(); static void setFadingOut(FADE_STYLE _style=BUBBLE_FADE);
static void setFadingIn(); static void setFadingIn(FADE_STYLE _style=BUBBLE_FADE);
static int isFading(); static int isFading();
private: private:
enum enum
{ {
// Bubble style
FADE_BORDER_SIZE=80, FADE_BORDER_SIZE=80,
FADE_SMOOTH_BORDER_SIZE=60, FADE_SMOOTH_BORDER_SIZE=60,
BUBBLES_PER_FRAME=30, BUBBLES_PER_FRAME=30,
// Both styles
FADE_SPEED=3, FADE_SPEED=3,
}; };
typedef enum _fade_mode typedef enum
{ {
FADED_IN, FADED_IN,
FADING_IN, FADING_IN,
@ -58,7 +68,8 @@ private:
} FADE_MODE; } FADE_MODE;
static FADE_MODE s_fadeMode; static FADE_MODE s_fadeMode;
static int s_fadeLine; static FADE_STYLE s_fadeStyle;
static int s_fadeValue;
}; };