diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-17 13:30:38 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-17 13:30:38 +0100 |
| commit | 41729222431449a81535b28ad27ce2620cb5819b (patch) | |
| tree | 0cbbffb343bc1b942ea5527cd52f0cc53143b122 /state.h | |
| parent | a88d3a4c61f482ffeafba89910b896a92830f95f (diff) | |
Move all the state required for rendering in a struct
Diffstat (limited to 'state.h')
| -rw-r--r-- | state.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |
