.draw on Spatial and on Renderer? any diference?

rootNode.draw(DisplaySystem.getDisplaySystem().getRenderer());



DisplaySystem.getDisplaySystem().getRenderer().draw(rootNode);



what's the diference betwen those two?



as i noticed, using the first on GameStates won't work. the second works tough


From LWJGLRenderer:


    public void draw(final Spatial s) {
        if (camera != null)
            camera.apply();

        if (s != null) {
            s.onDraw(this);
        }
    }



As you can see the renderer also applies the camera.

However you probably don't want to call either of these directly as  "RenderPass" (and it sub classes) do a bunch of additional stuff.