From b263b3e4b295c42a36970435eb7df5373bce6c89 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 12 Jul 2018 16:33:37 -0700 Subject: libstage: add {position,aabb}_map concept to stage I added a way to set these mappings per-node, but not per-stage. This adds setters for the stage, and new nodes are created with the current per-stage setting. The nodes may still have their mapping mode changed independent of the stage and one another, but this gives a means of easily setting a global mapping mode for a given stage. --- src/stage.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/stage.h') diff --git a/src/stage.h b/src/stage.h index 6e0a93c..7299f4a 100644 --- a/src/stage.h +++ b/src/stage.h @@ -45,6 +45,8 @@ 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_set_aabb_map(stage_t *stage, stage_map_t map); +void stage_set_position_map(stage_t *stage, stage_map_t map); 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); -- cgit v1.2.3