YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ydevice.cpp
浏览该文件的文档.
1 /*
2  Copyright (C) by Franksoft 2009 - 2012.
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 "YSLib/Core/ydevice.h"
29 
31 
32 using namespace Drawing;
33 
34 YSL_BEGIN_NAMESPACE(Devices)
35 
37 Screen::GetCheckedBufferPtr() const ynothrow
38 {
39  YAssert(GetBufferPtr(), "Null pointer found.");
40 
41  return GetBufferPtr();
42 }
43 
44 void
45 Screen::Update(BitmapPtr buf) ynothrow
46 {
47  std::copy_n(buf, GetAreaOf(GetSize()), GetCheckedBufferPtr());
48 }
49 
50 YSL_END_NAMESPACE(Devices)
51 
52 YSL_END
53