OpenGL-3.0.3.0: A binding for the OpenGL graphics system
Copyright(c) Sven Panne 2002-2019
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.OpenGL.GL.Colors

Description

This module corresponds to section 2.14 (Colors and Coloring) of the OpenGL 2.1 specs.

Synopsis

Lighting

newtype Light #

Constructors

Light GLsizei 

Instances

Instances details
Eq Light # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.Colors

Methods

(==) :: Light -> Light -> Bool #

(/=) :: Light -> Light -> Bool #

Ord Light # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.Colors

Methods

compare :: Light -> Light -> Ordering #

(<) :: Light -> Light -> Bool #

(<=) :: Light -> Light -> Bool #

(>) :: Light -> Light -> Bool #

(>=) :: Light -> Light -> Bool #

max :: Light -> Light -> Light #

min :: Light -> Light -> Light #

Show Light # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.Colors

Methods

showsPrec :: Int -> Light -> ShowS #

show :: Light -> String #

showList :: [Light] -> ShowS #

Lighting Parameter Specification

data Face #

Constructors

Front 
Back 
FrontAndBack 

Instances

Instances details
Eq Face # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.Face

Methods

(==) :: Face -> Face -> Bool #

(/=) :: Face -> Face -> Bool #

Ord Face # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.Face

Methods

compare :: Face -> Face -> Ordering #

(<) :: Face -> Face -> Bool #

(<=) :: Face -> Face -> Bool #

(>) :: Face -> Face -> Bool #

(>=) :: Face -> Face -> Bool #

max :: Face -> Face -> Face #

min :: Face -> Face -> Face #

Show Face # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.Face

Methods

showsPrec :: Int -> Face -> ShowS #

show :: Face -> String #

showList :: [Face] -> ShowS #

ColorMaterial

Flatshading

Color clamping