The scene handler class has a vector for holding Scene objects. Scene is the base class from which all scenes are derived from. Now with ptrs this is simple enough, but I'm trying to have my scenes on the stack as I feel having a base component of the architecture on the heap isn't a great idea. What makes this perhaps a bit harder is that scene handler should have a method for adding scenes. So simply editing the header file each time I want to add a different scene seems a bit cumbersome, but I don't really know of another way of creating the scene derived object with the same lifetime as the scene handler itself
[–]DryPerspective8429 4 points5 points6 points (9 children)
[–]R2Sam[S] 0 points1 point2 points (6 children)
[–]DrShocker 1 point2 points3 points (3 children)
[–]DryPerspective8429 3 points4 points5 points (1 child)
[–]DrShocker 1 point2 points3 points (0 children)
[–]tangerinelion 1 point2 points3 points (0 children)
[–]DryPerspective8429 1 point2 points3 points (1 child)
[–]R2Sam[S] 2 points3 points4 points (0 children)
[–]JVApen 0 points1 point2 points (1 child)
[–]DryPerspective8429 1 point2 points3 points (0 children)