summaryrefslogtreecommitdiff
path: root/src/client/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/window.cpp')
-rw-r--r--src/client/window.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client/window.cpp b/src/client/window.cpp
new file mode 100644
index 0000000..e718e63
--- /dev/null
+++ b/src/client/window.cpp
@@ -0,0 +1,16 @@
+struct Window {
+ char *view;
+ int width;
+ int height;
+
+ void init() {
+ view = new char[width * height];
+ for (int i = 0; i < width * height; i++) {
+ view[i] = 0;
+ }
+ }
+
+ char pos(size_t x, size_t y) {
+ return view[x + y * width];
+ }
+};