luminance-0.11.0.4: Type-safe, type-level and stateless graphics framework

Copyright(C) 2015, 2016 Dimitri Sabadie
LicenseBSD3
MaintainerDimitri Sabadie <dimitri.sabadie@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Graphics.Luminance.RW

Contents

Description

 

Synopsis

Readable types

class Readable r Source #

Readable typeclass, for types that admit reads.

data R Source #

Read-only type.

Instances

Eq R Source # 

Methods

(==) :: R -> R -> Bool #

(/=) :: R -> R -> Bool #

Ord R Source # 

Methods

compare :: R -> R -> Ordering #

(<) :: R -> R -> Bool #

(<=) :: R -> R -> Bool #

(>) :: R -> R -> Bool #

(>=) :: R -> R -> Bool #

max :: R -> R -> R #

min :: R -> R -> R #

Show R Source # 

Methods

showsPrec :: Int -> R -> ShowS #

show :: R -> String #

showList :: [R] -> ShowS #

Readable R Source # 
BufferRW R Source # 

Methods

bufferFlagsFromRW :: proxy R -> GLenum

FramebufferTarget R Source # 

Methods

framebufferTarget :: proxy R -> GLenum

Writable types

class Writable w Source #

Writable typeclass, for types that admit writes.

data W Source #

Write-only type.

Instances

Eq W Source # 

Methods

(==) :: W -> W -> Bool #

(/=) :: W -> W -> Bool #

Ord W Source # 

Methods

compare :: W -> W -> Ordering #

(<) :: W -> W -> Bool #

(<=) :: W -> W -> Bool #

(>) :: W -> W -> Bool #

(>=) :: W -> W -> Bool #

max :: W -> W -> W #

min :: W -> W -> W #

Show W Source # 

Methods

showsPrec :: Int -> W -> ShowS #

show :: W -> String #

showList :: [W] -> ShowS #

Writable W Source # 
BufferRW W Source # 

Methods

bufferFlagsFromRW :: proxy W -> GLenum

FramebufferTarget W Source # 

Methods

framebufferTarget :: proxy W -> GLenum

FramebufferColorRW W Source # 

Methods

setFramebufferColorRW :: MonadIO m => GLuint -> Natural -> proxy W -> m ()

Read/write types

data RW Source #

Read-write type.

Instances

Eq RW Source # 

Methods

(==) :: RW -> RW -> Bool #

(/=) :: RW -> RW -> Bool #

Ord RW Source # 

Methods

compare :: RW -> RW -> Ordering #

(<) :: RW -> RW -> Bool #

(<=) :: RW -> RW -> Bool #

(>) :: RW -> RW -> Bool #

(>=) :: RW -> RW -> Bool #

max :: RW -> RW -> RW #

min :: RW -> RW -> RW #

Show RW Source # 

Methods

showsPrec :: Int -> RW -> ShowS #

show :: RW -> String #

showList :: [RW] -> ShowS #

Writable RW Source # 
Readable RW Source # 
BufferRW RW Source # 

Methods

bufferFlagsFromRW :: proxy RW -> GLenum

FramebufferTarget RW Source # 

Methods

framebufferTarget :: proxy RW -> GLenum

FramebufferColorRW RW Source # 

Methods

setFramebufferColorRW :: MonadIO m => GLuint -> Natural -> proxy RW -> m ()