diff options
author | peterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573> | 2005-07-21 02:34:44 +0000 |
---|---|---|
committer | peterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573> | 2005-07-21 02:34:44 +0000 |
commit | 673bdae75485d14f759af597c3c62b99601f9a43 (patch) | |
tree | 368103f29fe0ce5dcf98060d9b5faa04590085fb /trunk/source/libemx.h | |
parent | 7e900be770db24b0405fd2162491c405a425873e (diff) | |
download | crawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.tar.gz crawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.zip |
Initial revision
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'trunk/source/libemx.h')
-rw-r--r-- | trunk/source/libemx.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/trunk/source/libemx.h b/trunk/source/libemx.h new file mode 100644 index 0000000000..ac33612284 --- /dev/null +++ b/trunk/source/libemx.h @@ -0,0 +1,38 @@ +#ifndef LIBEMX_H +#define LIBEMX_H +#ifndef __LIBEMX_C__ + + +#include <stdlib.h> +#include <conio.h> + +#define itoa _itoa + + +#define _NORMALCURSOR 1 +#define _NOCURSOR 0 + + +void init_emx(); +void deinit_emx(); +void _setcursortype(int curstype); +void clrscr(); +void gotoxy(int x, int y); +void textcolor(int c); +void cprintf (const char *format, ...); + +void puttext(int x, int y, int lx, int ly, const char *buf); +void puttext(int x, int y, int lx, int ly, unsigned const char *buf); +void gettext(int x, int y, int lx, int ly, char *buf); +void gettext(int x, int y, int lx, int ly, unsigned char *buf); +void window(int x, int y, int lx, int ly); +int wherex(); +int wherey(); +void putch(char c); +int kbhit(); +void delay(int ms); +void textbackground(int c); + + +#endif // __LIBEMX_C__ +#endif |