C++ rendering engine for DirectX9