   Designing a rendering system.
  Hey.Im about to start a new project and I am wondering how I should structure my rendering code. In my older projects I have had a Render class that is implemented as a singleton. That class has had all the information about how to render and what to render. Basically it worked like this:// Loadint modelID = render.load3DMesh("path");// Renderrender.clearBuffers();render.setRenderCamera(m_currentCamera);render.render(modelID);The system is very easy to implement and it works fine, but i have found it to not be that good when wanting to do shaders and other interesting rendering effects. How are you handling your rendering code? Any good articles?Thanks.   
  You might want to consider seperating your loading code from the actual rendering code. Maybe introduce some kind of resource manager that is responsable for loading the assets (in your case the 3d mesh) and let the render class be responsable for all (or some of) the render work. You also might want to look at some open source projects such as Ogre and Irrlicht for some inspiration.   