YSTest: YBlend.cpp 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

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

- 文件列表
- 文件成员

YBlend.cpp
浏览该文件的文档.
1 /*
2 © 2015 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 "YSLib/Service/YModules.h"
29 #include YFM_YSLib_Service_YBlend
30
31 using namespace ystdex;
32
33 namespace YSLib
34 {
35
36 namespace Drawing
37 {
38
39 void
40 BlendRect(const Graphics& g, const Rect& r, Color c)
41 {
42 YAssert(bool(g), "Invalid graphics context found.");
43 BlendRectRaw(g.GetBufferPtr(), Pixel(c), g.GetSize(), r);
44 }
45
46
47 void
48 CompositeRect(const Graphics& g, const Rect& r, Color c)
49 {
50 YAssert(bool(g), "Invalid graphics context found.");
51 CompositeRectRaw(g.GetBufferPtr(), Pixel(c), g.GetSize(), r);
52 }
53
54 } // namespace Drawing;
55
56 } // namespace YSLib;
57
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
platform::Color
颜色。
Definition: Video.h:451
YSLib::Drawing::BlendRectRaw
void BlendRectRaw(_tOut dst, _tPixel c, _tParams &&...args)
使用指定像素 Alpha 混合指定的标准矩形区域。
Definition: YBlend.h:121
YAssert
#define YAssert(_expr, _msg)
Definition: cassert.h:105
CHRLib::c
c
Definition: CharacterProcessing.h:81
YModules.h
YSLib::Drawing::CompositeRect
YF_API void CompositeRect(const Graphics &, const Rect &, Color)
Definition: YBlend.cpp:48
YSLib::Drawing::BlendRect
YF_API void BlendRect(const Graphics &, const Rect &, Color)
Definition: YBlend.cpp:40
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:540
ystdex
特性测试宏。
Definition: ydef.h:796
YSLib::Drawing::CompositeRectRaw
void CompositeRectRaw(_tOut dst, _tPixel c, _tParams &&...args)
使用指定像素 Alpha 组合指定的标准矩形区域。
Definition: YBlend.h:139
YSLib::Drawing::r
The boundary is out of the const Graphics const Rect const Point const Point Color c const Rect const Rect & r
Definition: YDraw.h:174
Drawing
YSLib::Drawing::GGraphics
二维图形接口上下文模板。
Definition: YGraphics.h:62
YSLib::Drawing::g
The boundary is out of the const Graphics & g
Definition: YDraw.h:161