OpenGL-2.9.2.0: A binding for the OpenGL graphics system

Copyright | (c) Sven Panne 2002-2013
License | BSD3
Maintainer | Sven Panne <svenpanne@gmail.com>
Stability | stable
Portability | portable
Safe Haskell | None
Language | Haskell98

Graphics.Rendering.OpenGL.GL.Texturing.Environments

Description

This module corresponds to section 3.8.13 (Texture Environments and Texture Functions) of the OpenGL 2.1 specs.

# Documentation

data TextureFunction

Constructors

Modulate |
Decal |
Blend |
Replace |
AddUnsigned |
Combine |
Combine4 |

Instances

Eq TextureFunction |
Ord TextureFunction |
Show TextureFunction |

textureFunction :: StateVar TextureFunction

data TextureCombineFunction

Constructors

Replace' |
Modulate' |
AddUnsigned' |
AddSigned |
Interpolate |
Subtract |
Dot3RGB |
Dot3RGBA |

Instances

Eq TextureCombineFunction |
Ord TextureCombineFunction |
Show TextureCombineFunction |

combineRGB :: StateVar TextureCombineFunction

combineAlpha :: StateVar TextureCombineFunction

data ArgNum

Constructors

Arg0 |
Arg1 |
Arg2 |
Arg3 |

Instances

Eq ArgNum |
Ord ArgNum |
Show ArgNum |

data Arg

Constructors

Arg BlendingFactor Src |

Instances

Eq Arg |
Ord Arg |
Show Arg |

data Src

Constructors

CurrentUnit |
Previous |
Crossbar TextureUnit |
Constant |
PrimaryColor |

Instances

Eq Src |
Ord Src |
Show Src |

argRGB :: ArgNum -> StateVar Arg

argAlpha :: ArgNum -> StateVar Arg

rgbScale :: StateVar GLfloat

alphaScale :: StateVar GLfloat

constantColor :: StateVar (Color4 GLfloat)

textureUnitLODBias :: StateVar LOD