staging some future refactoring, .h -> hpp, fix for rendering w/ audio
This commit is contained in:
1 parent
77f6e65b15
commit
2d27b7e8fb
76 files changed
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
namespace anm2ed
|
||||
{
|
||||
class Playback
|
||||
{
|
||||
public:
|
||||
float time{};
|
||||
bool isPlaying{};
|
||||
bool isFinished{};
|
||||
|
||||
void toggle();
|
||||
void timing_reset();
|
||||
void clamp(int);
|
||||
void tick(int, int, bool, float);
|
||||
void decrement(int);
|
||||
void increment(int);
|
||||
|
||||
private:
|
||||
float tickAccumulator{};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user