Copyright | (c) Sven Panne 2002-2019 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module corresponds to section 2.14 (Colors and Coloring) of the OpenGL 2.1 specs.
Synopsis
- lighting :: StateVar Capability
- newtype Light = Light GLsizei
- light :: Light -> StateVar Capability
- maxLights :: GettableStateVar GLsizei
- data FrontFaceDirection
- frontFace :: StateVar FrontFaceDirection
- data Face
- = Front
- | Back
- | FrontAndBack
- materialAmbient :: Face -> StateVar (Color4 GLfloat)
- materialDiffuse :: Face -> StateVar (Color4 GLfloat)
- materialAmbientAndDiffuse :: Face -> StateVar (Color4 GLfloat)
- materialSpecular :: Face -> StateVar (Color4 GLfloat)
- materialEmission :: Face -> StateVar (Color4 GLfloat)
- materialShininess :: Face -> StateVar GLfloat
- maxShininess :: GettableStateVar GLfloat
- materialColorIndexes :: Face -> StateVar (Index1 GLint, Index1 GLint, Index1 GLint)
- ambient :: Light -> StateVar (Color4 GLfloat)
- diffuse :: Light -> StateVar (Color4 GLfloat)
- specular :: Light -> StateVar (Color4 GLfloat)
- position :: Light -> StateVar (Vertex4 GLfloat)
- spotDirection :: Light -> StateVar (Normal3 GLfloat)
- spotExponent :: Light -> StateVar GLfloat
- maxSpotExponent :: GettableStateVar GLfloat
- spotCutoff :: Light -> StateVar GLfloat
- attenuation :: Light -> StateVar (GLfloat, GLfloat, GLfloat)
- lightModelAmbient :: StateVar (Color4 GLfloat)
- lightModelLocalViewer :: StateVar Capability
- lightModelTwoSide :: StateVar Capability
- vertexProgramTwoSide :: StateVar Capability
- data LightModelColorControl
- lightModelColorControl :: StateVar LightModelColorControl
- data ColorMaterialParameter
- colorMaterial :: StateVar (Maybe (Face, ColorMaterialParameter))
- data ShadingModel
- shadeModel :: StateVar ShadingModel
- data ClampTarget
- data ClampMode
- clampColor :: ClampTarget -> StateVar ClampMode
Lighting
data FrontFaceDirection Source #
Instances
Eq FrontFaceDirection Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Colors (==) :: FrontFaceDirection -> FrontFaceDirection -> Bool # (/=) :: FrontFaceDirection -> FrontFaceDirection -> Bool # | |
Ord FrontFaceDirection Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Colors compare :: FrontFaceDirection -> FrontFaceDirection -> Ordering # (<) :: FrontFaceDirection -> FrontFaceDirection -> Bool # (<=) :: FrontFaceDirection -> FrontFaceDirection -> Bool # (>) :: FrontFaceDirection -> FrontFaceDirection -> Bool # (>=) :: FrontFaceDirection -> FrontFaceDirection -> Bool # max :: FrontFaceDirection -> FrontFaceDirection -> FrontFaceDirection # min :: FrontFaceDirection -> FrontFaceDirection -> FrontFaceDirection # | |
Show FrontFaceDirection Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Colors showsPrec :: Int -> FrontFaceDirection -> ShowS # show :: FrontFaceDirection -> String # showList :: [FrontFaceDirection] -> ShowS # |
Lighting Parameter Specification
data LightModelColorControl Source #
Instances
ColorMaterial
data ColorMaterialParameter Source #
Instances
Flatshading
data ShadingModel Source #
Instances
Eq ShadingModel Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Colors (==) :: ShadingModel -> ShadingModel -> Bool # (/=) :: ShadingModel -> ShadingModel -> Bool # | |
Ord ShadingModel Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Colors compare :: ShadingModel -> ShadingModel -> Ordering # (<) :: ShadingModel -> ShadingModel -> Bool # (<=) :: ShadingModel -> ShadingModel -> Bool # (>) :: ShadingModel -> ShadingModel -> Bool # (>=) :: ShadingModel -> ShadingModel -> Bool # max :: ShadingModel -> ShadingModel -> ShadingModel # min :: ShadingModel -> ShadingModel -> ShadingModel # | |
Show ShadingModel Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Colors showsPrec :: Int -> ShadingModel -> ShowS # show :: ShadingModel -> String # showList :: [ShadingModel] -> ShowS # |
Color clamping
data ClampTarget Source #
Instances
Eq ClampTarget Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Colors (==) :: ClampTarget -> ClampTarget -> Bool # (/=) :: ClampTarget -> ClampTarget -> Bool # | |
Ord ClampTarget Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Colors compare :: ClampTarget -> ClampTarget -> Ordering # (<) :: ClampTarget -> ClampTarget -> Bool # (<=) :: ClampTarget -> ClampTarget -> Bool # (>) :: ClampTarget -> ClampTarget -> Bool # (>=) :: ClampTarget -> ClampTarget -> Bool # max :: ClampTarget -> ClampTarget -> ClampTarget # min :: ClampTarget -> ClampTarget -> ClampTarget # | |
Show ClampTarget Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Colors showsPrec :: Int -> ClampTarget -> ShowS # show :: ClampTarget -> String # showList :: [ClampTarget] -> ShowS # |