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
- setCol :: Col -> IO ()
- setColAlpha :: Col -> Float -> IO ()
- renderQuad :: Quad -> IO ()
- renderOuterBoxQuad :: AbsBox -> IO ()
- renderInnerBoxQuad :: AbsBox -> IO ()
- renderGapBoxQuad :: AbsBox -> IO ()
- renderBoundingBoxQuad :: AbsBox -> IO ()
- renderQuadOutline :: Quad -> IO ()
- renderOuterBoxOutline :: AbsBox -> IO ()
- renderInnerBoxOutline :: AbsBox -> IO ()
- renderGapBoxOutline :: AbsBox -> IO ()
- renderBoundingBoxOutline :: AbsBox -> IO ()
- renderLine :: Col -> Double -> Pos -> Pos -> IO ()
- renderMFG :: Pos -> Col -> MultiFontGlyph -> IO ()
- renderCharAt :: Pos -> FontTexture -> Char -> IO Double
- renderCharAt_ :: Pos -> FontTexture -> Char -> IO ()
- renderChar' :: Pos -> FontTexture -> BufLoc -> IO ()
Documentation
Render boxes
renderQuad :: Quad -> IO () Source #
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 box outlines
renderQuadOutline :: Quad -> IO () Source #
renderOuterBoxOutline :: AbsBox -> IO () Source #
Renders the outer box as a quad
renderInnerBoxOutline :: AbsBox -> IO () Source #
Renders the inner box as a quad
renderGapBoxOutline :: AbsBox -> IO () Source #
Renders the gap quad (useful for debugging)
renderBoundingBoxOutline :: AbsBox -> IO () Source #
Renders the bounding box quad (useful for debugging)
Render lines
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 #