sdl2-2.4.1.0: Both high- and low-level bindings to the SDL library (version 2.0.4+).

Safe HaskellSafe
LanguageHaskell2010

SDL.Hint

Contents

Synopsis

Getting and setting hints

data Hint :: * -> * where #

The Hint type exports a well-typed interface to SDL's concept of hints. This type has instances for both HasGetter and HasSetter, allowing you to get and set hints. Note that the HasSetter interface is fairly relaxed - if a hint cannot be set, the failure will be silently discarded. For more feedback and control when setting hints, see setHintWithPriority.

Instances
HasSetter (Hint v) v # 
Instance details

Defined in SDL.Hint

Methods

($=) :: MonadIO m => Hint v -> v -> m () #

HasGetter (Hint v) v # 
Instance details

Defined in SDL.Hint

Methods

get :: MonadIO m => Hint v -> m v #

setHintWithPriority :: MonadIO m => HintPriority -> Hint v -> v -> m Bool #

Set the value of a hint, applying priority rules for when there is a conflict. Ordinarily, a hint will not be set if there is an existing override hint or environment variable that takes precedence.

data HintPriority #

How to deal with setting hints when an existing override or environment variable is present.

Constructors

DefaultPriority

Low priority, used for default values

NormalPriority

Medium priority

OverridePriority

High priority

Instances
Bounded HintPriority # 
Instance details

Defined in SDL.Hint

Enum HintPriority # 
Instance details

Defined in SDL.Hint

Eq HintPriority # 
Instance details

Defined in SDL.Hint

Data HintPriority # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> HintPriority -> c HintPriority #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c HintPriority #

toConstr :: HintPriority -> Constr #

dataTypeOf :: HintPriority -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c HintPriority) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c HintPriority) #

gmapT :: (forall b. Data b => b -> b) -> HintPriority -> HintPriority #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> HintPriority -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> HintPriority -> r #

gmapQ :: (forall d. Data d => d -> u) -> HintPriority -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> HintPriority -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> HintPriority -> m HintPriority #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> HintPriority -> m HintPriority #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> HintPriority -> m HintPriority #

Ord HintPriority # 
Instance details

Defined in SDL.Hint

Read HintPriority # 
Instance details

Defined in SDL.Hint

Show HintPriority # 
Instance details

Defined in SDL.Hint

Generic HintPriority # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep HintPriority :: * -> * #

type Rep HintPriority # 
Instance details

Defined in SDL.Hint

type Rep HintPriority = D1 (MetaData "HintPriority" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) (C1 (MetaCons "DefaultPriority" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "NormalPriority" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "OverridePriority" PrefixI False) (U1 :: * -> *)))

clearHints :: MonadIO m => m () #

Hint Information

HintAccelerometerAsJoystick

data AccelerometerJoystickOptions #

A hint that specifies whether the Android/iOS built-in accelerometer should be listed as a joystick device, rather than listing actual joysticks only. By default SDL will list real joysticks along with the accelerometer as if it were a 3 axis joystick.

Constructors

AccelerometerNotJoystick

List only real joysticks and accept input from them

AccelerometerIsJoystick

List real joysticks along with the accelerometer as if it were a 3 axis joystick (the default)

Instances
Bounded AccelerometerJoystickOptions # 
Instance details

Defined in SDL.Hint

Enum AccelerometerJoystickOptions # 
Instance details

Defined in SDL.Hint

Eq AccelerometerJoystickOptions # 
Instance details

Defined in SDL.Hint

Data AccelerometerJoystickOptions # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AccelerometerJoystickOptions -> c AccelerometerJoystickOptions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AccelerometerJoystickOptions #

toConstr :: AccelerometerJoystickOptions -> Constr #

dataTypeOf :: AccelerometerJoystickOptions -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AccelerometerJoystickOptions) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AccelerometerJoystickOptions) #

gmapT :: (forall b. Data b => b -> b) -> AccelerometerJoystickOptions -> AccelerometerJoystickOptions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AccelerometerJoystickOptions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AccelerometerJoystickOptions -> r #

gmapQ :: (forall d. Data d => d -> u) -> AccelerometerJoystickOptions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AccelerometerJoystickOptions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AccelerometerJoystickOptions -> m AccelerometerJoystickOptions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AccelerometerJoystickOptions -> m AccelerometerJoystickOptions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AccelerometerJoystickOptions -> m AccelerometerJoystickOptions #

Ord AccelerometerJoystickOptions # 
Instance details

