@@ -474,6 +474,14 @@ RGL_API rgl_status_t rgl_mesh_destroy(rgl_mesh_t mesh);
474
474
*/
475
475
RGL_API rgl_status_t rgl_mesh_update_vertices (rgl_mesh_t mesh, const rgl_vec3f* vertices, int32_t vertex_count);
476
476
477
+ /* *
478
+ * Assigns value true to out_alive if the given mesh is known and has not been destroyed,
479
+ * assigns value false otherwise.
480
+ * @param mesh Mesh to check if alive
481
+ * @param out_alive Boolean set to indicate if alive
482
+ */
483
+ RGL_API rgl_status_t rgl_mesh_is_alive (rgl_mesh_t mesh, bool * out_alive);
484
+
477
485
/* ******************************* ENTITY ********************************/
478
486
479
487
/* *
@@ -510,10 +518,18 @@ RGL_API rgl_status_t rgl_entity_set_id(rgl_entity_t entity, int32_t id);
510
518
/* *
511
519
* Assign intensity texture to the given Entity. The assumption is that the Entity can hold only one intensity texture.
512
520
* @param entity Entity to modify.
513
- * @apram texture Texture to assign.
521
+ * @param texture Texture to assign.
514
522
*/
515
523
RGL_API rgl_status_t rgl_entity_set_intensity_texture (rgl_entity_t entity, rgl_texture_t texture);
516
524
525
+ /* *
526
+ * Assigns value true to out_alive if the given entity is known and has not been destroyed,
527
+ * assigns value false otherwise.
528
+ * @param entity Entity to check if alive
529
+ * @param out_alive Boolean set to indicate if alive
530
+ */
531
+ RGL_API rgl_status_t rgl_entity_is_alive (rgl_entity_t entity, bool * out_alive);
532
+
517
533
/* ****************************** TEXTURE *******************************/
518
534
519
535
/* *
@@ -529,10 +545,18 @@ RGL_API rgl_status_t rgl_texture_create(rgl_texture_t* out_texture, const void*
529
545
/* *
530
546
* Informs that the given texture will be no longer used.
531
547
* The texture will be destroyed after all referring Entities are destroyed.
532
- * @param mesh Texture to be marked as no longer needed
548
+ * @param texture Texture to be marked as no longer needed
533
549
*/
534
550
RGL_API rgl_status_t rgl_texture_destroy (rgl_texture_t texture);
535
551
552
+ /* *
553
+ * Assigns value true to out_alive if the given texture is known and has not been destroyed,
554
+ * assigns value false otherwise.
555
+ * @param texture Texture to check if alive
556
+ * @param out_alive Boolean set to indicate if alive
557
+ */
558
+ RGL_API rgl_status_t rgl_texture_is_alive (rgl_texture_t texture, bool * out_alive);
559
+
536
560
/* ******************************* SCENE ********************************/
537
561
538
562
/* *
@@ -851,6 +875,14 @@ RGL_API rgl_status_t rgl_node_gaussian_noise_angular_hitpoint(rgl_node_t* node,
851
875
RGL_API rgl_status_t rgl_node_gaussian_noise_distance (rgl_node_t * node, float mean, float st_dev_base,
852
876
float st_dev_rise_per_meter);
853
877
878
+ /* *
879
+ * Assigns value true to out_alive if the given node is known and has not been destroyed,
880
+ * assigns value false otherwise.
881
+ * @param node Node to check if alive
882
+ * @param out_alive Boolean set to indicate if alive
883
+ */
884
+ RGL_API rgl_status_t rgl_node_is_alive (rgl_node_t node, bool * out_alive);
885
+
854
886
/* ******************************* GRAPH ********************************/
855
887
856
888
/* *
0 commit comments