-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGraphics_Console.h
41 lines (36 loc) · 1.24 KB
/
Graphics_Console.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//===================================================================================
// NOM: Graphics_Console.h
//===================================================================================
// DESCRIPCIO: Declaració de les variables i funcions que controlen la part grafica
// de les aplicacions tipus consola
//===================================================================================
#include <windows.h>
//===================================================================================
// Definicio de colors
#define BLACK 0
#define BLUE 1
#define GREEN 2
#define CYAN 3
#define RED 4
#define MAGENTA 5
#define BROWN 6
#define LIGHTGREY 7
#define DARKGREY 8
#define LIGHTBLUE 9
#define LIGHTGREEN 10
#define LIGHTCYAN 11
#define LIGHTRED 12
#define LIGHTMAGENTA 13
#define YELLOW 14
#define WHITE 15
#define BLINK 128
//===================================================================================
// Dimensions del finestra de la consola
#define DX 41
#define DY 31
//===================================================================================
// Declaració de funcions
void GotoXY(int,int,HANDLE);
void TextColor(int,int,HANDLE);
void SetScreenSize(HANDLE);
void InitScreen(HANDLE);