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

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

Graphics.Luminance.RenderCmd

Contents

Description

 

Synopsis

Render commands

data RenderCmd rw c d a

A GPU render command. That type exists to implement a stateless way to issue draw commands to the GPU. You can set several hints for a given draw command:

Finally, a RenderCmd holds a value. That value will be consumed later by other functions. In general, it’ll be Geometry.

Instances

Functor (RenderCmd rw c d) 

renderCmd :: Maybe (BlendingMode, BlendingFactor, BlendingFactor) -> Bool -> a -> RenderCmd rw c d a

renderCmd blending depthTest a constructs a new RenderCmd.

Special render commands

stdRenderCmd :: a -> RenderCmd rw c d a

A standard RenderCmd builder.

  • no blending
  • depth test enabled