#include <color_rgb.h>
|
unsigned char | c [3] |
|
struct { |
unsigned char r |
|
unsigned char g |
|
unsigned char b |
|
}; | |
|
Definition at line 34 of file color_rgb.h.
◆ COLOR_RGB() [1/3]
COLOR_RGB::COLOR_RGB |
( |
const SFVEC3F & |
aColor | ) |
|
Definition at line 33 of file color_rgb.cpp.
34{
35 r = (
unsigned int) glm::clamp( (
int) ( aColor.r * 255 ), 0, 255 );
36 g = (
unsigned int) glm::clamp( (
int) ( aColor.g * 255 ), 0, 255 );
37 b = (
unsigned int) glm::clamp( (
int) ( aColor.b * 255 ), 0, 255 );
38}
References b, g, and r.
◆ COLOR_RGB() [2/3]
◆ COLOR_RGB() [3/3]
COLOR_RGB::COLOR_RGB |
( |
unsigned char |
aR, |
|
|
unsigned char |
aG, |
|
|
unsigned char |
aB |
|
) |
| |
|
inline |
struct { ... } COLOR_RGB::@1 |
unsigned char COLOR_RGB::b |
unsigned char COLOR_RGB::c[3] |
unsigned char COLOR_RGB::g |
unsigned char COLOR_RGB::r |
The documentation for this union was generated from the following files: