gelatin-sdl2-0.1.0.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.

Obtaining the backends

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.

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.

Re-exports

module Gelatin.GL