From aa566e9da83a024632cd5a49474e42ffe8d9de4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 4 Nov 2013 17:55:12 +0100 Subject: [PATCH] Text: no need to have base class constructor public and documented. --- src/Text/Renderer.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) 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;