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

Contents

Description

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

Synopsis

Lighting

newtype Light Source #

Constructors

Light GLsizei 
Instances
Eq Light Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.Colors

Methods

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

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

Ord Light Source # 
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 Source # 
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 Source #

Constructors

Front 
Back 
FrontAndBack 
Instances
Eq Face Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.Face

Methods

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

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

Ord Face Source # 
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 Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.Face

Methods

showsPrec :: Int -> Face -> ShowS #

show :: Face -> String #

showList :: [Face] -> ShowS #

ColorMaterial

Flatshading

Color clamping