summaryrefslogtreecommitdiff
path: root/src/stage.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-06-09 16:33:13 -0700
committerVito Caputo <vcaputo@pengaru.com>2018-06-09 16:33:13 -0700
commit6aa5347f343927b68d4ab445724a0dec272432ce (patch)
tree9f204ac427c511f290121b349b0c769cf77a786c /src/stage.h
parent00ac7e921426edc7e27e4ba679edc1aba6c15250 (diff)
libstage: simplify set active and locked node api
Just pass in the boolean setting rather than having different functions.
Diffstat (limited to 'src/stage.h')
-rw-r--r--src/stage.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stage.h b/src/stage.h
index a51656d..f5d38e6 100644
--- a/src/stage.h
+++ b/src/stage.h
@@ -54,10 +54,8 @@ void stage_node_set_position(const stage_t *stage, stage_node_t *node, v2f_t *po
void stage_node_get_position(const stage_t *stage, const stage_node_t *node, v2f_t *res_position);
void stage_node_set_origin(const stage_t *stage, stage_node_t *node, v2f_t *origin);
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);
-void stage_node_set_inactive(const stage_t *stage, stage_node_t *node);
-void stage_node_set_locked(const stage_t *stage, stage_node_t *node);
-void stage_node_set_unlocked(const stage_t *stage, stage_node_t *node);
+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_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);
© All Rights Reserved