313 asc_transform_apply(d, r, node->rotation); |
313 asc_transform_apply(d, r, node->rotation); |
314 asc_transform_copy(node->rotation, d); |
314 asc_transform_copy(node->rotation, d); |
315 asc_scene_node_update_transform(node); |
315 asc_scene_node_update_transform(node); |
316 } |
316 } |
317 |
317 |
|
318 static inline void asc_scene_node_hide(AscSceneNode *node) { |
|
319 asc_set_flag(node->flags, ASC_SCENE_NODE_HIDDEN); |
|
320 } |
|
321 |
|
322 static inline void asc_scene_node_show(AscSceneNode *node) { |
|
323 asc_clear_flag(node->flags, ASC_SCENE_NODE_HIDDEN); |
|
324 } |
|
325 |
|
326 static inline void asc_scene_node_toggle_visibility(AscSceneNode *node) { |
|
327 asc_toggle_flag(node->flags, ASC_SCENE_NODE_HIDDEN); |
|
328 } |
|
329 |
|
330 static inline bool asc_scene_node_is_hidden(AscSceneNode *node) { |
|
331 return asc_test_flag(node->flags, ASC_SCENE_NODE_HIDDEN); |
|
332 } |
|
333 |
318 #endif |
334 #endif |