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

#include <YPixel.h>

静态 Public 成员函数

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

详细描述

template<size_t _vSrcAlphaBits>
struct YSLib::Drawing::Shaders::GPixelCompositor< 1, _vSrcAlphaBits >

注解
1 位目标 Alpha 。

在文件 YPixel.h263 行定义.

成员函数说明

template<size_t _vSrcAlphaBits>
template<typename _tDstAlpha , typename _tSrcAlpha >
static yconstfn _tSrcAlpha YSLib::Drawing::Shaders::GPixelCompositor< 1, _vSrcAlphaBits >::CompositeAlphaOver ( _tDstAlpha  da,
_tSrcAlpha  sa 
)
inlinestatic

Alpha 组合 Alpha 分量。

a := sa + da * (1 - sa) = da != 0 ? 1 : sa

在文件 YPixel.h273 行定义.

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

Alpha 组合非 Alpha 分量。

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

在文件 YPixel.h293 行定义.

参考 YSLib::Drawing::Shaders::GPixelCompositor< _vDstAlphaBits, _vSrcAlphaBits >::CompositeComponentOver().

函数调用图:


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