Defined in SDL.Hint

Read AccelerometerJoystickOptions # 
Instance details

Defined in SDL.Hint

Show AccelerometerJoystickOptions # 
Instance details

Defined in SDL.Hint

Generic AccelerometerJoystickOptions # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep AccelerometerJoystickOptions :: * -> * #

type Rep AccelerometerJoystickOptions # 
Instance details

Defined in SDL.Hint

type Rep AccelerometerJoystickOptions = D1 (MetaData "AccelerometerJoystickOptions" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) (C1 (MetaCons "AccelerometerNotJoystick" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "AccelerometerIsJoystick" PrefixI False) (U1 :: * -> *))

HintFramebufferAcceleration

data FramebufferAccelerationOptions #

A hint that specifies how 3D acceleration is used to accelerate the SDL screen surface. By default SDL tries to make a best guess whether to use acceleration or not on each platform.

Constructors

Disable3D

Disable 3D acceleration

Enable3DDefault

Enable 3D acceleration, using the default renderer

Enable3DDirect3D

Enable 3D acceleration using Direct3D

Enable3DOpenGL

Enable 3D acceleration using OpenGL

Enable3DOpenGLES

Enable 3D acceleration using OpenGLES

Enable3DOpenGLES2

Enable 3D acceleration using OpenGLES2

Enable3DSoftware

Enable 3D acceleration using software rendering

Instances
Bounded FramebufferAccelerationOptions # 
Instance details

Defined in SDL.Hint

Enum FramebufferAccelerationOptions # 
Instance details

Defined in SDL.Hint

Eq FramebufferAccelerationOptions # 
Instance details

Defined in SDL.Hint

Data FramebufferAccelerationOptions # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FramebufferAccelerationOptions -> c FramebufferAccelerationOptions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FramebufferAccelerationOptions #

toConstr :: FramebufferAccelerationOptions -> Constr #

dataTypeOf :: FramebufferAccelerationOptions -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FramebufferAccelerationOptions) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FramebufferAccelerationOptions) #

gmapT :: (forall b. Data b => b -> b) -> FramebufferAccelerationOptions -> FramebufferAccelerationOptions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FramebufferAccelerationOptions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FramebufferAccelerationOptions -> r #

gmapQ :: (forall d. Data d => d -> u) -> FramebufferAccelerationOptions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> FramebufferAccelerationOptions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FramebufferAccelerationOptions -> m FramebufferAccelerationOptions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FramebufferAccelerationOptions -> m FramebufferAccelerationOptions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FramebufferAccelerationOptions -> m FramebufferAccelerationOptions #

Ord FramebufferAccelerationOptions # 
Instance details

Defined in SDL.Hint

Read FramebufferAccelerationOptions # 
Instance details

Defined in SDL.Hint

Show FramebufferAccelerationOptions # 
Instance details

Defined in SDL.Hint

Generic FramebufferAccelerationOptions # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep FramebufferAccelerationOptions :: * -> * #

type Rep FramebufferAccelerationOptions # 
Instance details

Defined in SDL.Hint

