MythTV  master
graphic.h
Go to the documentation of this file.
1 #ifndef GRAPHIC_H
2 #define GRAPHIC_H
3 
4 using Uint = unsigned int;
5 
6 struct Color
7 {
8  unsigned short r, v, b;
9 };
10 
11 extern const Color BLACK;
12 extern const Color WHITE;
13 extern const Color RED;
14 extern const Color BLUE;
15 extern const Color GREEN;
16 extern const Color YELLOW;
17 extern const Color ORANGE;
18 extern const Color VIOLET;
19 
20 //inline void setPixelRGB (Uint * buffer, Uint x, Uint y, Color c);
21 //inline void getPixelRGB (Uint * buffer, Uint x, Uint y, Color * c);
22 
23 #endif /* GRAPHIC_H */
BLACK
const Color BLACK
Definition: graphic.cpp:3
VIOLET
const Color VIOLET
Definition: graphic.cpp:10
RED
const Color RED
Definition: graphic.cpp:5
Color::v
unsigned short v
Definition: graphic.h:8
GREEN
const Color GREEN
Definition: graphic.cpp:6
BLUE
const Color BLUE
Definition: graphic.cpp:7
ORANGE
const Color ORANGE
Definition: graphic.cpp:9
Uint
unsigned int Uint
Definition: graphic.h:4
Color::r
unsigned short r
Definition: graphic.h:8
Color::b
unsigned short b
Definition: graphic.h:8
YELLOW
const Color YELLOW
Definition: graphic.cpp:8
WHITE
const Color WHITE
Definition: graphic.cpp:4
Color
Definition: graphic.h:7