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