Safe Haskell | None |
---|---|
Language | Haskell2010 |
Low-level rendering.
You shouldn't normally need to use this directly, though boxes can be useful for highlighting.
Synopsis
- renderOuterBoxQuad :: AbsBox -> IO ()
- renderInnerBoxQuad :: AbsBox -> IO ()
- renderBoxGap :: AbsBox -> IO ()
- renderMFG :: Pos -> Col -> MultiFontGlyph -> IO ()
- renderCharAt :: Pos -> FontTexture -> Char -> IO Double
- renderCharAt_ :: Pos -> FontTexture -> Char -> IO ()
- renderChar' :: Pos -> FontTexture -> BufLoc -> IO ()
Render boxes
renderOuterBoxQuad :: AbsBox -> IO () Source #
Renders the outer box as a quad
renderInnerBoxQuad :: AbsBox -> IO () Source #
Renders the inner box as a quad
renderBoxGap :: AbsBox -> IO () Source #
Renders the gap of a box (useful for debugging)
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.
renderCharAt_ :: Pos -> FontTexture -> Char -> IO () Source #
renderChar' :: Pos -> FontTexture -> BufLoc -> IO () Source #