ark::gui::HeadlessMagnumRenderer

Defined in header “ark/gui/magnum/headless_renderer.hh”.


This class provides an interface that wraps the magnum renderer in a worker thread so the user does not have to worry about OpenGl threading issues. It ensures that all the functions required to be called from the same thread are.

Methods

  • HeadlessMagnumRenderer(HeadlessRendererConfig config)

  • ~HeadlessMagnumRenderer()

  • void set_camera(std::unique_ptr< AbstractCamera > camera)

  • void look_at(const CameraLookAt & camera_target)

  • void add_layer(std::shared_ptr< const RendererLayer > layer)

  • bool initialized()

  • image::Image render_frame(const AbstractTransformProvider *const transform_provider)