29 lines
600 B
C++
29 lines
600 B
C++
|
|
#ifndef TUNNEL_H
|
|
#define TUNNEL_H
|
|
|
|
#include "LogoBox.h"
|
|
#include "Mode.h"
|
|
#include "GnomeScreensaver.h"
|
|
|
|
class Tunnel : public Mode
|
|
{
|
|
public:
|
|
Tunnel();
|
|
~Tunnel();
|
|
bool expose (GnomeScreensaver & gs);
|
|
bool configure (GnomeScreensaver & gs);
|
|
bool update (GnomeScreensaver & gs);
|
|
protected:
|
|
LogoBox m_logobox;
|
|
int m_num_monitors;
|
|
uint64_t m_last_ticks;
|
|
void initMonitorInfo();
|
|
void getRandomAxis(float (*axis)[3]);
|
|
uint32_t getRandomSwitchTime();
|
|
float getRandomSpeed();
|
|
};
|
|
|
|
#endif /* TUNNEL_H */
|
|
|