summaryrefslogtreecommitdiff
path: root/src/surface.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-10-29 13:23:44 +0100
committerPhil Jones <philj56@gmail.com>2021-10-29 13:23:44 +0100
commitc691b8e48c572e2d5f1c7c16c8f42babd7d706d5 (patch)
treeb3d601919670c41e0409477e22371ab77e092aa2 /src/surface.h
parent3bf156c9d9598acbee38c49d17cdb7d77e79d520 (diff)
Basic text entry working.
Diffstat (limited to 'src/surface.h')
-rw-r--r--src/surface.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/surface.h b/src/surface.h
new file mode 100644
index 0000000..2b2910a
--- /dev/null
+++ b/src/surface.h
@@ -0,0 +1,21 @@
+#ifndef SURFACE_H
+#define SURFACE_H
+
+#include <stdbool.h>
+#include <stdint.h>
+#include "egl.h"
+#include "gl.h"
+
+struct surface {
+ struct egl egl;
+ struct gl gl;
+ struct wl_surface *wl_surface;
+ int32_t width;
+ int32_t height;
+ bool redraw;
+};
+
+void surface_initialise(struct surface *surface, struct wl_display *wl_display, struct image *texture);
+void surface_draw(struct surface *surface, struct color *color, struct image *texture);
+
+#endif /* SURFACE_H */