2021-04-28 12:43:51 +08:00
|
|
|
#ifndef BACKENDS_SDL2_H
|
|
|
|
#define BACKENDS_SDL2_H
|
|
|
|
|
2021-05-14 10:15:42 +08:00
|
|
|
#include "base.h"
|
2021-04-28 12:43:51 +08:00
|
|
|
|
|
|
|
struct SDL2BackendFactory final : public BackendFactory {
|
|
|
|
public:
|
|
|
|
bool init() override;
|
|
|
|
|
|
|
|
bool querySupport(BackendType type) override;
|
|
|
|
|
|
|
|
std::string probe(BackendType type) override;
|
|
|
|
|
2021-05-14 10:15:42 +08:00
|
|
|
BackendPtr createBackend(DeviceBase *device, BackendType type) override;
|
2021-04-28 12:43:51 +08:00
|
|
|
|
|
|
|
static BackendFactory &getFactory();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BACKENDS_SDL2_H */
|