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 HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Rendering.OpenGL.GL.Polygons

Description

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

Documentation

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 #

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

show :: PolygonMode -> String

showList :: [PolygonMode] -> ShowS

Eq PolygonMode Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.PolygonMode

Methods

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

(/=) :: PolygonMode -> PolygonMode -> Bool

Ord PolygonMode Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.PolygonMode

polygonOffset :: StateVar (GLfloat, GLfloat) Source #