type Rep FramebufferAccelerationOptions = D1 (MetaData "FramebufferAccelerationOptions" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) ((C1 (MetaCons "Disable3D" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "Enable3DDefault" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Enable3DDirect3D" PrefixI False) (U1 :: * -> *))) :+: ((C1 (MetaCons "Enable3DOpenGL" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Enable3DOpenGLES" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "Enable3DOpenGLES2" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Enable3DSoftware" PrefixI False) (U1 :: * -> *))))

HintMacCTRLClick

data MacCTRLClickOptions #

A hint that specifies whether ctrl+click should generate a right-click event on Mac. By default holding ctrl while left clicking will not generate a right click event when on Mac.

Constructors

NoRightClick

Disable emulating right click

EmulateRightClick

Enable emulating right click

Instances
Bounded MacCTRLClickOptions # 
Instance details

Defined in SDL.Hint

Enum MacCTRLClickOptions # 
Instance details

Defined in SDL.Hint

Eq MacCTRLClickOptions # 
Instance details

Defined in SDL.Hint

Data MacCTRLClickOptions # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MacCTRLClickOptions -> c MacCTRLClickOptions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MacCTRLClickOptions #

toConstr :: MacCTRLClickOptions -> Constr #

dataTypeOf :: MacCTRLClickOptions -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MacCTRLClickOptions) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MacCTRLClickOptions) #

gmapT :: (forall b. Data b => b -> b) -> MacCTRLClickOptions -> MacCTRLClickOptions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MacCTRLClickOptions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MacCTRLClickOptions -> r #

gmapQ :: (forall d. Data d => d -> u) -> MacCTRLClickOptions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MacCTRLClickOptions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MacCTRLClickOptions -> m MacCTRLClickOptions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MacCTRLClickOptions -> m MacCTRLClickOptions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MacCTRLClickOptions -> m MacCTRLClickOptions #

Ord MacCTRLClickOptions # 
Instance details

Defined in SDL.Hint

Read MacCTRLClickOptions # 
Instance details

Defined in SDL.Hint

Show MacCTRLClickOptions # 
Instance details

Defined in SDL.Hint

Generic MacCTRLClickOptions # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep MacCTRLClickOptions :: * -> * #

type Rep MacCTRLClickOptions # 
Instance details

Defined in SDL.Hint

type Rep MacCTRLClickOptions = D1 (MetaData "MacCTRLClickOptions" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) (C1 (MetaCons "NoRightClick" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "EmulateRightClick" PrefixI False) (U1 :: * -> *))

HintMouseRelativeModeWarp

data MouseModeWarpOptions #

A hint that specifies whether relative mouse mode is implemented using mouse warping. By default SDL will use raw input for relative mouse mode

Constructors

MouseRawInput

Relative mouse mode uses the raw input

MouseWarping

Relative mouse mode uses mouse warping

Instances
Bounded MouseModeWarpOptions # 
Instance details

Defined in SDL.Hint

Enum MouseModeWarpOptions # 
Instance details

Defined in SDL.Hint

Eq MouseModeWarpOptions # 
Instance details

Defined in SDL.Hint

Data MouseModeWarpOptions # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MouseModeWarpOptions -> c MouseModeWarpOptions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MouseModeWarpOptions #

toConstr :: MouseModeWarpOptions -> Constr #

dataTypeOf :: MouseModeWarpOptions -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MouseModeWarpOptions) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MouseModeWarpOptions) #

gmapT :: (forall b. Data b => b -> b) -> MouseModeWarpOptions -> MouseModeWarpOptions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MouseModeWarpOptions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MouseModeWarpOptions -> r #

gmapQ :: (forall d. Data d => d -> u) -> MouseModeWarpOptions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MouseModeWarpOptions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MouseModeWarpOptions -> m MouseModeWarpOptions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MouseModeWarpOptions -> m MouseModeWarpOptions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MouseModeWarpOptions -> m MouseModeWarpOptions #

Ord MouseModeWarpOptions # 
Instance details

Defined in SDL.Hint

Read MouseModeWarpOptions # 
Instance details

Defined in SDL.Hint

Show MouseModeWarpOptions # 
Instance details

Defined in SDL.Hint

Generic MouseModeWarpOptions # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep MouseModeWarpOptions :: * -> * #

type Rep MouseModeWarpOptions # 
Instance details

Defined in SDL.Hint

type Rep MouseModeWarpOptions = D1 (MetaData "MouseModeWarpOptions" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) (C1 (MetaCons "MouseRawInput" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "MouseWarping" PrefixI False) (U1 :: * -> *))

HintRenderDriver

data RenderDrivers #

A hint that specifies which render driver to use. By default the first one in the list that is available on the current platform is chosen.

Instances
Bounded RenderDrivers # 
Instance details

Defined in SDL.Hint

Enum RenderDrivers # 
Instance details

Defined in SDL.Hint

Eq RenderDrivers # 
Instance details

Defined in SDL.Hint

Data RenderDrivers # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenderDrivers -> c RenderDrivers #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenderDrivers #

toConstr :: RenderDrivers -> Constr #

dataTypeOf :: RenderDrivers -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RenderDrivers) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenderDrivers) #

gmapT :: (forall b. Data b => b -> b) -> RenderDrivers -> RenderDrivers #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenderDrivers -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenderDrivers -> r #

gmapQ :: (forall d. Data d => d -> u) -> RenderDrivers -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RenderDrivers -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenderDrivers -> m RenderDrivers #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderDrivers -> m RenderDrivers #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderDrivers -> m RenderDrivers #

Ord RenderDrivers # 
Instance details

Defined in SDL.Hint

Read RenderDrivers # 
Instance details

Defined in SDL.Hint

Show RenderDrivers # 
Instance details

Defined in SDL.Hint

Generic RenderDrivers # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep RenderDrivers :: * -> * #

type Rep RenderDrivers # 
Instance details

