Magnum/Text/Renderer.h file

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

Namespaces

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

Classes

class Magnum::Text::RendererCore new in Git master
Text renderer core.
class Magnum::Text::Renderer new in Git master
Text renderer.
class Magnum::Text::AbstractRenderer deprecated in Git master
OpenGL text renderer.

Enums

enum class RendererCoreFlag: UnsignedByte { GlyphClusters = 1 << 0 } new in Git master
Text renderer core flag.
enum class RendererFlag: UnsignedByte { GlyphPositionsClusters = Int(RendererCoreFlag::GlyphClusters) } new in Git master
Text renderer flag.

Typedefs

using RendererCoreFlags = Containers::EnumSet<RendererCoreFlag> new in Git master
Text renderer core flags.
using RendererFlags = Containers::EnumSet<RendererFlag> new in Git master
Text renderer flags.
using Renderer2D = AbstractRenderer deprecated in Git master
Two-dimensional text renderer.
using Renderer3D = AbstractRenderer deprecated in Git master
Three-dimensional text renderer.

Functions

auto operator<<(Debug& output, RendererCoreFlag value) -> Debug& new in Git master
Debug output operator.
auto operator<<(Debug& output, RendererCoreFlags value) -> Debug& new in Git master
Debug output operator.
auto operator<<(Debug& output, RendererFlag value) -> Debug& new in Git master
Debug output operator.
auto operator<<(Debug& output, RendererFlags value) -> Debug& new in Git master
Debug output operator.
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 glyphQuadBounds(const AbstractGlyphCache& cache, Float scale, const Containers::StridedArrayView1D<const Vector2>& glyphPositions, const Containers::StridedArrayView1D<const UnsignedInt>& glyphIds) -> Range2D new in Git master
Calculate glyph quad bounds from cache-global glyph IDs.
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.