My Project
 All Classes Files Functions Variables Enumerations Pages
Public Member Functions | List of all members
RGBA< T > Class Template Reference

#include <rgb.h>

Public Member Functions

 RGBA ()
 Null constructor.
 
 RGBA (const RGBA &c)
 Copy constructor.
 
 RGBA (T vr, T vg, T vb, T va)
 Initialise from separate components.
 
void operator+= (const RGBA &v)
 Colour addition.
 
void operator-= (const RGBA &v)
 Colour subtraction.
 

Public Attributes

r
 Colour component.
 
g
 
b
 
a
 

Detailed Description

template<typename T>
class RGBA< T >

Direct access to class members is permitted. The uchar version is intended as a minimal class for efficient storage of colours. (However, padding means there is a wasted byte if we just want RGB so we might as well have an alpha channel).


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