I understand reasoning behind CGapiApplication::CreateSurfaces but I wonder if it would not be better to change CGapiSurface to be a ref counted class.
Basically ,internally , this class would be aware of every object of its kind ever created in the current application and consequently would be able to apply orientation changes automatically.
If there is a compelling reason for excluding certain surfaces from the automated management, it would be easy to manage that by introducing an internal flag or something like that .
Perhaps I am missing something here .. but I think that would be a better solution over all.
Walter
Basically ,internally , this class would be aware of every object of its kind ever created in the current application and consequently would be able to apply orientation changes automatically.
If there is a compelling reason for excluding certain surfaces from the automated management, it would be easy to manage that by introducing an internal flag or something like that .
Perhaps I am missing something here .. but I think that would be a better solution over all.
Walter