MythTV  master
graphic.cpp
Go to the documentation of this file.
1 #include "graphic.h"
2 
3 const Color BLACK = { 0, 0, 0 };
4 const Color WHITE = { 0xff, 0xff, 0xff };
5 const Color RED = { 0xff, 0, 0 };
6 const Color GREEN = { 0, 0xff, 0 };
7 const Color BLUE = { 0, 0, 0xff };
8 const Color YELLOW = { 0xff, 0xff, 0x33 };
9 const Color ORANGE = { 0xff, 0xcc, 0x00 };
10 const Color VIOLET = { 0x55, 0x00, 0xff };
11 
12 unsigned int SIZE;
13 unsigned int HEIGHT;
14 unsigned int WIDTH;
15 
16 int *rand_tab = nullptr;
17 //unsigned short int rand_pos = 0;
18 /*
19 inline unsigned int RAND(void)
20 {
21  rand_pos++;
22  return rand_tab[rand_pos];
23 }
24 
25 inline unsigned int iRAND(int i)
26 {
27  rand_pos++;
28  return (rand_tab[rand_pos])%i;
29 }
30 */
VIOLET
const Color VIOLET
Definition: graphic.cpp:10
HEIGHT
unsigned int HEIGHT
Definition: graphic.cpp:13
RED
const Color RED
Definition: graphic.cpp:5
graphic.h
WIDTH
unsigned int WIDTH
Definition: graphic.cpp:14
rand_tab
int * rand_tab
Definition: graphic.cpp:16
GREEN
const Color GREEN
Definition: graphic.cpp:6
BLACK
const Color BLACK
Definition: graphic.cpp:3
ORANGE
const Color ORANGE
Definition: graphic.cpp:9
SIZE
unsigned int SIZE
Definition: graphic.cpp:12
BLUE
const Color BLUE
Definition: graphic.cpp:7
WHITE
const Color WHITE
Definition: graphic.cpp:4
YELLOW
const Color YELLOW
Definition: graphic.cpp:8
Color
Definition: graphic.h:6