2020-11-16 11:21:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// template for modes
|
|
|
|
template <class TState, class TEvents> class AppTemplateMode {
|
|
|
|
public:
|
|
|
|
const char* name;
|
|
|
|
virtual void event(TEvents* event, TState* state) = 0;
|
2020-12-14 10:50:32 +00:00
|
|
|
virtual void render(Canvas* canvas, TState* state) = 0;
|
2020-11-16 11:21:58 +00:00
|
|
|
virtual void acquire() = 0;
|
|
|
|
virtual void release() = 0;
|
|
|
|
};
|