summaryrefslogtreecommitdiff
path: root/src/stage.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-06-12 13:26:31 -0700
committerVito Caputo <vcaputo@pengaru.com>2019-06-12 13:26:31 -0700
commitefda9aa3f0cee82cc3e2968326cf0df804d7e6d6 (patch)
treea01dc79046e93cf95bd7ecb2dfcf290b41be6e45 /src/stage.h
parent15fa5d5714ce286323f25468284be0b28136a3c8 (diff)
libstage: add rudimentary dirty state
This adds a dirty bit to every stage_t, but only maintains the bit at the root. This means rendering is assumed to occur at the root, as that's the only place the dirty state will be correctly managed.
Diffstat (limited to 'src/stage.h')
-rw-r--r--src/stage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stage.h b/src/stage.h
index c5d0173..a2a2543 100644
--- a/src/stage.h
+++ b/src/stage.h
@@ -29,7 +29,8 @@ typedef stage_t * (stage_lookup_func_t)(const stage_t *stage, void *object, void
stage_t * stage_new(stage_t *parent, int layer, const char *name, void *object, stage_render_func_t *render_func, stage_free_func_t *free_func, stage_lookup_func_t *lookup_func);
void stage_replace(stage_t *stage, const char *name, void *object, stage_render_func_t *render_func, stage_free_func_t *free_func, stage_lookup_func_t *lookup_func);
stage_t * stage_free(stage_t *stage);
-void stage_render(const stage_t *stage, void *render_ctxt);
+int stage_render(stage_t *stage, void *render_ctxt);
+void stage_dirty(stage_t *stage);
void stage_clear(stage_t *stage);
void stage_set_object(stage_t *stage, void *object);
void * stage_get_object(const stage_t *stage);
© All Rights Reserved