CVD::Rgb8 Struct Reference
[Image storage and manipulation]

#include <rgb8.h>

List of all members.


Detailed Description

A 32-bit colour. Deprecated The templated Rgba should be used instead (Rgba<byte> is exactly equivalent).

Definition at line 33 of file rgb8.h.


Public Member Functions

 Rgb8 ()
 Rgb8 (unsigned char r, unsigned char g, unsigned char b, unsigned char a=0)

Public Attributes

unsigned char red
unsigned char green
unsigned char blue
unsigned char dummy

Constructor & Destructor Documentation

CVD::Rgb8::Rgb8 (  )  [inline]

Default constructor. Sets all elements to zero.

Definition at line 41 of file rgb8.h.

CVD::Rgb8::Rgb8 ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a = 0 
) [inline]

Construct an Rgb8 as specified.

Parameters:
r The red component
g The green component
b The blue component
a The dummy byte (defaults to zero)

Definition at line 51 of file rgb8.h.


Member Data Documentation

unsigned char CVD::Rgb8::red

The red component.

Definition at line 35 of file rgb8.h.

Referenced by CVD::glColor3(), and CVD::glColor4().

unsigned char CVD::Rgb8::green

The green component.

Definition at line 36 of file rgb8.h.

Referenced by CVD::glColor3(), and CVD::glColor4().

unsigned char CVD::Rgb8::blue

The blue component.

Definition at line 37 of file rgb8.h.

Referenced by CVD::glColor3(), and CVD::glColor4().

unsigned char CVD::Rgb8::dummy

The 4th byte, usually either ignored or used to represent the alpha value.

Definition at line 38 of file rgb8.h.

Referenced by CVD::glColor4().


The documentation for this struct was generated from the following file:
Generated on Wed Feb 18 10:23:08 2009 for CVD by  doxygen 1.5.3