group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HybridRenderer.hpp File Reference

Routing layer between the legacy renderer and the new (in-progress) renderer. More...

#include "IRenderer.hpp"
#include "Renderer.hpp"
#include "renderer-new/Renderer.hpp"
Include dependency graph for HybridRenderer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HybridRenderer
 

Detailed Description

Routing layer between the legacy renderer and the new (in-progress) renderer.

Each IRenderer call dispatches to the new renderer if it reports supports(feature) == true, otherwise falls through to legacy.

This lets the graphics team replace functionality piece-by-piece: every time a method is implemented in NewRenderer, its entry in NewRenderer::supports() is flipped on and the hybrid starts routing that call to the new implementation without any changes at the call sites.