diff --git a/src/Text/Renderer.h b/src/Text/Renderer.h index 439b42bd2..c4e355538 100644 --- a/src/Text/Renderer.h +++ b/src/Text/Renderer.h @@ -110,24 +110,15 @@ class MAGNUM_TEXT_EXPORT AbstractRenderer { */ void render(const std::string& text); - protected: - /** - * @brief Constructor - * @param font Font - * @param cache Glyph cache - * @param size Font size - * @param alignment Text alignment - */ - explicit AbstractRenderer(AbstractFont& font, const GlyphCache& cache, Float size, Alignment alignment = Alignment::LineLeft); - AbstractRenderer(AbstractFont&, GlyphCache&&, Float, Alignment alignment = Alignment::LineLeft) = delete; /**< @overload */ - - ~AbstractRenderer(); - #ifndef DOXYGEN_GENERATING_OUTPUT protected: #else private: #endif + explicit MAGNUM_LOCAL AbstractRenderer(AbstractFont& font, const GlyphCache& cache, Float size, Alignment alignment); + + ~AbstractRenderer(); + static std::tuple MAGNUM_LOCAL render(AbstractFont& font, const GlyphCache& cache, Float size, const std::string& text, Buffer& vertexBuffer, Buffer& indexBuffer, Buffer::Usage usage, Alignment alignment); Mesh _mesh;