YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::Drawing::Shaders::GPixelCompositor< 0, 1 > 模板结构体 参考

#include <YPixel.h>

类 YSLib::Drawing::Shaders::GPixelCompositor< 0, 1 > 继承关系图:
YSLib::Drawing::Shaders::GPixelCompositor< 0, 1 > 的协作图:

静态 Public 成员函数

template<typename _tDst , typename _tSrc , typename _tSrcAlpha >
static yconstfn _tDst CompositeComponentOver (_tDst d, _tSrc s, _tSrcAlpha sa)
 Alpha 组合非 Alpha 分量。 更多...
 
template<typename _tDst , typename _tSrc , typename _tSrcAlpha , typename _tAlpha >
static yconstfn _tDst CompositeComponentOver (_tDst d, _tSrc s, _tSrcAlpha sa, _tAlpha)
 

额外继承的成员函数

- 静态 Private 成员函数 继承自 YSLib::Drawing::Shaders::GPixelCompositor< 2, 0 >
static yconstfn
ystdex::conditional_t
<(_vDstAlphaBits
< _vSrcAlphaBits), _tSrcAlpha,
_tDstAlpha > 
CompositeAlphaOver (_tDstAlpha da, _tSrcAlpha sa)
 Alpha 组合 Alpha 分量。 更多...
 
static yconstfn _tDst CompositeComponentOver (_tDst d, _tSrc s, _tSrcAlpha sa, _tAlpha a)
 Alpha 组合非 Alpha 分量。 更多...
 

详细描述

template<>
struct YSLib::Drawing::Shaders::GPixelCompositor< 0, 1 >

注解
不透明目标和 1 位源 Alpha 。

在文件 YPixel.h361 行定义.

成员函数说明

template<typename _tDst , typename _tSrc , typename _tSrcAlpha >
static yconstfn _tDst YSLib::Drawing::Shaders::GPixelCompositor< 0, 1 >::CompositeComponentOver ( _tDst  d,
_tSrc  s,
_tSrcAlpha  sa 
)
inlinestatic

Alpha 组合非 Alpha 分量。

da = 1 => a := 1 => c := sa * (s - d) / a + d = sa * (s - d) + d = sa != 0 ? s : d

在文件 YPixel.h377 行定义.

template<typename _tDst , typename _tSrc , typename _tSrcAlpha , typename _tAlpha >
static yconstfn _tDst YSLib::Drawing::Shaders::GPixelCompositor< 0, 1 >::CompositeComponentOver ( _tDst  d,
_tSrc  s,
_tSrcAlpha  sa,
_tAlpha   
)
inlinestatic

该结构体的文档由以下文件生成: