File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ A small example executable is included with the library. It loads a given font
2727and uses it to display text in various ways. You can find it in the ` example `
2828directory.
2929
30+ Note: this example works, but is written in sdl1-style, so instead
31+ you should change surfaces to textures and follow the usual sdl2 API.
32+
3033``` bash
3134cd sdl2-ttf
3235cabal configure -fexample
Original file line number Diff line number Diff line change 1+ -- Note: this code uses the old, inherited from sdl1, surface-based
2+ -- API for displaying on screen. It can't be used together with the new
3+ -- renderer API. You should instead copy the surface to a texture ASAP
4+ -- and then display the texture using the renderer in the usual
5+ -- sdl2 way.
16{-# LANGUAGE LambdaCase #-}
27{-# LANGUAGE OverloadedStrings #-}
38
You can’t perform that action at this time.
0 commit comments