From 41729222431449a81535b28ad27ce2620cb5819b Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 17 Nov 2023 13:30:38 +0100 Subject: Move all the state required for rendering in a struct --- state.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 state.h (limited to 'state.h') diff --git a/state.h b/state.h new file mode 100644 index 0000000..5c5528d --- /dev/null +++ b/state.h @@ -0,0 +1,18 @@ +#ifndef COMET_STATE_H +#define COMET_STATE_H + +#include "window.h" +#include "draw.h" + +typedef struct { + Window *win; + Drawable *draw; +} State; + +State *state_create(Window *win, Drawable *draw); + +void state_destroy(State *state); + +#endif + +// vim: ts=4 sw=4 et -- cgit v1.2.3