dl
dl::RGBA 命名空间参考

RGBA专用 更多...

函数

constexpr uint32_t Create (const Color &col)
 颜色转为uint32_t颜色
 
constexpr uint32_t Create (uint32_t r, uint32_t g, uint32_t b, uint32_t a)
 组合uint32_t颜色
 
constexpr uint32_t GetA (uint32_t dw_col)
 uint32_t颜色获取A通道
 
uint32_t ToABGR (uint32_t dw_col)
 转为ABGR颜色
 

详细描述

RGBA专用

函数说明

◆ Create() [1/2]

uint32_t dl::RGBA::Create ( const Color & col)
constexpr

颜色转为uint32_t颜色

在文件 dl_color.h244 行定义.

◆ Create() [2/2]

uint32_t dl::RGBA::Create ( uint32_t r,
uint32_t g,
uint32_t b,
uint32_t a )
constexpr

组合uint32_t颜色

在文件 dl_color.h255 行定义.

◆ GetA()

uint32_t dl::RGBA::GetA ( uint32_t dw_col)
constexpr

uint32_t颜色获取A通道

在文件 dl_color.h263 行定义.

◆ ToABGR()

uint32_t dl::RGBA::ToABGR ( uint32_t dw_col)
inline

转为ABGR颜色

在文件 dl_color.h271 行定义.