Defined in SDL.Hint

type Rep RenderDrivers = D1 (MetaData "RenderDrivers" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) ((C1 (MetaCons "Direct3D" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "OpenGL" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "OpenGLES" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "OpenGLES2" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Software" PrefixI False) (U1 :: * -> *))))

HintRenderOpenGLShaders

data RenderOpenGLShaderOptions #

A hint that specifies whether the OpenGL render driver uses shaders. By default shaders are used if OpenGL supports them.

Constructors

DisableShaders

Disable shaders

EnableShaders

Enable shaders, if they are available

Instances
Bounded RenderOpenGLShaderOptions # 
Instance details

Defined in SDL.Hint

Enum RenderOpenGLShaderOptions # 
Instance details

Defined in SDL.Hint

Eq RenderOpenGLShaderOptions # 
Instance details

Defined in SDL.Hint

Data RenderOpenGLShaderOptions # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenderOpenGLShaderOptions -> c RenderOpenGLShaderOptions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenderOpenGLShaderOptions #

toConstr :: RenderOpenGLShaderOptions -> Constr #

dataTypeOf :: RenderOpenGLShaderOptions -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RenderOpenGLShaderOptions) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenderOpenGLShaderOptions) #

gmapT :: (forall b. Data b => b -> b) -> RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenderOpenGLShaderOptions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenderOpenGLShaderOptions -> r #

gmapQ :: (forall d. Data d => d -> u) -> RenderOpenGLShaderOptions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RenderOpenGLShaderOptions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenderOpenGLShaderOptions -> m RenderOpenGLShaderOptions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderOpenGLShaderOptions -> m RenderOpenGLShaderOptions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderOpenGLShaderOptions -> m RenderOpenGLShaderOptions #

Ord RenderOpenGLShaderOptions # 
Instance details

Defined in SDL.Hint

Read RenderOpenGLShaderOptions # 
Instance details

Defined in SDL.Hint

Show RenderOpenGLShaderOptions # 
Instance details

Defined in SDL.Hint

Generic RenderOpenGLShaderOptions # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep RenderOpenGLShaderOptions :: * -> * #

type Rep RenderOpenGLShaderOptions # 
Instance details

Defined in SDL.Hint

type Rep RenderOpenGLShaderOptions = D1 (MetaData "RenderOpenGLShaderOptions" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) (C1 (MetaCons "DisableShaders" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "EnableShaders" PrefixI False) (U1 :: * -> *))

HintRenderScaleQuality

data RenderScaleQuality #

A hint that specifies scaling quality. By default nearest pixel sampling is used.

Constructors

ScaleNearest

Nearest pixel sampling

ScaleLinear

linear filtering (supported by OpenGL and Direct3D)

ScaleBest

Anisotropic filtering (supported by Direct3D)

Instances
Bounded RenderScaleQuality # 
Instance details

Defined in SDL.Hint

Enum RenderScaleQuality # 
Instance details

Defined in SDL.Hint

Eq RenderScaleQuality # 
Instance details

Defined in SDL.Hint

Data RenderScaleQuality # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenderScaleQuality -> c RenderScaleQuality #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenderScaleQuality #

toConstr :: RenderScaleQuality -> Constr #

dataTypeOf :: RenderScaleQuality -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RenderScaleQuality) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenderScaleQuality) #

gmapT :: (forall b. Data b => b -> b) -> RenderScaleQuality -> RenderScaleQuality #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenderScaleQuality -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenderScaleQuality -> r #

gmapQ :: (forall d. Data d => d -> u) -> RenderScaleQuality -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RenderScaleQuality -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenderScaleQuality -> m RenderScaleQuality #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderScaleQuality -> m RenderScaleQuality #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderScaleQuality -> m RenderScaleQuality #

Ord RenderScaleQuality # 
Instance details

Defined in SDL.Hint

Read RenderScaleQuality # 
Instance details

Defined in SDL.Hint

Show RenderScaleQuality # 
Instance details

Defined in SDL.Hint

Generic RenderScaleQuality # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep RenderScaleQuality :: * -> * #

type Rep RenderScaleQuality # 
Instance details

Defined in SDL.Hint

type Rep RenderScaleQuality = D1 (MetaData "RenderScaleQuality" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) (C1 (MetaCons "ScaleNearest" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "ScaleLinear" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "ScaleBest" PrefixI False) (U1 :: * -> *)))

HintRenderVSync

data RenderVSyncOptions #

