Scene::AddCamera but no Scene:GetCamera(int index)

Jun 26, 2013 at 6:45 AM
Edited Jun 26, 2013 at 6:45 AM
I miss getter methods in the scene class.

My reason for needing such methods is that is need for a SceneRenderTask all cameras from the m_pScene object.

The Scene holds all cameras, so i dont want to make a new container for holding the cameras twice.
Jul 2, 2013 at 2:47 AM
Sorry for the delayed response - I was on vacation for a week without an internet connection! For sure I can add some GetCamera method to the Scene class, but I wanted to double check what you are doing with it. The current usage of SceneRenderTask is normally intended to be added to a Camera, rather than to collect a bunch of Camera in the SceneRenderTask. Can you describe in more detail what these will be used for? This is honestly not a situation that I foresaw, which is why the methods aren't in there already...

But in either case, I can surely add them to the Scene class.
Jul 29, 2013 at 2:03 AM
This has been added in the most recent commit!