diff options
author | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-24 07:47:29 +0100 |
---|---|---|
committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-24 07:47:29 +0100 |
commit | c26b6ef574fe2fdab1d1cd8cd4bce8fb1645e2f7 (patch) | |
tree | 6896754bcf3ed8da5eff65097a4eb3cdf38149ad /window.h | |
parent | 844143e0c6cc1efa90bd27c9aa0cade7f7dd7930 (diff) |
Precreate window buffers on surfaces allocation
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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_ |