ScummVM API documentation
Pixel formats

Description

Structures for managing pixel formats.

Classes

struct  Graphics::ColorComponent< depth >
 
struct  Graphics::ColorComponent< 0 >
 
struct  Graphics::ColorComponent< 1 >
 
struct  Graphics::ColorComponent< 2 >
 
struct  Graphics::ColorComponent< 3 >
 
struct  Graphics::ColorComponent< 4 >
 
struct  Graphics::ColorComponent< 5 >
 
struct  Graphics::ColorComponent< 6 >
 
struct  Graphics::ColorComponent< 7 >
 
struct  Graphics::ColorComponent< 8 >
 
struct  Graphics::PixelFormat
 

Functions

template<int bitFormat>
PixelFormat Graphics::createPixelFormat ()
 
template<>
uint32 Graphics::PixelFormat::RGBToColorT (uint8 r, uint8 g, uint8 b) const
 
template<>
uint32 Graphics::PixelFormat::ARGBToColorT (uint8 a, uint8 r, uint8 g, uint8 b) const
 
template<>
void Graphics::PixelFormat::colorToRGBT (uint32 color, uint8 &r, uint8 &g, uint8 &b) const
 
template<>
void Graphics::PixelFormat::colorToARGBT (uint32 color, uint8 &a, uint8 &r, uint8 &g, uint8 &b) const
 

Function Documentation

◆ createPixelFormat()

template<int bitFormat>
PixelFormat Graphics::createPixelFormat ( )

Convert a 'bitFormat' as defined by one of the ColorMasks into a PixelFormat.