summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorMikhail Burakov <mburakov@mailbox.org>2023-03-24 07:47:29 +0100
committerMikhail Burakov <mburakov@mailbox.org>2023-03-24 07:47:29 +0100
commitc26b6ef574fe2fdab1d1cd8cd4bce8fb1645e2f7 (patch)
tree6896754bcf3ed8da5eff65097a4eb3cdf38149ad /window.h
parent844143e0c6cc1efa90bd27c9aa0cade7f7dd7930 (diff)
Precreate window buffers on surfaces allocation
Diffstat (limited to 'window.h')
-rw-r--r--window.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/window.h b/window.h
index 7ac3dbf..80562f3 100644
--- a/window.h
+++ b/window.h
@@ -19,6 +19,7 @@
#define RECEIVER_WINDOW_H_
#include <stdbool.h>
+#include <stddef.h>
struct Window;
struct Frame;
@@ -26,7 +27,9 @@ struct Frame;
struct Window* WindowCreate(void);
int WindowGetEventsFd(const struct Window* window);
bool WindowProcessEvents(const struct Window* window);
-bool WindowRenderFrame(struct Window* window, const struct Frame* frame);
+bool WindowAssignFrames(struct Window* window, size_t nframes,
+ const struct Frame* frames);
+bool WindowShowFrame(struct Window* window, size_t index);
void WindowDestroy(struct Window** window);
#endif // RECEIVER_WINDOW_H_