luminance-0.3.1.2: Type-safe, dependently-typed and stateless graphics framework

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

Graphics.Luminance.Cmd

Contents

Description

 

Synopsis

Command type

data Cmd a Source

Command type. Used to accumulate GPU commands. Use runCmd to execute the whole chain of commands.

runCmd :: MonadIO m => Cmd a -> m a Source

Available commands

draw :: FBBatch rw c d -> Cmd (Output c d) Source

Draw a framebuffer batch and return the framebuffer’s output.

blit :: (Readable r, Writable w) => Framebuffer r c0 d0 -> Framebuffer w c1 d1 -> Int -> Int -> Natural -> Natural -> Int -> Int -> Natural -> Natural -> FramebufferBlitMask -> Filter -> Cmd (Output c1 d1) Source

Blit a framebuffer batch onto a framebuffer and return the framebuffer’s output of the write framebuffer.