A class-based wrapper around the DirectX API