lambdacube-core-0.1.0: LambdaCube 3D is a domain specific language and library that makes it possible to program GPUs in a purely functional style.

Safe HaskellNone

LC_G_APIType

Documentation

data TextureData Source

Constructors

TextureData 

type SetterFun a = a -> IO ()Source

type BufferSetter = (Ptr () -> IO ()) -> IO ()Source

data FrontFace Source

Constructors

CCW 
CW 

data StencilOps Source

Constructors

StencilOps 

Fields

frontStencilOp :: StencilOperation

Used for front faced triangles and other primitives.

backStencilOp :: StencilOperation

Used for back faced triangles.

data StencilTest Source

Constructors

StencilTest 

Fields

stencilComparision :: ComparisonFunction

The function used to compare the stencilReference and the stencil buffers value with.

stencilReference :: Int32

The value to compare with the stencil buffer's value.

stencilMask :: Word32

A bit mask with ones in each position that should be compared and written to the stencil buffer.