Converted 3d visualizer to SDL2.0