@@ -66,7 +66,12 @@ void screenshot(vkb::rendering::RenderContextC &render_context, const std::strin
6666 * @param parent_node The parent node for the line, defaults to root
6767 * @return The newly created light component
6868 */
69- sg::Light &add_light (sg::Scene &scene, sg::LightType type, const glm::vec3 &position, const glm::quat &rotation = {}, const sg::LightProperties &props = {}, sg::Node *parent_node = nullptr );
69+ sg::Light &add_light (sg::Scene &scene,
70+ sg::LightType type,
71+ const glm::vec3 &position,
72+ const glm::quat &rotation = {},
73+ const sg::LightProperties &props = {},
74+ vkb::scene_graph::NodeC *parent_node = nullptr );
7075
7176/* *
7277 * @brief Adds a point light to the scene with the specified parameters
@@ -76,7 +81,8 @@ sg::Light &add_light(sg::Scene &scene, sg::LightType type, const glm::vec3 &posi
7681 * @param parent_node The parent node for the line, defaults to root
7782 * @return The newly created light component
7883 */
79- sg::Light &add_point_light (sg::Scene &scene, const glm::vec3 &position, const sg::LightProperties &props = {}, sg::Node *parent_node = nullptr );
84+ sg::Light &
85+ add_point_light (sg::Scene &scene, const glm::vec3 &position, const sg::LightProperties &props = {}, vkb::scene_graph::NodeC *parent_node = nullptr );
8086
8187/* *
8288 * @brief Adds a directional light to the scene with the specified parameters
@@ -86,7 +92,10 @@ sg::Light &add_point_light(sg::Scene &scene, const glm::vec3 &position, const sg
8692 * @param parent_node The parent node for the line, defaults to root
8793 * @return The newly created light component
8894 */
89- sg::Light &add_directional_light (sg::Scene &scene, const glm::quat &rotation, const sg::LightProperties &props = {}, sg::Node *parent_node = nullptr );
95+ sg::Light &add_directional_light (sg::Scene &scene,
96+ const glm::quat &rotation,
97+ const sg::LightProperties &props = {},
98+ vkb::scene_graph::NodeC *parent_node = nullptr );
9099
91100/* *
92101 * @brief Adds a spot light to the scene with the specified parameters
@@ -97,7 +106,11 @@ sg::Light &add_directional_light(sg::Scene &scene, const glm::quat &rotation, co
97106 * @param parent_node The parent node for the line, defaults to root
98107 * @return The newly created light component
99108 */
100- sg::Light &add_spot_light (sg::Scene &scene, const glm::vec3 &position, const glm::quat &rotation, const sg::LightProperties &props = {}, sg::Node *parent_node = nullptr );
109+ sg::Light &add_spot_light (sg::Scene &scene,
110+ const glm::vec3 &position,
111+ const glm::quat &rotation,
112+ const sg::LightProperties &props = {},
113+ vkb::scene_graph::NodeC *parent_node = nullptr );
101114
102115/* *
103116 * @brief Add free camera script to a node with a camera object.
@@ -107,6 +120,6 @@ sg::Light &add_spot_light(sg::Scene &scene, const glm::vec3 &position, const glm
107120 * @param extent The initial resolution of the camera
108121 * @return Node where the script was attached as component
109122 */
110- sg::Node &add_free_camera (sg::Scene &scene, const std::string &node_name, VkExtent2D extent);
123+ vkb::scene_graph::NodeC &add_free_camera (sg::Scene &scene, const std::string &node_name, VkExtent2D extent);
111124
112125} // namespace vkb
0 commit comments