A deferred renderer in C++