28 #ifndef INC_Helper_DSMain_h_
29 #define INC_Helper_DSMain_h_ 1
32 #include YFM_Helper_GUIApplication
33 #include YFM_YCLib_Video
38 #if YCL_DS || YF_Hosted
40 # define SCREEN_WIDTH 256
42 # ifndef SCREEN_HEIGHT
43 # define SCREEN_HEIGHT 192
56 const SDst MainScreenWidth(SCREEN_WIDTH), MainScreenHeight(SCREEN_HEIGHT);
72 private platform_ex::DSVideoState
79 array<unique_ptr<Devices::DSScreen>, 2> scrs;
86 unique_ptr<Host::WindowThread> p_wnd_thrd;
100 ~DSApplication()
override;
103 using DSVideoState::IsLCDMainOnTop;
163 using namespace platform_ex;
166 TestFramework(
size_t);
171 # error "Only DS and hosted platform supported."
#define DefPred(_q, _n,...)
std::uint16_t SDst
屏幕坐标距离。
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
void ShowFatalError(const char *s)