Added new Whirling module, just blank for now

This commit is contained in:
Bob Polis
2021-09-05 23:21:41 +02:00
parent ab024a7ec0
commit 92bc54e3a6
3 changed files with 118 additions and 0 deletions

View File

@ -0,0 +1,38 @@
//
// Whirling.cpp
// Whirling
//
// Created by Bob Polis at 2021-09-05
// Copyright (c) 2021 SwiftCoder. All rights reserved.
//
#include "Whirling.hpp"
#include <libscscreensaver.hpp>
class Whirling : public ScreensaverPlugin {
public:
Whirling() = default;
~Whirling() = default;
int fps() const override;
void update() override;
void render() override;
};
ScreensaverPlugin* create_instance() {
return new Whirling;
}
int Whirling::fps() const {
return 30;
}
void Whirling::update() {
// adjust state for next render
}
void Whirling::render() {
// render one frame based on current state
}