YSTest: Video.cpp 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

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

- 文件列表
- 文件成员

Video.cpp
浏览该文件的文档.
1 /*
2 © 2011-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
28 #include "YCLib/YModules.h"
29 #include YFM_YCLib_Video
30 #include YFM_YCLib_NativeAPI
31 #include YFM_DS_YCLib_DSVideo // for platform::ResetVideo;
32
33 namespace platform
34 {
35
37 static_assert(sizeof(Pixel) == sizeof(Pixel::Traits::integer),
38 "Wrong size of pixel type found.");
39 static_assert(yalignof(Pixel) == yalignof(Pixel::Traits::integer),
40 "Wrong alignment of pixel type found.");
41
42 bool
43 InitVideo()
44 {
45 #if YCL_DS
46 platform_ex::ResetVideo();
47 ::lcdMainOnTop();
48 #endif
49 return true;
50 }
51
52 } // namespace platform;
53
yalignof
#define yalignof(_type)
指定特定类型的对齐。
Definition: ydef.h:660
platform
默认平台命名空间。
Definition: Container.h:47
YModules.h
platform::InitVideo
YF_API bool InitVideo()
初始化视频输出。
Definition: Video.cpp:43