StuBS
SpritePixel< RGB, true, BITS > Struct Template Reference

Colored pixel with transparency. More...

#include <graphics/primitives.h>

Public Member Functions

 SpritePixel (unsigned red, unsigned green, unsigned blue, unsigned alpha)
 
 SpritePixel ()
 

Public Attributes

SpritePixelComponent< BITS > red
 
SpritePixelComponent< BITS > green
 
SpritePixelComponent< BITS > blue
 
SpritePixelComponent< BITS > alpha
 

Detailed Description

template<unsigned BITS>
struct SpritePixel< RGB, true, BITS >

Colored pixel with transparency.

Template Parameters
BITSSize of mask

Constructor & Destructor Documentation

◆ SpritePixel() [1/2]

template<unsigned BITS>
SpritePixel< RGB, true, BITS >::SpritePixel ( unsigned  red,
unsigned  green,
unsigned  blue,
unsigned  alpha 
)
inline

◆ SpritePixel() [2/2]

template<unsigned BITS>
SpritePixel< RGB, true, BITS >::SpritePixel ( )
inline

Member Data Documentation

◆ red

template<unsigned BITS>
SpritePixelComponent<BITS> SpritePixel< RGB, true, BITS >::red

◆ green

template<unsigned BITS>
SpritePixelComponent<BITS> SpritePixel< RGB, true, BITS >::green

◆ blue

template<unsigned BITS>
SpritePixelComponent<BITS> SpritePixel< RGB, true, BITS >::blue

◆ alpha

template<unsigned BITS>
SpritePixelComponent<BITS> SpritePixel< RGB, true, BITS >::alpha

The documentation for this struct was generated from the following file: