gelatin-sdl2-0.1.1.0: An SDL2 backend for the gelatin renderer.

Safe HaskellNone
LanguageHaskell2010

Gelatin.SDL2

Contents

Description

This module provides an entry point for your gelatin apps that run on sdl2.

Synopsis

Backend definitions

data SDL2Backends Source #

A record containing both V2V4 and V2V2 backends.

Getting a window and the backends

initSDL2Window Source #

Arguments

:: MonadIO m 
=> WindowConfig

The window configuration

-> String

The window title.

-> m Window 

Creates and returns an SDL2 window.

startupSDL2BackendsWithWindow Source #

Arguments

:: (MonadIO m, MonadError String m) 
=> Window

The Window to use render into.

-> m SDL2Backends 

Start up and return the sdl2 backends using the given window.

Obtaining the backends without a window

startupSDL2BackendsWithConfig Source #

Arguments

:: (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.

startupSDL2Backends Source #

Arguments

:: (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 True typically results in a framebuffer with 2x the window size.

-> m SDL2Backends 

Start up and return the default backends. Uses OpenGL 3.3 with debugging turned on.

Re-exports

module Gelatin.GL