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

#include <YPixel.h>

静态 Public 成员函数

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

详细描述

template<size_t _vDstAlphaBits>
struct YSLib::Drawing::Shaders::GPixelCompositor< _vDstAlphaBits, 0 >

注解
不透明源。

在文件 YPixel.h194 行定义.

成员函数说明

template<size_t _vDstAlphaBits>
template<typename _tDstAlpha >
static yconstfn _tDstAlpha YSLib::Drawing::Shaders::GPixelCompositor< _vDstAlphaBits, 0 >::CompositeAlphaOver ( _tDstAlpha  )
inlinestatic

Alpha 组合 Alpha 分量。

sa = 1 => a := sa + da * (1 - sa) = 1

在文件 YPixel.h206 行定义.

template<size_t _vDstAlphaBits>
template<typename _tDstAlpha , typename _tSrcAlpha >
static yconstfn _tDstAlpha YSLib::Drawing::Shaders::GPixelCompositor< _vDstAlphaBits, 0 >::CompositeAlphaOver ( _tDstAlpha  da,
_tSrcAlpha   
)
inlinestatic
template<size_t _vDstAlphaBits>
template<typename _tSrc >
static yconstfn _tSrc YSLib::Drawing::Shaders::GPixelCompositor< _vDstAlphaBits, 0 >::CompositeComponentOver ( _tSrc  s)
inlinestatic

Alpha 组合非 Alpha 分量。

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

自从
build 442

在文件 YPixel.h237 行定义.

参考 platform_ex::Windows::s.

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

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