Safe Haskell | None |
---|---|
Language | Haskell2010 |
Re-export the operations of the chosen raw frontend (determined at compile time with cabal flags).
Synopsis
- startup :: ClientOptions -> IO RawFrontend
- frontendName :: String
Documentation
startup :: ClientOptions -> IO RawFrontend Source #
Set up and start the main loop providing input and output.
Apparently some SDL backends are not thread-safe (https://wiki.libsdl.org/FAQDevelopment; "this should only be run in the thread that initialized the video subsystem, and for extra safety, you should consider only doing those things on the main thread in any case") so we stick to a single bound thread (but not to the main thread; enough is enough and at least in the case of OpenGL all bound threads are supposed to be as good as the main thread).
frontendName :: String Source #
The name of the frontend.