aboutsummaryrefslogtreecommitdiffstats
path: root/graphics.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2003-03-24 16:31:19 +0000
committerH. Peter Anvin <hpa@zytor.com>2003-03-24 16:31:19 +0000
commit1128ad360b5cccb1b82de092505e5ca1c4dbed8d (patch)
tree89c7ebe649b47fa1b901872d646a2183df023c8d /graphics.h
downloadgrv-1128ad360b5cccb1b82de092505e5ca1c4dbed8d.tar.gz
grv-1128ad360b5cccb1b82de092505e5ca1c4dbed8d.tar.xz
grv-1128ad360b5cccb1b82de092505e5ca1c4dbed8d.zip
Port of "gršvning" to C/SDL, started 2003-03-22
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/graphics.h b/graphics.h
new file mode 100644
index 0000000..fb9511c
--- /dev/null
+++ b/graphics.h
@@ -0,0 +1,32 @@
+/*
+ * graphics.h
+ *
+ * Graphics function emulation
+ * This pretty much attempts to emulate the QuickBasic-style text screen
+ * in 25x40 or 25x80 mode with no scrolling...
+ */
+
+#ifndef GRAPHICS_H
+#define GRAPHICS_H 1
+
+#include <stdlib.h>
+#include <inttypes.h>
+
+int screen_init(void);
+void color(int fg, int bg);
+void locate(int r, int c);
+int screen(int r, int c);
+int screen1(int r, int c);
+void print(const char *str);
+void lprint(int r, int c, const char *str);
+void gprintf(const char *fmt, ...);
+void lprintf(int r, int c, const char *fmt, ...);
+void width(int wid);
+void cls(void);
+void update_blink(void);
+
+struct saved_screen;
+struct saved_screen *save_screen(void);
+void restore_screen(struct saved_screen *);
+
+#endif /* GRAPHICS_H */