YSTest: DSVideo.h 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

DSVideo.h
浏览该文件的文档.
1 /*
2 © 2009-2016 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
29 #ifndef YCL_DS_INC_DSVideo_h_
30 #define YCL_DS_INC_DSVideo_h_ 1
31
32 #include "YCLib/YModules.h"
33 #include YFM_YCLib_Video
34
35 namespace platform_ex
36 {
37
38 #if YCL_DS
39
42 YF_API void
43 ResetVideo();
44
45
47
48 YF_API YB_ATTR_returns_nonnull platform::Pixel*
50 InitScrUp(int&);
51
53 YF_API YB_ATTR_returns_nonnull platform::Pixel*
54 InitScrDown(int&);
56
62 YF_API YB_NONNULL(1, 2) void
63 ScreenSynchronize(platform::Pixel*, const platform::Pixel*) ynothrow;
64
75 YF_API void
76 DSConsoleInit(bool use_customed,
77 platform::Color fc = platform::ColorSpace::White,
78 platform::Color bc = platform::ColorSpace::Black) ynothrow;
79 #endif
80
81
82 #if YCL_DS || YF_Hosted
83
88 class YF_API DSVideoState
89 {
90 #if YF_Hosted
91 private:
92 bool LCD_main_on_top = true;
93 #endif
94
95 public:
96 bool
97 IsLCDMainOnTop() const;
98
99 void
100 SetLCDMainOnTop(bool);
101
102 void
103 SwapLCD();
104 };
105 #endif
106
107 } // namespace platform_ex;
108
109 #endif
110
YSLib::UI::fc
fc
Definition: Console.h:93
platform
默认平台命名空间。
Definition: Container.h:47
Color
Pixel Color
Definition: CharRenderer.cpp:58
YB_ATTR_returns_nonnull
#define YB_ATTR_returns_nonnull
指示返回非空属性。
Definition: ydef.h:413
ynothrow
#define ynothrow
YSLib 无异常抛出保证：若支持 noexcept 关键字， 指定特定的 noexcept 异常规范。
Definition: ydef.h:766
YF_API
#define YF_API
Definition: Platform.h:56
YModules.h
platform_ex::YB_NONNULL
YB_NONNULL(1) PDefH(u16string
构造适合表示路径的 char16_t 字符串。
ColorSpace
YSLib::Consoles::Black
Definition: YConsole.h:53
platform_ex
平台扩展命名空间。
Definition: Android.h:45
YSLib::Consoles::White
Definition: YConsole.h:68