A hint that specifies whether sync to vertical refresh is enabled or disabled to avoid tearing. By default SDL uses the flag passed into calls to create renderers.

Constructors

DisableVSync 
EnableVSync 
Instances
Bounded RenderVSyncOptions # 
Instance details

Defined in SDL.Hint

Enum RenderVSyncOptions # 
Instance details

Defined in SDL.Hint

Eq RenderVSyncOptions # 
Instance details

Defined in SDL.Hint

Data RenderVSyncOptions # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenderVSyncOptions -> c RenderVSyncOptions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenderVSyncOptions #

toConstr :: RenderVSyncOptions -> Constr #

dataTypeOf :: RenderVSyncOptions -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RenderVSyncOptions) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenderVSyncOptions) #

gmapT :: (forall b. Data b => b -> b) -> RenderVSyncOptions -> RenderVSyncOptions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenderVSyncOptions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenderVSyncOptions -> r #

gmapQ :: (forall d. Data d => d -> u) -> RenderVSyncOptions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RenderVSyncOptions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenderVSyncOptions -> m RenderVSyncOptions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderVSyncOptions -> m RenderVSyncOptions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderVSyncOptions -> m RenderVSyncOptions #

Ord RenderVSyncOptions # 
Instance details

Defined in SDL.Hint

Read RenderVSyncOptions # 
Instance details

Defined in SDL.Hint

Show RenderVSyncOptions # 
Instance details

Defined in SDL.Hint

Generic RenderVSyncOptions # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep RenderVSyncOptions :: * -> * #

type Rep RenderVSyncOptions # 
Instance details

Defined in SDL.Hint

type Rep RenderVSyncOptions = D1 (MetaData "RenderVSyncOptions" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) (C1 (MetaCons "DisableVSync" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "EnableVSync" PrefixI False) (U1 :: * -> *))

HintVideoWinD3DCompiler

data VideoWinD3DCompilerOptions #

A hint that specifies which shader compiler to preload when using the Chrome ANGLE binaries. By default d3dcompiler_46.dll will be used.

Constructors

D3DVistaOrLater

Use d3dcompiler_46.dll, best for Vista or later

D3DXPSupport

Use d3dcompiler_43.dll for XP support

D3DNone

Do not load any library, useful if you compiled ANGLE from source and included the compiler in your binaries

Instances
Bounded VideoWinD3DCompilerOptions # 
Instance details

Defined in SDL.Hint

Enum VideoWinD3DCompilerOptions # 
Instance details

Defined in SDL.Hint

Eq VideoWinD3DCompilerOptions # 
Instance details

Defined in SDL.Hint

Data VideoWinD3DCompilerOptions # 
Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> VideoWinD3DCompilerOptions -> c VideoWinD3DCompilerOptions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c VideoWinD3DCompilerOptions #

toConstr :: VideoWinD3DCompilerOptions -> Constr #

dataTypeOf :: VideoWinD3DCompilerOptions -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c VideoWinD3DCompilerOptions) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c VideoWinD3DCompilerOptions) #

gmapT :: (forall b. Data b => b -> b) -> VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> VideoWinD3DCompilerOptions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> VideoWinD3DCompilerOptions -> r #

gmapQ :: (forall d. Data d => d -> u) -> VideoWinD3DCompilerOptions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> VideoWinD3DCompilerOptions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> VideoWinD3DCompilerOptions -> m VideoWinD3DCompilerOptions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> VideoWinD3DCompilerOptions -> m VideoWinD3DCompilerOptions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> VideoWinD3DCompilerOptions -> m VideoWinD3DCompilerOptions #

Ord VideoWinD3DCompilerOptions # 
Instance details

Defined in SDL.Hint

Read VideoWinD3DCompilerOptions # 
Instance details

Defined in SDL.Hint

Show VideoWinD3DCompilerOptions # 
Instance details

Defined in SDL.Hint

Generic VideoWinD3DCompilerOptions # 
Instance details

Defined in SDL.Hint

Associated Types

type Rep VideoWinD3DCompilerOptions :: * -> * #

type Rep VideoWinD3DCompilerOptions # 
Instance details

Defined in SDL.Hint

type Rep VideoWinD3DCompilerOptions = D1 (MetaData "VideoWinD3DCompilerOptions" "SDL.Hint" "sdl2-2.4.1.0-BSoUqVHl3myLrLd0xltRmd" False) (C1 (MetaCons "D3DVistaOrLater" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "D3DXPSupport" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "D3DNone" PrefixI False) (U1 :: * -> *)))