From 5caa894a3612b8bc090271f5c26daa556237dd97 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 9 Jun 2018 16:53:12 -0700 Subject: libstage: add stage_node_set_static() Static nodes are unaffected by stage movement, or if later there's a hierarchy in the stage, this would probably escape all ancestral influence. The anticipated use case is overlays like consoles, HUDs, and scores etc. Things which don't move with the dynamic game field. --- src/stage.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stage.h') diff --git a/src/stage.h b/src/stage.h index f5d38e6..f157653 100644 --- a/src/stage.h +++ b/src/stage.h @@ -56,6 +56,7 @@ void stage_node_set_origin(const stage_t *stage, stage_node_t *node, v2f_t *orig void stage_node_get_origin(const stage_t *stage, const stage_node_t *node, v2f_t *res_origin); void stage_node_set_active(const stage_t *stage, stage_node_t *node, int active); void stage_node_set_locked(const stage_t *stage, stage_node_t *node, int locked); +void stage_node_set_static(const stage_t *stage, stage_node_t *node, int stationary); void stage_node_set_layer(stage_t *stage, stage_node_t *node, int layer); void stage_node_set_angle(const stage_t *stage, stage_node_t *node, double angle); void stage_node_get_angle(const stage_t *stage, stage_node_t *node, double *res_angle); -- cgit v1.2.3