1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00
planetblupi/src/platform.h

20 lines
311 B
C
Raw Normal View History

2018-07-18 18:29:55 +02:00
#pragma once
2018-07-22 15:11:35 +02:00
#include <functional>
2018-07-18 18:29:55 +02:00
class Platform
{
private:
static std::function<void(const SDL_Event &)> handleEvent;
private:
static void timer (void *);
public:
enum Type { JS, SDL };
static Platform::Type getType ();
2018-07-18 18:29:55 +02:00
static void run (std::function<void(const SDL_Event &)> handleEvent);
};