Browse Source

Text: no need to have base class constructor public and documented.

pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
aa566e9da8
  1. 17
      src/Text/Renderer.h

17
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<Mesh, Rectangle> 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;

Loading…
Cancel
Save