diff --git a/src/DebugTools/ObjectRenderer.h b/src/DebugTools/ObjectRenderer.h index b94f42025..9eb75f99a 100644 --- a/src/DebugTools/ObjectRenderer.h +++ b/src/DebugTools/ObjectRenderer.h @@ -53,7 +53,8 @@ class ObjectRendererOptions { /** @brief Object renderer -Visualizes object position, rotation and scale using colored axes. +Visualizes object position, rotation and scale using colored axes. See +@ref debug-tools-renderers for more information. @section ObjectRenderer-usage Basic usage diff --git a/src/DebugTools/ShapeRenderer.h b/src/DebugTools/ShapeRenderer.h index 21adf2c59..04b32c69c 100644 --- a/src/DebugTools/ShapeRenderer.h +++ b/src/DebugTools/ShapeRenderer.h @@ -62,25 +62,12 @@ class ShapeRendererOptions { /** @brief Shape renderer -Visualizes collision shape. +Visualizes collision shape. See @ref debug-tools-renderers for more information. @section ShapeRenderer-usage Basic usage -ResourceManager must be instanced for the whole lifetime of debug -renderers. You can specify options via ShapeRendererOptions struct - add it to -the manager and then create debug renderer with the same options key. This way -you can easily share the same options with more renderers. If no options for -given key exist, default is used. - Example code: @code -// Instance the manager at first -DebugTools::ResourceManager manager; - -// Group of drawables, preferrably dedicated for debug renderers, so you can -// easily enable or disable debug draw -SceneGraph::DrawableGroup2D debugDrawables; - // Create some options DebugTools::ResourceManager::instance()->set("red", (new DebugTools::ShapeRendererOptions())->setColor({1.0f, 0.0f, 0.0f}),