Skip to content

Commit

Permalink
[add] api functions for retrieving the node bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
begla committed Jun 9, 2024
1 parent 5e5942e commit 54289aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions iolite_c_api/iolite_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -2874,6 +2874,13 @@ struct io_component_node_i // NOLINT
// Retrieves the previous sibling node (if any).
io_ref_t (*get_prev_sibling)(io_ref_t node);

// Gets the bounds of the node in local space (as an axis-aligned bounding
// box).
io_aabb_t (*get_local_bounds)(io_ref_t node);
// Gets the bounds of the node in world space (as an axis-aligned bounding
// box).
io_aabb_t (*get_world_bounds)(io_ref_t node);

// Sets the hidden state of the node.
void (*set_hidden)(io_ref_t node, io_bool_t hidden);
// Returns true if the node is hidden, false otherwise.
Expand Down

0 comments on commit 54289aa

Please sign in to comment.