The main rendering loop of the glarea has been significantly rewritten. I have updated all the rendering plugins that now mostly work.
Main Changes:
- Rendering plugins are now responsible of the rendering of the whole MeshDocument and not only of a single MeshModel. This means also that multipass rendering techniques are more streamlined. The only requirement for a rendering plugin is that it should leave the z-buffer in a coherent state.
- The scaling/centering of the scene is now devoted entirely to the trackball (for a future better camera management)
- The trackball is post-drawn (now it is nicely antialiased against the mesh)
- The snapshot mechanism has been improved (now works for ortho projections too)