Flexible 3D rendering framework in C++