#include <pixel.hpp>
Definition at line 40 of file pixel.hpp.
Public Types | |
| typedef unsigned char | component_type |
Public Member Functions | |
| pixel24 () | |
| Default constructor. | |
| pixel24 (component_type r, component_type g, component_type b) | |
| Constructor. | |
Public Attributes | |
| struct { | |
| component_type red | |
| Red component. | |
| component_type green | |
| Green component. | |
| component_type blue | |
| Blue component. | |
| } | components |
| typedef unsigned char claw::graphic::pixel24::component_type |
| claw::graphic::pixel24::pixel24 | ( | ) | [inline] |
| claw::graphic::pixel24::pixel24 | ( | component_type | r, | |
| component_type | g, | |||
| component_type | b | |||
| ) | [inline] |
Constructor.
| r | The value of the red field. | |
| g | The value of the green field. | |
| b | The value of the blue field. |
Definition at line 68 of file pixel.hpp.
References components.
00069 { 00070 components.red = r; 00071 components.green = g; 00072 components.blue = b; 00073 } // pixel24()
Red component.
Definition at line 48 of file pixel.hpp.
Referenced by claw::graphic::pixel32::operator=().
Green component.
Definition at line 51 of file pixel.hpp.
Referenced by claw::graphic::pixel32::operator=().
Blue component.
Definition at line 54 of file pixel.hpp.
Referenced by claw::graphic::pixel32::operator=().
| struct { ... } claw::graphic::pixel24::components |
Referenced by claw::graphic::pixel32::operator=(), and pixel24().
1.5.5