/
splash.hpp
executable file
·47 lines (35 loc) · 1.04 KB
/
splash.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//==============================================================================
#ifndef ArseSplash
#define ArseSplash
#include <hge.h>
#include <context.hpp>
class hgeDistortionMesh;
class Engine;
//------------------------------------------------------------------------------
class Splash : public Context
{
public:
Splash( Engine * engine = 0 );
virtual ~Splash();
private:
Splash( const Splash & );
Splash & operator=( const Splash & );
public:
virtual void init();
virtual void fini();
virtual bool update( float dt );
virtual void render();
private:
bool _onTime( float time );
void _distortMeshOne();
void _distortMeshTwo();
void _fade( float start_in, float start_out, float end_in, float end_out,
const char * name );
private:
HCHANNEL m_channel;
float m_timer;
hgeDistortionMesh * m_mesh;
float m_delta_time;
};
#endif
//==============================================================================