OpenGL-3.0.3.0: A binding for the OpenGL graphics system

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

Graphics.Rendering.OpenGL.GL.Polygons

Description

This module corresponds to section 3.5 (Polygons) of the OpenGL 2.1 specs.

# Documentation

polygonSmooth :: StateVar Capability Source #

cullFace :: StateVar (Maybe Face) Source #

class PolygonStipple s where Source #

Minimal complete definition

Nothing

Methods

withNewPolygonStipple :: (Ptr GLubyte -> IO ()) -> IO s Source #

withPolygonStipple :: s -> (Ptr GLubyte -> IO a) -> IO a Source #

newPolygonStipple :: [GLubyte] -> IO s Source #

getPolygonStippleComponents :: s -> IO [GLubyte] Source #

#### Instances

Instances details

PolygonStipple GLpolygonstipple Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Polygons Methods withNewPolygonStipple :: (Ptr GLubyte -> IO ()) -> IO GLpolygonstipple Source # withPolygonStipple :: GLpolygonstipple -> (Ptr GLubyte -> IO a) -> IO a Source # newPolygonStipple :: [GLubyte] -> IO GLpolygonstipple Source # getPolygonStippleComponents :: GLpolygonstipple -> IO [GLubyte] Source #

data GLpolygonstipple Source #

#### Instances

Instances details

PolygonStipple GLpolygonstipple Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Polygons Methods withNewPolygonStipple :: (Ptr GLubyte -> IO ()) -> IO GLpolygonstipple Source # withPolygonStipple :: GLpolygonstipple -> (Ptr GLubyte -> IO a) -> IO a Source # newPolygonStipple :: [GLubyte] -> IO GLpolygonstipple Source # getPolygonStippleComponents :: GLpolygonstipple -> IO [GLubyte] Source #
Show GLpolygonstipple Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Polygons Methods showsPrec :: Int -> GLpolygonstipple -> ShowS Source # show :: GLpolygonstipple -> String Source # showList :: [GLpolygonstipple] -> ShowS Source #
Eq GLpolygonstipple Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Polygons Methods (==) :: GLpolygonstipple -> GLpolygonstipple -> Bool Source # (/=) :: GLpolygonstipple -> GLpolygonstipple -> Bool Source #
Ord GLpolygonstipple Source # |

Instance details

Defined in Graphics.Rendering.OpenGL.GL.Polygons

Methods

compare :: GLpolygonstipple -> GLpolygonstipple -> Ordering Source #

(<) :: GLpolygonstipple -> GLpolygonstipple -> Bool Source #

(<=) :: GLpolygonstipple -> GLpolygonstipple -> Bool Source #

(>) :: GLpolygonstipple -> GLpolygonstipple -> Bool Source #

(>=) :: GLpolygonstipple -> GLpolygonstipple -> Bool Source #

max :: GLpolygonstipple -> GLpolygonstipple -> GLpolygonstipple Source #

min :: GLpolygonstipple -> GLpolygonstipple -> GLpolygonstipple Source #

polygonStipple :: PolygonStipple s => StateVar (Maybe s) Source #

data PolygonMode Source #

Constructors

Point |
Line |
Fill |

#### Instances

Instances details

Show PolygonMode Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.PolygonMode Methods showsPrec :: Int -> PolygonMode -> ShowS Source # show :: PolygonMode -> String Source # showList :: [PolygonMode] -> ShowS Source #
Eq PolygonMode Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.PolygonMode Methods (==) :: PolygonMode -> PolygonMode -> Bool Source # (/=) :: PolygonMode -> PolygonMode -> Bool Source #
Ord PolygonMode Source # |

Instance details

Defined in Graphics.Rendering.OpenGL.GL.PolygonMode

Methods

compare :: PolygonMode -> PolygonMode -> Ordering Source #

(<) :: PolygonMode -> PolygonMode -> Bool Source #

(<=) :: PolygonMode -> PolygonMode -> Bool Source #

(>) :: PolygonMode -> PolygonMode -> Bool Source #

(>=) :: PolygonMode -> PolygonMode -> Bool Source #

max :: PolygonMode -> PolygonMode -> PolygonMode Source #

min :: PolygonMode -> PolygonMode -> PolygonMode Source #

polygonMode :: StateVar (PolygonMode, PolygonMode) Source #

polygonOffset :: StateVar (GLfloat, GLfloat) Source #

polygonOffsetPoint :: StateVar Capability Source #

polygonOffsetLine :: StateVar Capability Source #

polygonOffsetFill :: StateVar Capability Source #