ark::gui::AbstractHudDrawable

Defined in header “ark/gui/abstract_drawable.hh”.


Methods

  • ~AbstractHudDrawable()

  • const std::string & get_frame_id()

  • HudAnchor get_anchor()
    Return the anchor for this drawable.

  • Eigen::Vector2f size()
    Return the size of the element in pixels.

  • void set_position_wrt_anchor(const Eigen::Vector2f position)
    Set the position of the HUD element relative to its anchor.

  • Eigen::Vector2f get_position_wrt_anchor()

  • Eigen::Matrix4f get_transformation_matrix(const ViewportParameters & viewport)
    Get the transformation matrix to use for this drawable.

  • void draw(const ViewportParameters & viewport, const Eigen::Matrix4f & projection)