Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides an entry point for your gelatin apps that run on sdl2.
- data SDL2Backends = SDL2Backends {}
- initSDL2Window :: MonadIO m => WindowConfig -> String -> m Window
- startupSDL2BackendsWithWindow :: (MonadIO m, MonadError String m) => Window -> m SDL2Backends
- startupSDL2BackendsWithConfig :: (MonadIO m, MonadError String m) => WindowConfig -> String -> m SDL2Backends
- startupSDL2Backends :: (MonadIO m, MonadError String m) => Int -> Int -> String -> Bool -> m SDL2Backends
- module Gelatin.GL
Backend definitions
data SDL2Backends Source #
A record containing both V2V4 and V2V2 backends.
Getting a window and the backends
:: MonadIO m | |
=> WindowConfig | The window configuration |
-> String | The window title. |
-> m Window |
Creates and returns an SDL2 window.
startupSDL2BackendsWithWindow Source #
:: (MonadIO m, MonadError String m) | |
=> Window | The |
-> m SDL2Backends |
Start up and return the sdl2 backends using the given window.
Obtaining the backends without a window
startupSDL2BackendsWithConfig Source #
:: (MonadIO m, MonadError String m) | |
=> WindowConfig | The configuration used to set up the window. |
-> String | The window title |
-> m SDL2Backends |
Start up and return the sdl2 backends according to the given
sdl2 WindowConfig
.
:: (MonadIO m, MonadError String m) | |
=> Int | Window width |
-> Int | Window height |
-> String | Window title |
-> Bool | Whether or not to request a high DPI window.
Passing |
-> m SDL2Backends |
Start up and return the default backends. Uses OpenGL 3.3 with debugging turned on.
Re-exports
module Gelatin.GL