summaryrefslogtreecommitdiff
path: root/src/stage.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-05-24 00:39:52 -0700
committerVito Caputo <vcaputo@pengaru.com>2018-05-24 01:06:12 -0700
commitb021a32ac44f5d92fb8dc210d08510d1850a260c (patch)
treed122f9fdf2291f8c5a8d4534012fd6ed31eb090a /src/stage.h
parent04a6feb4ddf22dac13b8f9e5478b817ea4527d37 (diff)
libstage: add stage_[sg]et_position()
Starting to get an inkling of a need for a more hierarchical structure for the stage. Something which allows arbitrary grouping of nodes which can then be moved around and even scaled as one at the parent.
Diffstat (limited to 'src/stage.h')
-rw-r--r--src/stage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stage.h b/src/stage.h
index d29a763..e16f917 100644
--- a/src/stage.h
+++ b/src/stage.h
@@ -36,6 +36,8 @@ stage_t * stage_free(stage_t *stage);
void stage_fit(float aspect_ratio, int width, int height, int *res_width, int *res_height);
void stage_set_alpha(stage_t *stage, float alpha);
void stage_get_alpha(stage_t *stage, float *res_alpha);
+void stage_set_position(stage_t *stage, v2f_t *position);
+void stage_get_position(stage_t *stage, v2f_t *res_position);
void stage_render(const stage_t *stage);
stage_node_t * stage_node_new(stage_t *stage, int layer, const char *name, void *object, stage_render_func_t render_func, stage_free_func_t free_func);
© All Rights Reserved