FastUIDraw
Public Member Functions | List of all members
fastuidraw::Painter::GlyphRendererChooser Class Referenceabstract

A GlyphRendererChooser provides an interface for choosing how to render glyphs depending on the current transformation matrix, Painter::transformation(). More...

#include <painter.hpp>

Public Member Functions

virtual GlyphRenderer choose_glyph_render (float logical_format_size, const float3x3 &transformation, vec2 viewport_size, float max_singular_value, float min_singular_value) const =0
 
virtual GlyphRenderer choose_glyph_render (float logical_format_size, const float3x3 &transformation, vec2 viewport_size) const =0
 

Detailed Description

A GlyphRendererChooser provides an interface for choosing how to render glyphs depending on the current transformation matrix, Painter::transformation().

Definition at line 131 of file painter.hpp.

Member Function Documentation

◆ choose_glyph_render() [1/2]

virtual GlyphRenderer fastuidraw::Painter::GlyphRendererChooser::choose_glyph_render ( float  logical_format_size,
const float3x3 transformation,
vec2  viewport_size,
float  max_singular_value,
float  min_singular_value 
) const
pure virtual

To be implemented by a derived class to choose what GlyphRender to use when the transformation matrix (see Painter::transformation()) does not have perspective.

Parameters
logical_format_sizethe format size at which the glyphs of a GlyphRun or GlyphSequence are formatted
transformationthe transformation matrix from logical (i.e. item) coordinates to normalized device coordinates, i.e. the value of Painter::transformation().
viewport_sizewidth and height of the
max_singular_valuethe largest singluar value the transformation matrix concacted with the viewport transformation
min_singular_valuethe smallest singluar value the transformation matrix concacted with the viewport transformation

◆ choose_glyph_render() [2/2]

virtual GlyphRenderer fastuidraw::Painter::GlyphRendererChooser::choose_glyph_render ( float  logical_format_size,
const float3x3 transformation,
vec2  viewport_size 
) const
pure virtual

To be implemented by a derived class to choose what GlyphRender to use when the transformation matrix (see Painter::transformation()) has perspective.

Parameters
logical_format_sizethe pixel size at which the glyphs of a GlyphRun or GlyphSequence are formatted
transformationthe transformation matrix from logical (i.e. item) coordinates to normalized device coordinates, i.e. the value of Painter::transformation().
viewport_sizewidth and height of the

The documentation for this class was generated from the following file: