fwgl-0.1.0.3: FRP 2D/3D game engine

Safe HaskellNone
LanguageHaskell2010

FWGL.Shader.Program

Synopsis

Documentation

data Program gs is Source

A vertex shader associated with a compatible fragment shader.

Instances

Eq (Program gs is) 
Hashable (Program gs is) 

program :: (Subset gs' gs, Subset gs'' gs, Subset os' os) => VertexShader gs' is os -> FragmentShader gs'' os' -> Program gs is Source

Create a Program from the shaders.

loadProgram :: GLES => Program g i -> (LoadedProgram -> GL ()) -> GL () Source

castProgram :: Program gs is -> Program gs' is' Source

type DefaultUniforms2D = Uniforms Source

The uniforms used in the default 2D program.

type DefaultAttributes2D = Attributes Source

The attributes used in the default 2D program.

type DefaultUniforms3D = Uniforms Source

The uniforms used in the default 3D program.

type DefaultAttributes3D = Attributes Source

The attributes used in the default 3D program.