Souldn't Renderer be turned into an abstract class, with the old renderer and this new one implementing / extending it ?
This would have several benefits:
- Code sharing
- Futureproofness (Renderer switching ?)
- Removal of the g_shaders global / reintegration of setupQuadEBO