Currently, the signatures of the draw functions in Renderer class look like this:
// draw the scene graph with the camera specified by user
void draw(RenderCamera& camera, scene::SceneGraph& sceneGraph);
// draw the scene graph with the visual sensor provided by user
void draw(sensor::VisualSensor& visualSensor, scene::SceneGraph& sceneGraph);
Is the 2nd argument sceneGraph really necessary?
The camera or the visualSensor is a feature attached to the scene node. And from the scene node, we can retrieve the scene graph.
Currently, the signatures of the
draw
functions inRenderer
class look like this:Is the 2nd argument
sceneGraph
really necessary? Thecamera
or thevisualSensor
is a feature attached to the scene node. And from the scene node, we can retrieve the scene graph.🚀 Feature
Motivation
Pitch
Alternatives
Additional context