31 lines
532 B
C++
31 lines
532 B
C++
|
#include "{MODULE}.hpp"
|
||
|
#include <libscscreensaver.hpp>
|
||
|
|
||
|
class {MODULE} : public ScreensaverPlugin {
|
||
|
public:
|
||
|
{MODULE}() = default;
|
||
|
~{MODULE}() = default;
|
||
|
|
||
|
int fps() const override;
|
||
|
void update() override;
|
||
|
void render() override;
|
||
|
};
|
||
|
|
||
|
ScreensaverPlugin* create_instance() {
|
||
|
return new {MODULE};
|
||
|
}
|
||
|
|
||
|
int {MODULE}::fps() const {
|
||
|
return 30;
|
||
|
}
|
||
|
|
||
|
void {MODULE}::update() {
|
||
|
// adjust state for next render
|
||
|
|
||
|
}
|
||
|
|
||
|
void {MODULE}::render() {
|
||
|
// render one frame based on current state
|
||
|
|
||
|
}
|