From 54289aaecb4c3b675b44bd5a3dd7072971c1cb15 Mon Sep 17 00:00:00 2001 From: Benjamin Wrensch Date: Sun, 9 Jun 2024 14:07:22 +0200 Subject: [PATCH] [add] api functions for retrieving the node bounds --- iolite_c_api/iolite_api.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/iolite_c_api/iolite_api.h b/iolite_c_api/iolite_api.h index 8dd2f1e..d3b902f 100644 --- a/iolite_c_api/iolite_api.h +++ b/iolite_c_api/iolite_api.h @@ -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.