-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConsoleGL.h
56 lines (45 loc) · 970 Bytes
/
ConsoleGL.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// ConsoleGL
//
// Licensed public domain
#ifndef CONSOLE_GL_H
#define CONSOLE_GL_H
/**
* Opens a window
*/
const char* CGLmain(const char* _windowTitle, int _columns, int _rows, void (*_callback)(void));
/**
* Sets the default color attribute used.
* bits 0-3 = FG Color
* bits 4-6 = BG Color
* bit 7 = Blink
*/
void CGLsetAttrib(int _attrib);
/**
* Sets the attribute at the specified location
*/
void CGLsetAttribXY(int _attrib, int _col, int _row);
/**
* Moves the cursor to the specified location
*/
void CGLgotoXY(int _col, int _row);
/**
* Print an unformatted string
*/
void CGLprint(const char * _string);
/**
* Print a formatted string
*/
void CGLprintf(const char * _format, ...);
/**
* Prints a single char to the screen
*/
void CGLputc(char _char);
/**
* Prints a single char to the screen at col, row
*/
void CGLputcXY(char _char, int _col, int _row);
/**
* Closes the window and cleans up
*/
void CGLshutdown();
#endif