fwgl-0.1.3.1: 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 :: (ValidVertex vgs vis vos, Valid fgs vos [], Equal pgs (Union vgs fgs)) => VertexShader vgs vis vos -> FragmentShader fgs vos -> Program pgs vis Source

Create a Program from the shaders.

loadProgram :: (GLES, BackendIO) => 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.