34 lines
651 B
C++
34 lines
651 B
C++
|
|
#ifndef TUNNEL_H
|
|
#define TUNNEL_H
|
|
|
|
#include <list>
|
|
|
|
#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);
|
|
typedef struct {
|
|
float offset;
|
|
float zrot;
|
|
float trot;
|
|
float spin_axis[3];
|
|
} LBStruct;
|
|
protected:
|
|
LogoBox m_logobox;
|
|
uint64_t m_last_ticks;
|
|
std::list<LBStruct> m_logos;
|
|
float m_offset;
|
|
};
|
|
|
|
#endif /* TUNNEL_H */
|
|
|