Original Post
The 582nd re-write of my engine is way overdue, and I''ve had the sense to pick up pen and paper before open MSVC. Problem is, I''m having some trouble abstracting all the functions I need into a sensible organised manner, without too much complicated stuff holding them together (I''m trying to avoid stuff like multiple inheritance, singletons, templates etc, for the time being). At this point, the main classes I need are:
Application
Renderer
Logging System
Mesh
Object (and derived sub-objects)
Camera (subclass of Object)
All the above classes are sub-classes of Application, which would give me a nice entry point. However, in previous attempts, I''ve tripped over my own code by being unable to access the Renderer class (which houses all the OGL calls) from the Mesh class. This would only work by passing the pointer to the Renderer instance into the Mesh object. Messy. Can anybody point me in the right direction for a better way to do things? Could I use an intermediate class in some way?