Extra2D/include/platform/sdl2.h

60 lines
1.1 KiB
C
Raw Normal View History

#pragma once
#include <SDL.h>
#include <SDL_syswm.h>
namespace extra2d {
/**
* @brief SDL2
*
* SDL2
*/
class Sdl2 {
public:
/**
* @brief SDL2
* @return true
*/
static bool initCore();
/**
* @brief
* @return true
*/
static bool initVideo();
/**
* @brief
* @return true
*/
static bool initAudio();
/**
* @brief
* @return true
*/
static bool initGamepad();
/**
* @brief
* @return true
*/
static bool initAll();
/**
* @brief SDL2
*/
static void shutdown();
/**
* @brief
*/
static bool isInited() { return inited_; }
private:
static bool inited_;
};
} // namespace extra2d