minitypeset-opengl-0.2.0.1: Layout and render text with TrueType fonts using OpenGL

Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.MiniTypeset.Render

Contents

Description

Low-level rendering.

You shouldn't normally need to use this directly, though boxes can be useful for highlighting.

Synopsis

Documentation

setCol :: Col -> IO () Source #

Render boxes

renderOuterBoxQuad :: AbsBox -> IO () Source #

Renders the outer box as a quad

renderInnerBoxQuad :: AbsBox -> IO () Source #

Renders the inner box as a quad

renderGapBoxQuad :: AbsBox -> IO () Source #

Renders the gap quad (useful for debugging)

renderBoundingBoxQuad :: AbsBox -> IO () Source #

Renders the bounding box quad (useful for debugging)

Render lines

renderLine :: Col -> Double -> Pos -> Pos -> IO () Source #

Render characters

renderMFG :: Pos -> Col -> MultiFontGlyph -> IO () Source #

Renders a multifont glyph with the given color.

renderCharAt :: Pos -> FontTexture -> Char -> IO Double Source #

Renders a single character. Note: the position will be the position of the left end of the baseline of the character, not the top-left corner!

Returns the horizontal advancement.