Magnum/Text/Renderer.h file

Class Magnum::Text::AbstractRenderer, Magnum::Text::Renderer, typedef Magnum::Text::Renderer2D, Magnum::Text::Renderer3D, function Magnum::Text::renderLineGlyphPositionsInto(), Magnum::Text::renderGlyphQuadsInto(), Magnum::Text::alignRenderedLine(), Magnum::Text::alignRenderedBlock(), Magnum::Text::renderGlyphQuadIndicesInto()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Text
Text rendering.

Classes

class Magnum::Text::AbstractRenderer
Base for text renderers.
template<UnsignedInt dimensions>
class Magnum::Text::Renderer
Text renderer.

Typedefs

using Renderer2D = Renderer<2>
Two-dimensional text renderer.
using Renderer3D = Renderer<3>
Three-dimensional text renderer.

Functions

auto renderLineGlyphPositionsInto(const AbstractFont& font, Float size, LayoutDirection direction, const Containers::StridedArrayView1D<const Vector2>& glyphOffsets, const Containers::StridedArrayView1D<const Vector2>& glyphAdvances, Vector2& cursor, const Containers::StridedArrayView1D<Vector2>& glyphPositions) -> Range2D new in Git master
Render glyph positions for a (part of a) single line.
auto renderGlyphQuadsInto(const AbstractFont& font, Float size, const AbstractGlyphCache& cache, const Containers::StridedArrayView1D<const Vector2>& glyphPositions, const Containers::StridedArrayView1D<const UnsignedInt>& fontGlyphIds, const Containers::StridedArrayView1D<Vector2>& vertexPositions, const Containers::StridedArrayView1D<Vector3>& vertexTextureCoordinates) -> Range2D new in Git master
Render glyph quads for a (part of a) single line from font-specific glyph IDs.
auto renderGlyphQuadsInto(const AbstractFont& font, Float size, const AbstractGlyphCache& cache, const Containers::StridedArrayView1D<const Vector2>& glyphPositions, const Containers::StridedArrayView1D<const UnsignedInt>& fontGlyphIds, const Containers::StridedArrayView1D<Vector2>& vertexPositions, const Containers::StridedArrayView1D<Vector2>& vertexTextureCoordinates) -> Range2D new in Git master
Render glyph quads for a (part of a) single line from font-specific glyph IDs and a 2D glyph cache.
auto renderGlyphQuadsInto(const AbstractGlyphCache& cache, Float scale, const Containers::StridedArrayView1D<const Vector2>& glyphPositions, const Containers::StridedArrayView1D<const UnsignedInt>& glyphIds, const Containers::StridedArrayView1D<Vector2>& vertexPositions, const Containers::StridedArrayView1D<Vector3>& vertexTextureCoordinates) -> Range2D new in Git master
Render glyph quads for a (part of a) single line from cache-global glyph IDs.
auto renderGlyphQuadsInto(const AbstractGlyphCache& cache, Float scale, const Containers::StridedArrayView1D<const Vector2>& glyphPositions, const Containers::StridedArrayView1D<const UnsignedInt>& glyphIds, const Containers::StridedArrayView1D<Vector2>& vertexPositions, const Containers::StridedArrayView1D<Vector2>& vertexTextureCoordinates) -> Range2D new in Git master
Render glyph quads for a (part of a) single line from cache-global glyph IDs and a 2D glyph cache.
auto alignRenderedLine(const Range2D& lineRectangle, LayoutDirection direction, Alignment alignment, const Containers::StridedArrayView1D<Vector2>& positions) -> Range2D new in Git master
Align a rendered line.
auto alignRenderedBlock(const Range2D& blockRectangle, LayoutDirection direction, Alignment alignment, const Containers::StridedArrayView1D<Vector2>& positions) -> Range2D new in Git master
Align a rendered block.
void renderGlyphQuadIndicesInto(UnsignedInt glyphOffset, const Containers::StridedArrayView1D<UnsignedInt>& indices) new in Git master
Render 32-bit glyph quad indices.
void renderGlyphQuadIndicesInto(UnsignedInt glyphOffset, const Containers::StridedArrayView1D<UnsignedShort>& indices) new in Git master
Render 16-bit glyph quad indices.
void renderGlyphQuadIndicesInto(UnsignedInt glyphOffset, const Containers::StridedArrayView1D<UnsignedByte>& indices) new in Git master
Render 8-bit glyph quad indices.
auto glyphRangeForBytes(const Containers::StridedArrayView1D<const UnsignedInt>& clusters, UnsignedInt begin, UnsignedInt end) -> Containers::Pair<UnsignedInt, UnsignedInt> new in Git master
Find a glyph range corresponding to given byte range in the input text.