| Copyright | (c) Sven Panne 2002-2018 |
|---|---|
| License | BSD3 |
| Maintainer | Sven Panne <svenpanne@gmail.com> |
| Stability | stable |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Graphics.UI.GLUT
Description
A Haskell binding for GLUT, the OpenGL Utility Toolkit, a window system independent toolkit for writing OpenGL programs. It includes support for the extended functionality available in freeglut (see http://freeglut.sourceforge.net/) and OpenGLUT (see http://openglut.sourceforge.net/), too.
Synopsis
- data StateVar a = StateVar (IO a) (a -> IO ())
- class ObjectName a where
- isObjectName :: MonadIO m => a -> m Bool
- deleteObjectName :: MonadIO m => a -> m ()
- deleteObjectNames :: MonadIO m => [a] -> m ()
- makeStateVar :: IO a -> (a -> IO ()) -> StateVar a
- newtype SettableStateVar a = SettableStateVar (a -> IO ())
- makeSettableStateVar :: (a -> IO ()) -> SettableStateVar a
- data Position = Position !GLint !GLint
- data Size = Size !GLsizei !GLsizei
- type GettableStateVar = IO
- makeGettableStateVar :: IO a -> GettableStateVar a
- newtype Index1 a = Index1 a
- data Color3 a = Color3 !a !a !a
- type GLint = Int32
- type GLfloat = Float
- class HasGetter t a | t -> a where
- get :: MonadIO m => t -> m a
- data Error = Error ErrorCategory String
- errors :: GettableStateVar [Error]
- type GLenum = Word32
- class HasSetter t a | t -> a where
- ($=) :: MonadIO m => t -> a -> m ()
- type Height = GLdouble
- type Radius = GLdouble
- type Slices = GLint
- type Stacks = GLint
- data Vertex3 a = Vertex3 !a !a !a
- type GLdouble = Double
- newtype AttribLocation = AttribLocation GLuint
- data VariableType
- = Float'
- | FloatVec2
- | FloatVec3
- | FloatVec4
- | Int'
- | IntVec2
- | IntVec3
- | IntVec4
- | UnsignedInt'
- | UnsignedIntVec2
- | UnsignedIntVec3
- | UnsignedIntVec4
- | Bool
- | BoolVec2
- | BoolVec3
- | BoolVec4
- | FloatMat2
- | FloatMat3
- | FloatMat4
- | FloatMat2x3
- | FloatMat2x4
- | FloatMat3x2
- | FloatMat3x4
- | FloatMat4x2
- | FloatMat4x3
- | Sampler1D
- | Sampler2D
- | Sampler3D
- | SamplerCube
- | Sampler1DShadow
- | Sampler2DShadow
- | Sampler1DArray
- | Sampler2DArray
- | Sampler1DArrayShadow
- | Sampler2DArrayShadow
- | SamplerCubeShadow
- | Sampler2DRect
- | Sampler2DRectShadow
- | IntSampler1D
- | IntSampler2D
- | IntSampler3D
- | IntSamplerCube
- | IntSampler1DArray
- | IntSampler2DArray
- | UnsignedIntSampler1D
- | UnsignedIntSampler2D
- | UnsignedIntSampler3D
- | UnsignedIntSamplerCube
- | UnsignedIntSampler1DArray
- | UnsignedIntSampler2DArray
- data DataType
- = UnsignedByte
- | Byte
- | UnsignedShort
- | Short
- | UnsignedInt
- | Int
- | HalfFloat
- | Float
- | UnsignedByte332
- | UnsignedByte233Rev
- | UnsignedShort565
- | UnsignedShort565Rev
- | UnsignedShort4444
- | UnsignedShort4444Rev
- | UnsignedShort5551
- | UnsignedShort1555Rev
- | UnsignedInt8888
- | UnsignedInt8888Rev
- | UnsignedInt1010102
- | UnsignedInt2101010Rev
- | UnsignedInt248
- | UnsignedInt10f11f11fRev
- | UnsignedInt5999Rev
- | Float32UnsignedInt248Rev
- | Bitmap
- | UnsignedShort88
- | UnsignedShort88Rev
- | Double
- | TwoBytes
- | ThreeBytes
- | FourBytes
- data BlendingFactor
- data MapBufferUsage
- ($=!) :: (HasSetter t a, MonadIO m) => t -> a -> m ()
- class HasSetter t b => HasUpdate t a b | t -> a b where
- mapStateVar :: (b -> a) -> (a -> b) -> StateVar a -> StateVar b
- multisample :: StateVar Capability
- sampleBuffers :: GettableStateVar GLsizei
- samples :: GettableStateVar GLsizei
- subpixelBits :: GettableStateVar GLsizei
- edgeFlag :: StateVar EdgeFlag
- primitiveRestart :: IO ()
- renderPrimitive :: PrimitiveMode -> IO a -> IO a
- unsafeRenderPrimitive :: PrimitiveMode -> IO a -> IO a
- bitmap :: Size -> Vertex2 GLfloat -> Vector2 GLfloat -> Ptr GLubyte -> IO ()
- data BufferMode
- data BufferTarget
- data BufferAccess
- type BufferIndex = GLuint
- data BufferObject
- type BufferRange = (BufferObject, RangeStartIndex, RangeSize)
- data BufferUsage
- data IndexedBufferTarget
- type Length = GLsizeiptr
- data MappingFailure
- type Offset = GLintptr
- type RangeSize = GLsizeiptr
- type RangeStartIndex = GLintptr
- data TransferDirection
- arrayBufferBinding :: ClientArrayType -> GettableStateVar (Maybe BufferObject)
- bindBuffer :: BufferTarget -> StateVar (Maybe BufferObject)
- bindBufferBase :: IndexedBufferTarget -> BufferIndex -> StateVar (Maybe BufferObject)
- bindBufferRange :: IndexedBufferTarget -> BufferIndex -> StateVar (Maybe BufferRange)
- bufferAccess :: BufferTarget -> GettableStateVar BufferAccess
- bufferData :: BufferTarget -> StateVar (GLsizeiptr, Ptr a, BufferUsage)
- bufferMapped :: BufferTarget -> GettableStateVar Bool
- bufferSubData :: BufferTarget -> TransferDirection -> GLintptr -> GLsizeiptr -> Ptr a -> IO ()
- flushMappedBufferRange :: BufferTarget -> Offset -> Length -> IO ()
- indexedBufferSize :: IndexedBufferTarget -> BufferIndex -> GettableStateVar RangeSize
- indexedBufferStart :: IndexedBufferTarget -> BufferIndex -> GettableStateVar RangeStartIndex
- mapBuffer :: BufferTarget -> BufferAccess -> IO (Maybe (Ptr a))
- mapBufferRange :: BufferTarget -> Offset -> Length -> [MapBufferUsage] -> IO (Maybe (Ptr a))
- unmapBuffer :: BufferTarget -> IO Bool
- vertexAttribArrayBufferBinding :: AttribLocation -> GettableStateVar (Maybe BufferObject)
- withMappedBuffer :: BufferTarget -> BufferAccess -> (Ptr a -> IO b) -> (MappingFailure -> IO b) -> IO b
- packUtf8 :: String -> ByteString
- unpackUtf8 :: ByteString -> String
- data Capability
- newtype ClipPlaneName = ClipPlaneName GLsizei
- clipPlane :: ClipPlaneName -> StateVar (Maybe (Plane GLdouble))
- maxClipPlanes :: GettableStateVar GLsizei
- colorSum :: StateVar Capability
- data ColorMaterialParameter
- data FrontFaceDirection
- data ClampTarget
- data ClampMode
- data ShadingModel
- newtype Light = Light GLsizei
- data LightModelColorControl
- ambient :: Light -> StateVar (Color4 GLfloat)
- attenuation :: Light -> StateVar (GLfloat, GLfloat, GLfloat)
- clampColor :: ClampTarget -> StateVar ClampMode
- colorMaterial :: StateVar (Maybe (Face, ColorMaterialParameter))
- diffuse :: Light -> StateVar (Color4 GLfloat)
- frontFace :: StateVar FrontFaceDirection
- light :: Light -> StateVar Capability
- lightModelAmbient :: StateVar (Color4 GLfloat)
- lightModelColorControl :: StateVar LightModelColorControl
- lightModelLocalViewer :: StateVar Capability
- lightModelTwoSide :: StateVar Capability
- lighting :: StateVar Capability
- materialAmbient :: Face -> StateVar (Color4 GLfloat)
- materialAmbientAndDiffuse :: Face -> StateVar (Color4 GLfloat)
- materialColorIndexes :: Face -> StateVar (Index1 GLint, Index1 GLint, Index1 GLint)
- materialDiffuse :: Face -> StateVar (Color4 GLfloat)
- materialEmission :: Face -> StateVar (Color4 GLfloat)
- materialShininess :: Face -> StateVar GLfloat
- materialSpecular :: Face -> StateVar (Color4 GLfloat)
- maxLights :: GettableStateVar GLsizei
- maxShininess :: GettableStateVar GLfloat
- maxSpotExponent :: GettableStateVar GLfloat
- position :: Light -> StateVar (Vertex4 GLfloat)
- shadeModel :: StateVar ShadingModel
- specular :: Light -> StateVar (Color4 GLfloat)
- spotCutoff :: Light -> StateVar GLfloat
- spotDirection :: Light -> StateVar (Normal3 GLfloat)
- spotExponent :: Light -> StateVar GLfloat
- vertexProgramTwoSide :: StateVar Capability
- data ComparisonFunction
- data ConditionalRenderMode
- beginConditionalRender :: QueryObject -> ConditionalRenderMode -> IO ()
- endConditionalRender :: IO ()
- withConditionalRender :: QueryObject -> ConditionalRenderMode -> IO a -> IO a
- class ControlPoint (c :: Type -> Type)
- class Color a where
- data MatrixMode
- data MatrixOrder
- data TextureGenMode
- data GLmatrix a
- class Matrix (m :: Type -> Type) where
- withNewMatrix :: MatrixComponent c => MatrixOrder -> (Ptr c -> IO ()) -> IO (m c)
- withMatrix :: MatrixComponent c => m c -> (MatrixOrder -> Ptr c -> IO a) -> IO a
- newMatrix :: MatrixComponent c => MatrixOrder -> [c] -> IO (m c)
- getMatrixComponents :: MatrixComponent c => MatrixOrder -> m c -> IO [c]
- data Plane a = Plane !a !a !a !a
- data TextureCoordName
- activeTexture :: StateVar TextureUnit
- depthClamp :: StateVar Capability
- depthRange :: StateVar (GLclampd, GLclampd)
- frustum :: GLdouble -> GLdouble -> GLdouble -> GLdouble -> GLdouble -> GLdouble -> IO ()
- loadIdentity :: IO ()
- matrix :: (Matrix m, MatrixComponent c) => Maybe MatrixMode -> StateVar (m c)
- matrixMode :: StateVar MatrixMode
- maxStackDepth :: MatrixMode -> GettableStateVar GLsizei
- maxViewportDims :: GettableStateVar Size
- multMatrix :: (Matrix m, MatrixComponent c) => m c -> IO ()
- normalize :: StateVar Capability
- ortho :: GLdouble -> GLdouble -> GLdouble -> GLdouble -> GLdouble -> GLdouble -> IO ()
- preservingMatrix :: IO a -> IO a
- rescaleNormal :: StateVar Capability
- stackDepth :: Maybe MatrixMode -> GettableStateVar GLsizei
- textureGenMode :: TextureCoordName -> StateVar (Maybe TextureGenMode)
- unsafePreservingMatrix :: IO a -> IO a
- viewport :: StateVar (Position, Size)
- data DataRepresentation
- class CanBeLabeled a where
- objectLabel :: a -> StateVar (Maybe String)
- data DebugGroup = DebugGroup DebugSource DebugMessageID String
- data DebugMessage = DebugMessage DebugSource DebugType DebugMessageID DebugSeverity String
- newtype DebugMessageID = DebugMessageID GLuint
- data DebugSeverity
- data DebugSource
- data DebugType
- data MessageGroup
- = MessageGroup (Maybe DebugSource) (Maybe DebugType) (Maybe DebugSeverity)
- | MessageGroupWithIDs DebugSource DebugType [DebugMessageID]
- debugLoggedMessages :: IO [DebugMessage]
- debugMessageCallback :: StateVar (Maybe (DebugMessage -> IO ()))
- debugMessageControl :: MessageGroup -> SettableStateVar Capability
- debugMessageInsert :: DebugMessage -> IO ()
- debugOutput :: StateVar Capability
- debugOutputSynchronous :: StateVar Capability
- maxDebugGroupStackDepth :: GettableStateVar GLsizei
- maxDebugLoggedMessages :: GettableStateVar GLsizei
- maxDebugMessageLength :: GettableStateVar GLsizei
- popDebugGroup :: IO ()
- pushDebugGroup :: DebugSource -> DebugMessageID -> String -> IO ()
- withDebugGroup :: DebugSource -> DebugMessageID -> String -> IO a -> IO a
- data ListMode
- newtype DisplayList = DisplayList GLuint
- callList :: DisplayList -> IO ()
- callLists :: GLsizei -> DataType -> Ptr a -> IO ()
- defineList :: DisplayList -> ListMode -> IO a -> IO a
- defineNewList :: ListMode -> IO a -> IO DisplayList
- listBase :: StateVar DisplayList
- listIndex :: GettableStateVar (Maybe DisplayList)
- listMode :: GettableStateVar ListMode
- maxListNesting :: GettableStateVar GLsizei
- class Storable d => Domain d where
- evalCoord1 :: d -> IO ()
- evalCoord1v :: Ptr d -> IO ()
- evalCoord2 :: (d, d) -> IO ()
- evalCoord2v :: Ptr d -> IO ()
- data EdgeFlag
- data GLmap1 (c :: Type -> Type) d
- data GLmap2 (c :: Type -> Type) d
- class Map1 (m :: (Type -> Type) -> Type -> Type) where
- withNewMap1 :: forall (c :: Type -> Type) d. (ControlPoint c, Domain d) => MapDescriptor d -> (Ptr d -> IO ()) -> IO (m c d)
- withMap1 :: forall (c :: Type -> Type) d a. (ControlPoint c, Domain d) => m c d -> (MapDescriptor d -> Ptr d -> IO a) -> IO a
- newMap1 :: (ControlPoint c, Domain d) => (d, d) -> [c d] -> IO (m c d)
- getMap1Components :: (ControlPoint c, Domain d) => m c d -> IO ((d, d), [c d])
- class Map2 (m :: (Type -> Type) -> Type -> Type) where
- withNewMap2 :: forall (c :: Type -> Type) d. (ControlPoint c, Domain d) => MapDescriptor d -> MapDescriptor d -> (Ptr d -> IO ()) -> IO (m c d)
- withMap2 :: forall (c :: Type -> Type) d a. (ControlPoint c, Domain d) => m c d -> (MapDescriptor d -> MapDescriptor d -> Ptr d -> IO a) -> IO a
- newMap2 :: (ControlPoint c, Domain d) => (d, d) -> (d, d) -> [[c d]] -> IO (m c d)
- getMap2Components :: (ControlPoint c, Domain d) => m c d -> IO ((d, d), (d, d), [[c d]])
- data MapDescriptor d = MapDescriptor (d, d) Stride Order NumComponents
- type Order = GLint
- autoNormal :: StateVar Capability
- evalMesh1 :: PolygonMode -> (GLint, GLint) -> IO ()
- evalMesh2 :: PolygonMode -> (GLint, GLint) -> (GLint, GLint) -> IO ()
- evalPoint1 :: GLint -> IO ()
- evalPoint2 :: (GLint, GLint) -> IO ()
- map1 :: forall m (c :: Type -> Type) d. (Map1 m, ControlPoint c, Domain d) => StateVar (Maybe (m c d))
- map2 :: forall m (c :: Type -> Type) d. (Map2 m, ControlPoint c, Domain d) => StateVar (Maybe (m c d))
- mapGrid1 :: Domain d => StateVar (GLint, (d, d))
- mapGrid2 :: Domain d => StateVar ((GLint, (d, d)), (GLint, (d, d)))
- maxOrder :: GettableStateVar Order
- data Face
- = Front
- | Back
- | FrontAndBack
- data FeedbackToken
- type ColorInfo = Either (Index1 GLint) (Color4 GLfloat)
- data FeedbackType
- newtype PassThroughValue = PassThroughValue GLfloat
- data VertexInfo
- getFeedbackTokens :: GLsizei -> FeedbackType -> IO a -> IO (a, Maybe [FeedbackToken])
- passThrough :: PassThroughValue -> IO ()
- finish :: IO ()
- flush :: IO ()
- data FogMode
- data FogDistanceMode
- class FogCoord a where
- data FogCoordSrc
- fog :: StateVar Capability
- fogColor :: StateVar (Color4 GLclampf)
- fogCoordSrc :: StateVar FogCoordSrc
- fogDistanceMode :: StateVar FogDistanceMode
- fogIndex :: StateVar (Index1 GLint)
- fogMode :: StateVar FogMode
- data AccumOp
- data ClearBuffer
- data ClearBufferCommand
- type DrawBufferIndex = GLuint
- accum :: AccumOp -> GLfloat -> IO ()
- accumBits :: GettableStateVar (Color4 GLsizei)
- auxBuffers :: GettableStateVar GLsizei
- clear :: [ClearBuffer] -> IO ()
- clearAccum :: StateVar (Color4 GLfloat)
- clearBuffer :: ClearBufferCommand -> IO ()
- clearColor :: StateVar (Color4 GLfloat)
- clearDepth :: StateVar GLdouble
- clearDepthf :: StateVar GLfloat
- clearIndex :: StateVar (Index1 GLfloat)
- clearNamedFramebuffer :: FramebufferObject -> ClearBufferCommand -> IO ()
- clearStencil :: StateVar GLint
- colorMask :: StateVar (Color4 Capability)
- colorMaski :: DrawBufferIndex -> StateVar (Color4 Capability)
- depthBits :: GettableStateVar GLsizei
- depthMask :: StateVar Capability
- doubleBuffer :: GettableStateVar Bool
- drawBuffer :: StateVar BufferMode
- drawBufferi :: DrawBufferIndex -> GettableStateVar BufferMode
- drawBuffers :: StateVar [BufferMode]
- indexMask :: StateVar GLuint
- invalidateFramebuffer :: FramebufferTarget -> [FramebufferObjectAttachment] -> IO ()
- invalidateNamedFramebufferData :: FramebufferObject -> [FramebufferObjectAttachment] -> IO ()
- invalidateNamedFramebufferSubData :: FramebufferObject -> [FramebufferObjectAttachment] -> (Position, Size) -> IO ()
- invalidateSubFramebuffer :: FramebufferTarget -> [FramebufferObjectAttachment] -> (Position, Size) -> IO ()
- maxDrawBuffers :: GettableStateVar GLsizei
- namedFramebufferDrawBuffer :: FramebufferObject -> SettableStateVar BufferMode
- namedFramebufferDrawBuffers :: FramebufferObject -> SettableStateVar [BufferMode]
- rgbaBits :: GettableStateVar (Color4 GLsizei)
- rgbaSignedComponents :: GettableStateVar (Color4 Bool)
- stencilBits :: GettableStateVar GLsizei
- stencilMask :: StateVar GLuint
- stencilMaskSeparate :: Face -> StateVar GLuint
- stereoBuffer :: GettableStateVar Bool
- framebufferRenderbuffer :: FramebufferTarget -> FramebufferObjectAttachment -> RenderbufferTarget -> RenderbufferObject -> IO ()
- framebufferTexture1D :: FramebufferTarget -> FramebufferObjectAttachment -> TextureTarget1D -> TextureObject -> Level -> IO ()
- framebufferTexture2D :: FramebufferTarget -> FramebufferObjectAttachment -> TextureTarget2D -> TextureObject -> Level -> IO ()
- framebufferTexture3D :: FramebufferTarget -> FramebufferObjectAttachment -> TextureTarget3D -> TextureObject -> Level -> GLint -> IO ()
- framebufferTextureLayer :: FramebufferTarget -> FramebufferObjectAttachment -> TextureObject -> Level -> GLint -> IO ()
- data FramebufferObject
- data FramebufferObjectAttachment
- class Show a => FramebufferAttachment a where
- marshalAttachment :: a -> Maybe GLenum
- unmarshalAttachment :: GLenum -> a
- unmarshalAttachmentSafe :: GLenum -> Maybe a
- fboaFromBufferMode :: BufferMode -> Maybe FramebufferObjectAttachment
- fboaToBufferMode :: FramebufferObjectAttachment -> Maybe BufferMode
- data FramebufferStatus
- bindFramebuffer :: FramebufferTarget -> StateVar FramebufferObject
- defaultFramebufferObject :: FramebufferObject
- framebufferStatus :: FramebufferTarget -> GettableStateVar FramebufferStatus
- data FramebufferTarget
- data AttachmentObjectType
- attachmentAlphaSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint
- attachmentBlueSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint
- attachmentDepthSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint
- attachmentGreenSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint
- attachmentObject :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar (Maybe (Either RenderbufferObject TextureObject))
- attachmentObjectType :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar (Maybe AttachmentObjectType)
- attachmentRedSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint
- attachmentStencilSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint
- attachmentTextureLayer :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint
- attachmentTextureLevel :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar Level
- attachmentTextureTextureTargetCubeMapFace :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar TextureTargetCubeMapFace
- renderbufferAlphaSize :: RenderbufferTarget -> GettableStateVar GLint
- renderbufferBlueSize :: RenderbufferTarget -> GettableStateVar GLint
- renderbufferDepthSize :: RenderbufferTarget -> GettableStateVar GLint
- renderbufferGreenSize :: RenderbufferTarget -> GettableStateVar GLint
- renderbufferHeight :: RenderbufferTarget -> GettableStateVar GLsizei
- renderbufferInternalFormat :: RenderbufferTarget -> GettableStateVar PixelInternalFormat
- renderbufferRedSize :: RenderbufferTarget -> GettableStateVar GLint
- renderbufferSamples :: RenderbufferTarget -> GettableStateVar Samples
- renderbufferStencilSize :: RenderbufferTarget -> GettableStateVar GLint
- renderbufferWidth :: RenderbufferTarget -> GettableStateVar GLsizei
- data RenderbufferObject
- data RenderbufferSize = RenderbufferSize !GLsizei !GLsizei
- bindRenderbuffer :: RenderbufferTarget -> StateVar RenderbufferObject
- noRenderbufferObject :: RenderbufferObject
- renderbufferStorage :: RenderbufferTarget -> PixelInternalFormat -> RenderbufferSize -> IO ()
- renderbufferStorageMultiSample :: RenderbufferTarget -> Samples -> PixelInternalFormat -> RenderbufferSize -> IO ()
- data RenderbufferTarget = Renderbuffer
- newtype Samples = Samples GLsizei
- data HintMode
- data HintTarget
- hint :: HintTarget -> StateVar HintMode
- aliasedLineWidthRange :: GettableStateVar (GLfloat, GLfloat)
- lineSmooth :: StateVar Capability
- lineStipple :: StateVar (Maybe (GLint, GLushort))
- lineWidth :: StateVar GLfloat
- smoothLineWidthGranularity :: GettableStateVar GLfloat
- smoothLineWidthRange :: GettableStateVar (GLfloat, GLfloat)
- class Storable c => MatrixComponent c where
- data LogicOp
- = Clear
- | And
- | AndReverse
- | Copy
- | AndInverted
- | Noop
- | Xor
- | Or
- | Nor
- | Equiv
- | Invert
- | OrReverse
- | CopyInverted
- | OrInverted
- | Nand
- | Set
- data BlendEquation
- data StencilOp
- = OpZero
- | OpKeep
- | OpReplace
- | OpIncr
- | OpIncrWrap
- | OpDecr
- | OpDecrWrap
- | OpInvert
- activeStencilFace :: StateVar (Maybe Face)
- alphaFunc :: StateVar (Maybe (ComparisonFunction, GLclampf))
- blend :: StateVar Capability
- blendBuffer :: DrawBufferIndex -> StateVar Capability
- blendColor :: StateVar (Color4 GLclampf)
- blendEquation :: StateVar BlendEquation
- blendEquationSeparate :: StateVar (BlendEquation, BlendEquation)
- blendFunc :: StateVar (BlendingFactor, BlendingFactor)
- blendFuncSeparate :: StateVar ((BlendingFactor, BlendingFactor), (BlendingFactor, BlendingFactor))
- depthBounds :: StateVar (Maybe (GLclampd, GLclampd))
- depthFunc :: StateVar (Maybe ComparisonFunction)
- discardingRasterizer :: IO a -> IO a
- dither :: StateVar Capability
- logicOp :: StateVar (Maybe LogicOp)
- rasterizerDiscard :: StateVar Capability
- sampleAlphaToCoverage :: StateVar Capability
- sampleAlphaToOne :: StateVar Capability
- sampleCoverage :: StateVar (Maybe (GLclampf, Bool))
- scissor :: StateVar (Maybe (Position, Size))
- stencilFunc :: StateVar (ComparisonFunction, GLint, GLuint)
- stencilFuncSeparate :: Face -> StateVar (ComparisonFunction, GLint, GLuint)
- stencilOp :: StateVar (StencilOp, StencilOp, StencilOp)
- stencilOpSeparate :: Face -> StateVar (StencilOp, StencilOp, StencilOp)
- stencilTest :: StateVar Capability
- data PixelData a = PixelData PixelFormat DataType (Ptr a)
- data PixelFormat
- = ColorIndex
- | StencilIndex
- | DepthComponent
- | DepthStencil
- | Red
- | Green
- | Blue
- | Alpha
- | RG
- | RGB
- | RGBA
- | Luminance
- | LuminanceAlpha
- | RedInteger
- | GreenInteger
- | BlueInteger
- | AlphaInteger
- | RGInteger
- | RGBInteger
- | RGBAInteger
- | BGRInteger
- | BGRAInteger
- | ABGR
- | BGR
- | BGRA
- | CMYK
- | CMYKA
- | FourTwoTwo
- | FourTwoTwoRev
- | FourTwoTwoAverage
- | FourTwoTwoRevAverage
- | YCBCR422
- data ColorTable
- data ColorTableStage
- data Proxy
- colorSubTable :: ColorTable -> GLsizei -> GLsizei -> PixelData a -> IO ()
- colorTable :: Proxy -> ColorTable -> PixelInternalFormat -> GLsizei -> PixelData a -> IO ()
- colorTableBias :: ColorTableStage -> StateVar (Color4 GLfloat)
- colorTableFormat :: ColorTable -> GettableStateVar PixelInternalFormat
- colorTableIntesitySize :: ColorTable -> GettableStateVar GLsizei
- colorTableLuminanceSize :: ColorTable -> GettableStateVar GLsizei
- colorTableRGBASizes :: ColorTable -> GettableStateVar (Color4 GLsizei)
- colorTableScale :: ColorTableStage -> StateVar (Color4 GLfloat)
- colorTableStage :: ColorTableStage -> StateVar Capability
- colorTableWidth :: ColorTable -> GettableStateVar GLsizei
- copyColorSubTable :: ColorTable -> GLsizei -> Position -> GLsizei -> IO ()
- copyColorTable :: ColorTable -> PixelInternalFormat -> Position -> GLsizei -> IO ()
- getColorTable :: ColorTable -> PixelData a -> IO ()
- data ConvolutionBorderMode
- data ConvolutionTarget
- convolution :: ConvolutionTarget -> StateVar Capability
- convolutionBorderMode :: ConvolutionTarget -> StateVar ConvolutionBorderMode
- convolutionFilter1D :: PixelInternalFormat -> GLsizei -> PixelData a -> IO ()
- convolutionFilter2D :: PixelInternalFormat -> Size -> PixelData a -> IO ()
- convolutionFilterBias :: ConvolutionTarget -> StateVar (Color4 GLfloat)
- convolutionFilterScale :: ConvolutionTarget -> StateVar (Color4 GLfloat)
- convolutionHeight :: ConvolutionTarget -> GettableStateVar GLsizei
- convolutionWidth :: ConvolutionTarget -> GettableStateVar GLsizei
- copyConvolutionFilter1D :: PixelInternalFormat -> Position -> GLsizei -> IO ()
- copyConvolutionFilter2D :: PixelInternalFormat -> Position -> Size -> IO ()
- getConvolutionFilter1D :: PixelData a -> IO ()
- getConvolutionFilter2D :: PixelData a -> IO ()
- getSeparableFilter2D :: PixelData a -> PixelData a -> IO ()
- maxConvolutionHeight :: ConvolutionTarget -> GettableStateVar GLsizei
- maxConvolutionWidth :: ConvolutionTarget -> GettableStateVar GLsizei
- separableFilter2D :: PixelInternalFormat -> Size -> PixelData a -> PixelData a -> IO ()
- getHistogram :: Reset -> PixelData a -> IO ()
- histogram :: Proxy -> StateVar (Maybe (GLsizei, PixelInternalFormat, Sink))
- histogramLuminanceSize :: Proxy -> GettableStateVar GLsizei
- histogramRGBASizes :: Proxy -> GettableStateVar (Color4 GLsizei)
- resetHistogram :: IO ()
- getMinmax :: Reset -> PixelData a -> IO ()
- minmax :: StateVar (Maybe (PixelInternalFormat, Sink))
- resetMinmax :: IO ()
- data PixelMapTarget
- data GLpixelmap a
- class PixelMap (m :: Type -> Type) where
- withNewPixelMap :: PixelMapComponent c => Int -> (Ptr c -> IO ()) -> IO (m c)
- withPixelMap :: PixelMapComponent c => m c -> (Int -> Ptr c -> IO a) -> IO a
- newPixelMap :: PixelMapComponent c => [c] -> IO (m c)
- getPixelMapComponents :: PixelMapComponent c => m c -> IO [c]
- class Storable c => PixelMapComponent c
- maxPixelMapTable :: GettableStateVar GLsizei
- pixelMap :: (PixelMap m, PixelMapComponent c) => PixelMapTarget -> StateVar (m c)
- pixelMapIToRGBA :: PixelMapComponent c => StateVar [Color4 c]
- pixelMapRGBAToRGBA :: PixelMapComponent c => StateVar [Color4 c]
- data PixelStoreDirection
- imageHeight :: PixelStoreDirection -> StateVar GLint
- lsbFirst :: PixelStoreDirection -> StateVar Bool
- rowAlignment :: PixelStoreDirection -> StateVar GLint
- rowLength :: PixelStoreDirection -> StateVar GLint
- skipImages :: PixelStoreDirection -> StateVar GLint
- skipPixels :: PixelStoreDirection -> StateVar GLint
- skipRows :: PixelStoreDirection -> StateVar GLint
- swapBytes :: PixelStoreDirection -> StateVar Bool
- data PixelTransferStage
- depthBias :: StateVar GLfloat
- depthScale :: StateVar GLfloat
- indexOffset :: StateVar GLint
- indexShift :: StateVar GLint
- mapColor :: StateVar Capability
- mapStencil :: StateVar Capability
- rgbaBias :: PixelTransferStage -> StateVar (Color4 GLfloat)
- rgbaScale :: PixelTransferStage -> StateVar (Color4 GLfloat)
- drawPixels :: Size -> PixelData a -> IO ()
- pixelZoom :: StateVar (GLfloat, GLfloat)
- data Reset
- data Sink
- = PassThrough
- | Sink
- data PixellikeObjectGetPName
- class PixellikeObjectTarget t where
- aliasedPointSizeRange :: GettableStateVar (GLfloat, GLfloat)
- pointDistanceAttenuation :: StateVar (GLfloat, GLfloat, GLfloat)
- pointFadeThresholdSize :: StateVar GLfloat
- pointSize :: StateVar GLfloat
- pointSizeRange :: StateVar (GLfloat, GLfloat)
- pointSmooth :: StateVar Capability
- pointSprite :: StateVar Capability
- smoothPointSizeGranularity :: GettableStateVar GLfloat
- smoothPointSizeRange :: GettableStateVar (GLfloat, GLfloat)
- vertexProgramPointSize :: StateVar Capability
- data PolygonMode
- data GLpolygonstipple
- class PolygonStipple s where
- withNewPolygonStipple :: (Ptr GLubyte -> IO ()) -> IO s
- withPolygonStipple :: s -> (Ptr GLubyte -> IO a) -> IO a
- newPolygonStipple :: [GLubyte] -> IO s
- getPolygonStippleComponents :: s -> IO [GLubyte]
- cullFace :: StateVar (Maybe Face)
- polygonMode :: StateVar (PolygonMode, PolygonMode)
- polygonOffset :: StateVar (GLfloat, GLfloat)
- polygonOffsetFill :: StateVar Capability
- polygonOffsetLine :: StateVar Capability
- polygonOffsetPoint :: StateVar Capability
- polygonSmooth :: StateVar Capability
- polygonStipple :: PolygonStipple s => StateVar (Maybe s)
- data PrimitiveMode
- maxPatchVertices :: GettableStateVar GLsizei
- maxTessGenLevel :: GettableStateVar GLsizei
- patchDefaultInnerLevel :: StateVar (GLfloat, GLfloat)
- patchDefaultOuterLevel :: StateVar (GLfloat, GLfloat, GLfloat, GLfloat)
- patchVertices :: StateVar GLsizei
- data QueryObject
- data QueryTarget
- type QueryIndex = GLuint
- class Storable a => QueryResult a
- beginQuery :: QueryTarget -> QueryObject -> IO ()
- currentQuery :: QueryTarget -> GettableStateVar (Maybe QueryObject)
- endQuery :: QueryTarget -> IO ()
- maxVertexStreams :: GettableStateVar QueryIndex
- queryCounterBits :: QueryTarget -> GettableStateVar GLsizei
- queryResult :: QueryResult a => QueryObject -> GettableStateVar a
- queryResultAvailable :: QueryObject -> GettableStateVar Bool
- timestamp :: GettableStateVar GLuint64
- timestampQuery :: QueryObject -> IO ()
- withQuery :: QueryTarget -> QueryObject -> IO a -> IO a
- maxLabelLength :: GettableStateVar GLsizei
- class RasterPos a where
- rasterPos :: a -> IO ()
- rasterPosv :: Ptr a -> IO ()
- class RasterPosComponent a
- class WindowPos a where
- windowPos :: a -> IO ()
- windowPosv :: Ptr a -> IO ()
- class WindowPosComponent a
- currentRasterColor :: GettableStateVar (Color4 GLfloat)
- currentRasterDistance :: GettableStateVar GLfloat
- currentRasterIndex :: GettableStateVar (Index1 GLint)
- currentRasterPosition :: StateVar (Vertex4 GLfloat)
- currentRasterPositionValid :: GettableStateVar Bool
- currentRasterSecondaryColor :: GettableStateVar (Color4 GLfloat)
- currentRasterTexCoords :: GettableStateVar (TexCoord4 GLfloat)
- rasterPositionUnclipped :: StateVar Capability
- data BlitBuffer
- data PixelCopyType
- blitFramebuffer :: Position -> Position -> Position -> Position -> [BlitBuffer] -> TextureFilter -> IO ()
- copyPixels :: Position -> Size -> PixelCopyType -> IO ()
- readBuffer :: StateVar BufferMode
- readPixels :: Position -> Size -> PixelData a -> IO ()
- class Rect a where
- data RenderMode
- renderMode :: GettableStateVar RenderMode
- data ServerAttributeGroup
- = CurrentAttributes
- | PointAttributes
- | LineAttributes
- | PolygonAttributes
- | PolygonStippleAttributes
- | PixelModeAttributes
- | LightingAttributes
- | FogAttributes
- | DepthBufferAttributes
- | AccumBufferAttributes
- | StencilBufferAttributes
- | ViewportAttributes
- | TransformAttributes
- | EnableAttributes
- | ColorBufferAttributes
- | HintAttributes
- | EvalAttributes
- | ListAttributes
- | TextureAttributes
- | ScissorAttributes
- | MultisampleAttributes
- | AllServerAttributes
- data ClientAttributeGroup
- preservingAttrib :: [ServerAttributeGroup] -> IO a -> IO a
- preservingClientAttrib :: [ClientAttributeGroup] -> IO a -> IO a
- data HitRecord = HitRecord GLfloat GLfloat [Name]
- newtype Name = Name GLuint
- getHitRecords :: GLsizei -> IO a -> IO (a, Maybe [HitRecord])
- loadName :: Name -> IO ()
- maxNameStackDepth :: GettableStateVar GLsizei
- nameStackDepth :: GettableStateVar GLsizei
- withName :: Name -> IO a -> IO a
- activeAttribs :: Program -> GettableStateVar [(GLint, VariableType, String)]
- attribLocation :: Program -> String -> StateVar AttribLocation
- maxCombinedTextureImageUnits :: GettableStateVar GLsizei
- maxFragmentUniformComponents :: GettableStateVar GLsizei
- maxTextureCoords :: GettableStateVar GLsizei
- maxTextureImageUnits :: GettableStateVar GLsizei
- maxVaryingFloats :: GettableStateVar GLsizei
- maxVertexAttribs :: GettableStateVar GLsizei
- maxVertexTextureImageUnits :: GettableStateVar GLsizei
- maxVertexUniformComponents :: GettableStateVar GLsizei
- data Program
- data ProgramBinary = ProgramBinary ProgramBinaryFormat ByteString
- newtype ProgramBinaryFormat = ProgramBinaryFormat GLenum
- programBinary :: Program -> StateVar ProgramBinary
- programBinaryFormats :: GettableStateVar [ProgramBinaryFormat]
- attachShader :: Program -> Shader -> IO ()
- attachedShaders :: Program -> StateVar [Shader]
- bindFragDataLocation :: Program -> String -> SettableStateVar DrawBufferIndex
- createProgram :: IO Program
- currentProgram :: StateVar (Maybe Program)
- detachShader :: Program -> Shader -> IO ()
- getFragDataLocation :: Program -> String -> IO (Maybe DrawBufferIndex)
- linkProgram :: Program -> IO ()
- linkStatus :: Program -> GettableStateVar Bool
- programBinaryRetrievableHint :: Program -> StateVar Bool
- programDeleteStatus :: Program -> GettableStateVar Bool
- programInfoLog :: Program -> GettableStateVar String
- programSeparable :: Program -> StateVar Bool
- validateProgram :: Program -> IO ()
- validateStatus :: Program -> GettableStateVar Bool
- data Shader
- data ShaderBinary = ShaderBinary ShaderBinaryFormat ByteString
- newtype ShaderBinaryFormat = ShaderBinaryFormat GLenum
- shaderBinary :: [Shader] -> SettableStateVar ShaderBinary
- shaderBinaryFormats :: GettableStateVar [ShaderBinaryFormat]
- data ShaderType
- data PrecisionType
- compileShader :: Shader -> IO ()
- compileStatus :: Shader -> GettableStateVar Bool
- createShader :: ShaderType -> IO Shader
- releaseShaderCompiler :: IO ()
- shaderCompiler :: GettableStateVar Bool
- shaderDeleteStatus :: Shader -> GettableStateVar Bool
- shaderInfoLog :: Shader -> GettableStateVar String
- shaderPrecisionFormat :: ShaderType -> PrecisionType -> GettableStateVar ((GLint, GLint), GLint)
- shaderSource :: Shader -> StateVar [String]
- shaderSourceBS :: Shader -> StateVar ByteString
- shaderType :: Shader -> GettableStateVar ShaderType
- class Uniform a where
- uniform :: UniformLocation -> StateVar a
- uniformv :: UniformLocation -> GLsizei -> Ptr a -> IO ()
- class Storable a => UniformComponent a
- newtype UniformLocation = UniformLocation GLint
- activeUniforms :: Program -> GettableStateVar [(GLint, VariableType, String)]
- uniformLocation :: Program -> String -> GettableStateVar UniformLocation
- data ContextProfile'
- contextProfile :: GettableStateVar [ContextProfile']
- extensionSupported :: String -> GettableStateVar Bool
- glExtensions :: GettableStateVar [String]
- glVersion :: GettableStateVar String
- majorMinor :: GettableStateVar String -> GettableStateVar (Int, Int)
- renderer :: GettableStateVar String
- shadingLanguageVersion :: GettableStateVar String
- vendor :: GettableStateVar String
- data WaitResult
- data SyncStatus
- data WaitFlag = SyncFlushCommands
- data SyncObject
- type WaitTimeout = GLuint64
- clientWaitSync :: SyncObject -> [WaitFlag] -> WaitTimeout -> IO WaitResult
- maxServerWaitTimeout :: GettableStateVar WaitTimeout
- syncGpuCommandsComplete :: IO SyncObject
- syncStatus :: SyncObject -> GettableStateVar SyncStatus
- waitSync :: SyncObject -> IO ()
- newtype Vector1 a = Vector1 a
- data Vector2 a = Vector2 !a !a
- data Vector3 a = Vector3 !a !a !a
- data Vector4 a = Vector4 !a !a !a !a
- newtype Vertex1 a = Vertex1 a
- data Vertex2 a = Vertex2 !a !a
- data Vertex4 a = Vertex4 !a !a !a !a
- texture :: ParameterizedTextureTarget t => t -> StateVar Capability
- data TextureCombineFunction
- data TextureFunction
- data Arg = Arg BlendingFactor Src
- data ArgNum
- data Src
- alphaScale :: StateVar GLfloat
- argAlpha :: ArgNum -> StateVar Arg
- argRGB :: ArgNum -> StateVar Arg
- combineAlpha :: StateVar TextureCombineFunction
- combineRGB :: StateVar TextureCombineFunction
- constantColor :: StateVar (Color4 GLfloat)
- rgbScale :: StateVar GLfloat
- textureFunction :: StateVar TextureFunction
- textureUnitLODBias :: StateVar LOD
- data TextureFilter
- type MagnificationFilter = TextureFilter
- type MinificationFilter = (TextureFilter, Maybe TextureFilter)
- type TexturePriority = GLclampf
- areTexturesResident :: [TextureObject] -> IO ([TextureObject], [TextureObject])
- generateMipmap' :: ParameterizedTextureTarget t => t -> IO ()
- prioritizeTextures :: [(TextureObject, TexturePriority)] -> IO ()
- textureBinding :: BindableTextureTarget t => t -> StateVar (Maybe TextureObject)
- texturePriority :: ParameterizedTextureTarget t => t -> StateVar TexturePriority
- textureResident :: ParameterizedTextureTarget t => t -> GettableStateVar Bool
- data Clamping
- data TextureCompareOperator
- type LOD = GLfloat
- data Repetition
- depthTextureMode :: ParameterizedTextureTarget t => t -> StateVar PixelInternalFormat
- generateMipmap :: ParameterizedTextureTarget t => t -> StateVar Capability
- maxTextureLODBias :: GettableStateVar LOD
- maxTextureMaxAnisotropy :: GettableStateVar GLfloat
- textureBorderColor :: ParameterizedTextureTarget t => t -> StateVar (Color4 GLfloat)
- textureCompareFailValue :: ParameterizedTextureTarget t => t -> StateVar GLclampf
- textureCompareMode :: ParameterizedTextureTarget t => t -> StateVar (Maybe ComparisonFunction)
- textureCompareOperator :: ParameterizedTextureTarget t => t -> StateVar (Maybe TextureCompareOperator)
- textureFilter :: ParameterizedTextureTarget t => t -> StateVar (MinificationFilter, MagnificationFilter)
- textureLODRange :: ParameterizedTextureTarget t => t -> StateVar (LOD, LOD)
- textureLevelRange :: ParameterizedTextureTarget t => t -> StateVar (Level, Level)
- textureMaxAnisotropy :: ParameterizedTextureTarget t => t -> StateVar GLfloat
- textureObjectLODBias :: ParameterizedTextureTarget t => t -> StateVar LOD
- textureWrapMode :: ParameterizedTextureTarget t => t -> TextureCoordName -> StateVar (Repetition, Clamping)
- data PixelInternalFormat
- = Alpha'
- | DepthComponent'
- | Luminance'
- | LuminanceAlpha'
- | Intensity
- | R8
- | R16
- | RG8
- | RG16
- | RGB'
- | RGBA'
- | SRGB
- | SRGBAlpha
- | SLuminance
- | SLuminanceAlpha
- | Alpha4
- | Alpha8
- | Alpha12
- | Alpha16
- | DepthComponent16
- | DepthComponent24
- | DepthComponent32
- | Luminance4
- | Luminance8
- | Luminance12
- | Luminance16
- | Luminance4Alpha4
- | Luminance6Alpha2
- | Luminance8Alpha8
- | Luminance12Alpha4
- | Luminance12Alpha12
- | Luminance16Alpha16
- | Intensity4
- | Intensity8
- | Intensity12
- | Intensity16
- | R3G3B2
- | RGB4
- | RGB5
- | RGB8
- | RGB10
- | RGB12
- | RGB16
- | RGBA2
- | RGBA4
- | RGB5A1
- | RGBA8
- | RGB10A2
- | RGBA12
- | RGBA16
- | SRGB8
- | SRGB8Alpha8
- | R16F
- | RG16F
- | RGB16F
- | RGBA16F
- | R32F
- | RG32F
- | RGB32F
- | RGBA32F
- | R8I
- | R8UI
- | R16I
- | R16UI
- | R32I
- | R32UI
- | RG8I
- | RG8UI
- | RG16I
- | RG16UI
- | RG32I
- | RG32UI
- | RGB8I
- | RGB8UI
- | RGB16I
- | RGB16UI
- | RGB32I
- | RGB32UI
- | RGBA8I
- | RGBA8UI
- | RGBA16I
- | RGBA16UI
- | RGBA32I
- | RGBA32UI
- | SLuminance8
- | SLuminance8Alpha8
- | CompressedAlpha
- | CompressedLuminance
- | CompressedLuminanceAlpha
- | CompressedIntensity
- | CompressedRed
- | CompressedRG
- | CompressedRGB
- | CompressedRGBA
- | CompressedSRGB
- | CompressedSRGBAlpha
- | CompressedSLuminance
- | CompressedSLuminanceAlpha
- | CompressedRedRGTC1
- | CompressedSignedRedRGTC1
- | CompressedRG_RGTC2
- | CompressedSignedRG_RGTC2
- | DepthComponent32f
- | Depth32fStencil8
- | RGB9E5
- | R11fG11fB10f
- | StencilIndex1
- | StencilIndex4
- | StencilIndex8
- | StencilIndex16
- | RGBS3TC
- | RGB4S3TC
- | RGBAS3TC
- | RGBA4S3TC
- | RGBADXT5S3TC
- | RGBA4DXT5S3TC
- | CompressedRGBAS3TCDXT1
- | CompressedRGBAS3TCDXT3
- | CompressedRGBAS3TCDXT5
- | CompressedRGBS3TCDXT1
- | Alpha32F
- | Intensity32F
- | Luminance32F
- | LuminanceAlpha32F
- | Alpha16F
- | Intensity16F
- | Luminance16F
- | LuminanceAlpha16F
- | Depth24Stencil8
- type TextureQuery t a = t -> Level -> GettableStateVar a
- textureBorder :: QueryableTextureTarget t => TextureQuery t Border
- textureCompressedImageSize :: QueryableTextureTarget t => TextureQuery t (Maybe GLsizei)
- textureDepthBits :: QueryableTextureTarget t => TextureQuery t GLsizei
- textureDepthType :: QueryableTextureTarget t => TextureQuery t (Maybe DataRepresentation)
- textureIndexSize :: QueryableTextureTarget t => TextureQuery t GLsizei
- textureIntensitySize :: QueryableTextureTarget t => TextureQuery t GLsizei
- textureIntensityType :: QueryableTextureTarget t => TextureQuery t (Maybe DataRepresentation)
- textureInternalFormat :: QueryableTextureTarget t => TextureQuery t PixelInternalFormat
- textureLuminanceSize :: QueryableTextureTarget t => TextureQuery t GLsizei
- textureLuminanceType :: QueryableTextureTarget t => TextureQuery t (Maybe DataRepresentation)
- textureProxyOK :: ParameterizedTextureTarget t => TextureQuery t Bool
- textureRGBASizes :: QueryableTextureTarget t => TextureQuery t (Color4 GLsizei)
- textureRGBATypes :: QueryableTextureTarget t => TextureQuery t (Color4 (Maybe DataRepresentation))
- textureSharedSize :: QueryableTextureTarget t => TextureQuery t GLsizei
- textureSize1D :: TextureQuery TextureTarget1D TextureSize1D
- textureSize2D :: TextureQuery TextureTarget2D TextureSize2D
- textureSize3D :: TextureQuery TextureTarget3D TextureSize3D
- type Border = GLint
- data CompressedPixelData a = CompressedPixelData !CompressedTextureFormat GLsizei (Ptr a)
- newtype CompressedTextureFormat = CompressedTextureFormat GLenum
- data SampleLocations
- type Level = GLint
- newtype TexturePosition1D = TexturePosition1D GLint
- data TexturePosition2D = TexturePosition2D !GLint !GLint
- data TexturePosition3D = TexturePosition3D !GLint !GLint !GLint
- newtype TextureSize1D = TextureSize1D GLsizei
- data TextureSize2D = TextureSize2D !GLsizei !GLsizei
- data TextureSize3D = TextureSize3D !GLsizei !GLsizei !GLsizei
- compressedTexImage1D :: OneDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize1D -> Border -> CompressedPixelData a -> IO ()
- compressedTexImage2D :: TwoDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize2D -> Border -> CompressedPixelData a -> IO ()
- compressedTexImage3D :: ThreeDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize3D -> Border -> CompressedPixelData a -> IO ()
- compressedTexSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> TextureSize1D -> CompressedPixelData a -> IO ()
- compressedTexSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> TextureSize2D -> CompressedPixelData a -> IO ()
- compressedTexSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> TextureSize3D -> CompressedPixelData a -> IO ()
- compressedTextureFormats :: GettableStateVar [CompressedTextureFormat]
- copyTexImage1D :: OneDimensionalTextureTarget t => t -> Level -> PixelInternalFormat -> Position -> TextureSize1D -> Border -> IO ()
- copyTexImage2D :: TwoDimensionalTextureTarget t => t -> Level -> PixelInternalFormat -> Position -> TextureSize2D -> Border -> IO ()
- copyTexSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> Position -> TextureSize1D -> IO ()
- copyTexSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> Position -> TextureSize2D -> IO ()
- copyTexSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> Position -> TextureSize2D -> IO ()
- getCompressedTexImage :: GettableTextureTarget t => t -> Level -> Ptr a -> IO ()
- getTexImage :: GettableTextureTarget t => t -> Level -> PixelData a -> IO ()
- max3DTextureSize :: GettableStateVar GLsizei
- maxArrayTextureLayers :: GettableStateVar GLsizei
- maxColorTextureSamples :: GettableStateVar GLsizei
- maxCubeMapTextureSize :: GettableStateVar GLsizei
- maxDepthTextureSamples :: GettableStateVar GLsizei
- maxIntegerSamples :: GettableStateVar GLsizei
- maxRectangleTextureSize :: GettableStateVar GLsizei
- maxSampleMaskWords :: GettableStateVar GLsizei
- maxTextureSize :: GettableStateVar GLsizei
- texImage1D :: OneDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize1D -> Border -> PixelData a -> IO ()
- texImage2D :: TwoDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize2D -> Border -> PixelData a -> IO ()
- texImage2DMultisample :: TextureTarget2DMultisample -> Proxy -> Samples -> PixelInternalFormat -> TextureSize2D -> SampleLocations -> IO ()
- texImage3D :: ThreeDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize3D -> Border -> PixelData a -> IO ()
- texImage3DMultisample :: TextureTarget2DMultisampleArray -> Proxy -> Samples -> PixelInternalFormat -> TextureSize3D -> SampleLocations -> IO ()
- texSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> TextureSize1D -> PixelData a -> IO ()
- texSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> TextureSize2D -> PixelData a -> IO ()
- texSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> TextureSize3D -> PixelData a -> IO ()
- newtype TextureObject = TextureObject GLuint
- class BindableTextureTarget t
- class GettableTextureTarget t
- class OneDimensionalTextureTarget t
- class ParameterizedTextureTarget t
- class QueryableTextureTarget t
- data TextureTarget1D = Texture1D
- data TextureTarget2D
- data TextureTarget3D
- data TextureTarget2DMultisample = Texture2DMultisample
- data TextureTarget2DMultisampleArray = Texture2DMultisampleArray
- data TextureTargetBuffer = TextureBuffer'
- data TextureTargetCubeMap = TextureCubeMap
- data TextureTargetCubeMapFace
- class ThreeDimensionalTextureTarget t
- class TwoDimensionalTextureTarget t
- newtype TextureUnit = TextureUnit GLuint
- data TransformFeedbackBufferMode
- beginTransformFeedback :: PrimitiveMode -> IO ()
- endTransformFeedback :: IO ()
- marshalTransformFeedbackBufferMode :: TransformFeedbackBufferMode -> GLenum
- maxTransformFeedbackInterleavedComponents :: GettableStateVar GLint
- maxTransformFeedbackSeparateAttribs :: GettableStateVar GLint
- maxTransformFeedbackSeparateComponents :: GettableStateVar GLint
- setTransformFeedbackVaryings :: Program -> [String] -> TransformFeedbackBufferMode -> IO ()
- transformFeedbackBufferMode :: Program -> GettableStateVar TransformFeedbackBufferMode
- transformFeedbackVaryings :: Program -> GettableStateVar [(GLint, DataType, String)]
- unmarshalTransformFeedbackBufferMode :: GLenum -> TransformFeedbackBufferMode
- data VertexArrayObject
- bindVertexArrayObject :: StateVar (Maybe VertexArrayObject)
- type ArrayIndex = GLint
- type BaseInstance = GLuint
- type BaseVertex = GLint
- data InterleavedArrays
- = V2f
- | V3f
- | C4ubV2f
- | C4ubV3f
- | C3fV3f
- | N3fV3f
- | C4fN3fV3f
- | T2fV3f
- | T4fV4f
- | T2fC4ubV3f
- | T2fC3fV3f
- | T2fN3fV3f
- | T2fC4fN3fV3f
- | T4fC4fN3fV4f
- data ClientArrayType
- type NumArrayIndices = GLsizei
- type NumComponents = GLint
- type NumIndexBlocks = GLsizei
- type NumInstances = GLsizei
- type Stride = GLsizei
- data VertexArrayDescriptor a = VertexArrayDescriptor !NumComponents !DataType !Stride !(Ptr a)
- arrayElement :: ArrayIndex -> IO ()
- arrayPointer :: ClientArrayType -> StateVar (VertexArrayDescriptor a)
- clientActiveTexture :: StateVar TextureUnit
- clientState :: ClientArrayType -> StateVar Capability
- drawArrays :: PrimitiveMode -> ArrayIndex -> NumArrayIndices -> IO ()
- drawArraysInstanced :: PrimitiveMode -> ArrayIndex -> NumArrayIndices -> NumInstances -> IO ()
- drawArraysInstancedBaseInstance :: PrimitiveMode -> ArrayIndex -> NumArrayIndices -> NumInstances -> BaseInstance -> IO ()
- drawElements :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> IO ()
- drawElementsBaseVertex :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> BaseVertex -> IO ()
- drawElementsInstanced :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> NumInstances -> IO ()
- drawElementsInstancedBaseInstance :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> NumInstances -> BaseInstance -> IO ()
- drawElementsInstancedBaseVertex :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> NumInstances -> BaseVertex -> IO ()
- drawElementsInstancedBaseVertexBaseInstance :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> NumInstances -> BaseVertex -> BaseInstance -> IO ()
- drawRangeElements :: PrimitiveMode -> (ArrayIndex, ArrayIndex) -> NumArrayIndices -> DataType -> Ptr a -> IO ()
- drawRangeElementsBaseVertex :: PrimitiveMode -> (ArrayIndex, ArrayIndex) -> NumArrayIndices -> DataType -> Ptr a -> BaseVertex -> IO ()
- interleavedArrays :: InterleavedArrays -> Stride -> Ptr a -> IO ()
- lockArrays :: StateVar (Maybe (ArrayIndex, NumArrayIndices))
- maxElementsIndices :: GettableStateVar NumArrayIndices
- maxElementsVertices :: GettableStateVar NumArrayIndices
- multiDrawArrays :: PrimitiveMode -> Ptr ArrayIndex -> Ptr NumArrayIndices -> NumIndexBlocks -> IO ()
- multiDrawElements :: PrimitiveMode -> Ptr NumArrayIndices -> DataType -> Ptr (Ptr a) -> NumIndexBlocks -> IO ()
- multiDrawElementsBaseVertex :: PrimitiveMode -> Ptr NumArrayIndices -> DataType -> Ptr (Ptr a) -> NumIndexBlocks -> Ptr BaseVertex -> IO ()
- primitiveRestartIndex :: StateVar (Maybe ArrayIndex)
- primitiveRestartIndexNV :: StateVar (Maybe ArrayIndex)
- vertexAttribArray :: AttribLocation -> StateVar Capability
- vertexAttribPointer :: AttribLocation -> StateVar (IntegerHandling, VertexArrayDescriptor a)
- data Color4 a = Color4 !a !a !a !a
- newtype FogCoord1 a = FogCoord1 a
- data Normal3 a = Normal3 !a !a !a
- newtype TexCoord1 a = TexCoord1 a
- data TexCoord2 a = TexCoord2 !a !a
- data TexCoord3 a = TexCoord3 !a !a !a
- data TexCoord4 a = TexCoord4 !a !a !a !a
- class ColorComponent a
- class FogCoordComponent a
- class Index a where
- class IndexComponent a
- data IntegerHandling
- class Normal a where
- class NormalComponent a
- class SecondaryColor a where
- secondaryColor :: a -> IO ()
- secondaryColorv :: Ptr a -> IO ()
- class TexCoord a where
- texCoord :: a -> IO ()
- texCoordv :: Ptr a -> IO ()
- multiTexCoord :: TextureUnit -> a -> IO ()
- multiTexCoordv :: TextureUnit -> Ptr a -> IO ()
- class TexCoordComponent a
- class Vertex a where
- class VertexAttrib a where
- vertexAttrib :: IntegerHandling -> AttribLocation -> a -> IO ()
- vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr a -> IO ()
- class (Storable a, Num a) => VertexAttribComponent a where
- vertexAttrib1 :: AttribLocation -> a -> IO ()
- vertexAttrib2 :: AttribLocation -> a -> a -> IO ()
- vertexAttrib3 :: AttribLocation -> a -> a -> a -> IO ()
- vertexAttrib4 :: AttribLocation -> a -> a -> a -> a -> IO ()
- vertexAttrib1N :: AttribLocation -> a -> IO ()
- vertexAttrib2N :: AttribLocation -> a -> a -> IO ()
- vertexAttrib3N :: AttribLocation -> a -> a -> a -> IO ()
- vertexAttrib4N :: AttribLocation -> a -> a -> a -> a -> IO ()
- vertexAttrib1I :: AttribLocation -> a -> IO ()
- vertexAttrib2I :: AttribLocation -> a -> a -> IO ()
- vertexAttrib3I :: AttribLocation -> a -> a -> a -> IO ()
- vertexAttrib4I :: AttribLocation -> a -> a -> a -> a -> IO ()
- vertexAttrib1v :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib2v :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib3v :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib4v :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib1Nv :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib2Nv :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib3Nv :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib4Nv :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib1Iv :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib2Iv :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib3Iv :: AttribLocation -> Ptr a -> IO ()
- vertexAttrib4Iv :: AttribLocation -> Ptr a -> IO ()
- class VertexComponent a
- currentColor :: StateVar (Color4 GLfloat)
- currentFogCoord :: StateVar (FogCoord1 GLfloat)
- currentIndex :: StateVar (Index1 GLint)
- currentNormal :: StateVar (Normal3 GLfloat)
- currentSecondaryColor :: StateVar (Color3 GLfloat)
- currentTextureCoords :: StateVar (TexCoord4 GLfloat)
- currentVertexAttrib :: AttribLocation -> StateVar (Vertex4 GLfloat)
- currentVertexAttribI :: AttribLocation -> StateVar (Vertex4 GLint)
- currentVertexAttribIu :: AttribLocation -> StateVar (Vertex4 GLuint)
- maxTextureUnit :: GettableStateVar TextureUnit
- rgbaMode :: GettableStateVar Bool
- data ErrorCategory
- gluExtensions :: GettableStateVar [String]
- gluVersion :: GettableStateVar String
- lookAt :: Vertex3 GLdouble -> Vertex3 GLdouble -> Vector3 GLdouble -> IO ()
- ortho2D :: GLdouble -> GLdouble -> GLdouble -> GLdouble -> IO ()
- perspective :: GLdouble -> GLdouble -> GLdouble -> GLdouble -> IO ()
- pickMatrix :: (GLdouble, GLdouble) -> (GLdouble, GLdouble) -> (Position, Size) -> IO ()
- project :: Matrix m => Vertex3 GLdouble -> m GLdouble -> m GLdouble -> (Position, Size) -> IO (Vertex3 GLdouble)
- unProject :: Matrix m => Vertex3 GLdouble -> m GLdouble -> m GLdouble -> (Position, Size) -> IO (Vertex3 GLdouble)
- unProject4 :: Matrix m => Vertex4 GLdouble -> m GLdouble -> m GLdouble -> (Position, Size) -> GLclampd -> GLclampd -> IO (Vertex4 GLdouble)
- build1DMipmaps :: TextureTarget1D -> PixelInternalFormat -> GLsizei -> PixelData a -> IO ()
- build2DMipmaps :: TextureTarget2D -> PixelInternalFormat -> GLsizei -> GLsizei -> PixelData a -> IO ()
- scaleImage :: Size -> PixelData a -> Size -> PixelData b -> IO ()
- data DisplayMode'
- data SamplingMethod
- type NURBSBeginCallback = PrimitiveMode -> IO ()
- type NURBSColorCallback = Color4 GLfloat -> IO ()
- type NURBSEndCallback = IO ()
- data NURBSMode
- type NURBSNormalCallback = Normal3 GLfloat -> IO ()
- type NURBSObj = Ptr GLUnurbs
- type NURBSVertexCallback = Vertex3 GLfloat -> IO ()
- class TrimmingPoint (p :: Type -> Type)
- checkForNURBSError :: NURBSObj -> IO a -> IO a
- loadSamplingMatrices :: (Matrix m1, Matrix m2) => NURBSObj -> Maybe (m1 GLfloat, m2 GLfloat, (Position, Size)) -> IO ()
- nurbsBeginEndCurve :: NURBSObj -> IO a -> IO a
- nurbsBeginEndSurface :: NURBSObj -> IO a -> IO a
- nurbsBeginEndTrim :: NURBSObj -> IO a -> IO a
- nurbsCurve :: ControlPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr (c GLfloat) -> GLint -> IO ()
- nurbsSurface :: ControlPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr GLfloat -> GLint -> GLint -> Ptr (c GLfloat) -> GLint -> GLint -> IO ()
- pwlCurve :: TrimmingPoint p => NURBSObj -> GLint -> Ptr (p GLfloat) -> GLint -> IO ()
- setDisplayMode' :: NURBSObj -> DisplayMode' -> IO ()
- setNURBSCulling :: NURBSObj -> Capability -> IO ()
- setNURBSMode :: NURBSObj -> NURBSMode -> IO ()
- setSamplingMethod :: NURBSObj -> SamplingMethod -> IO ()
- trimmingCurve :: TrimmingPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr (c GLfloat) -> GLint -> IO ()
- withNURBSBeginCallback :: NURBSObj -> NURBSBeginCallback -> IO a -> IO a
- withNURBSColorCallback :: NURBSObj -> NURBSColorCallback -> IO a -> IO a
- withNURBSEndCallback :: NURBSObj -> NURBSEndCallback -> IO a -> IO a
- withNURBSNormalCallback :: NURBSObj -> NURBSNormalCallback -> IO a -> IO a
- withNURBSObj :: a -> (NURBSObj -> IO a) -> IO a
- withNURBSVertexCallback :: NURBSObj -> NURBSVertexCallback -> IO a -> IO a
- type Angle = GLdouble
- data QuadricPrimitive
- data QuadricDrawStyle
- data QuadricTexture
- data QuadricOrientation
- type Loops = GLint
- type QuadricNormal = Maybe ShadingModel
- data QuadricStyle = QuadricStyle QuadricNormal QuadricTexture QuadricOrientation QuadricDrawStyle
- renderQuadric :: QuadricStyle -> QuadricPrimitive -> IO ()
- data AnnotatedVertex v = AnnotatedVertex (Vertex3 GLdouble) v
- type Combiner v = Vertex3 GLdouble -> WeightedProperties v -> v
- newtype ComplexContour v = ComplexContour [AnnotatedVertex v]
- newtype ComplexPolygon v = ComplexPolygon [ComplexContour v]
- newtype PolygonContours v = PolygonContours [SimpleContour v]
- data Primitive v = Primitive PrimitiveMode [AnnotatedVertex v]
- newtype SimpleContour v = SimpleContour [AnnotatedVertex v]
- newtype SimplePolygon v = SimplePolygon [Primitive v]
- data TessWinding
- type Tessellator (p :: Type -> Type) v = TessWinding -> Tolerance -> Normal3 GLdouble -> Combiner v -> ComplexPolygon v -> IO (p v)
- type Tolerance = GLdouble
- data Triangle v = Triangle (TriangleVertex v) (TriangleVertex v) (TriangleVertex v)
- type TriangleVertex v = AnnotatedVertex (v, EdgeFlag)
- newtype Triangulation v = Triangulation [Triangle v]
- data WeightedProperties v = WeightedProperties (GLfloat, v) (GLfloat, v) (GLfloat, v) (GLfloat, v)
- extractContours :: Storable v => Tessellator PolygonContours v
- tessellate :: Storable v => Tessellator SimplePolygon v
- triangulate :: Storable v => Tessellator Triangulation v
- makeGLDEBUGPROC :: GLDEBUGPROCFunc -> IO (FunPtr GLDEBUGPROCFunc)
- makeGLDEBUGPROCAMD :: GLDEBUGPROCAMDFunc -> IO (FunPtr GLDEBUGPROCAMDFunc)
- makeGLDEBUGPROCARB :: GLDEBUGPROCARBFunc -> IO (FunPtr GLDEBUGPROCARBFunc)
- makeGLDEBUGPROCKHR :: GLDEBUGPROCKHRFunc -> IO (FunPtr GLDEBUGPROCKHRFunc)
- mkGLDEBUGPROC :: GLDEBUGPROCFunc -> IO (FunPtr GLDEBUGPROCFunc)
- mkGLDEBUGPROCAMD :: GLDEBUGPROCAMDFunc -> IO (FunPtr GLDEBUGPROCAMDFunc)
- mkGLDEBUGPROCARB :: GLDEBUGPROCARBFunc -> IO (FunPtr GLDEBUGPROCARBFunc)
- mkGLDEBUGPROCKHR :: GLDEBUGPROCKHRFunc -> IO (FunPtr GLDEBUGPROCKHRFunc)
- class ObjectName a => GeneratableObjectName a where
- genObjectName :: MonadIO m => m a
- genObjectNames :: MonadIO m => Int -> m [a]
- type GLDEBUGPROC = FunPtr GLDEBUGPROCFunc
- type GLDEBUGPROCAMD = FunPtr GLDEBUGPROCAMDFunc
- type GLDEBUGPROCAMDFunc = GLuint -> GLenum -> GLenum -> GLsizei -> Ptr GLchar -> Ptr () -> IO ()
- type GLDEBUGPROCARB = GLDEBUGPROC
- type GLDEBUGPROCARBFunc = GLDEBUGPROCFunc
- type GLDEBUGPROCFunc = GLenum -> GLenum -> GLuint -> GLenum -> GLsizei -> Ptr GLchar -> Ptr () -> IO ()
- type GLDEBUGPROCKHR = GLDEBUGPROC
- type GLDEBUGPROCKHRFunc = GLDEBUGPROCFunc
- type GLVULKANPROCNV = FunPtr GLVULKANPROCNVFunc
- type GLVULKANPROCNVFunc = IO ()
- type GLbitfield = Word32
- type GLboolean = Word8
- type GLbyte = Int8
- type GLchar = CChar
- type GLcharARB = CChar
- type GLclampd = Double
- type GLclampf = Float
- type GLclampx = Fixed
- type GLeglClientBufferEXT = Ptr ()
- type GLeglImageOES = Ptr ()
- type GLfixed = Fixed
- type GLhalf = Half
- type GLhalfARB = Half
- type GLhalfNV = Half
- type GLhandleARB = Word32
- type GLint64 = Int64
- type GLint64EXT = Int64
- type GLintptr = CPtrdiff
- type GLintptrARB = CPtrdiff
- type GLshort = Int16
- type GLsizei = Int32
- type GLsizeiptr = CPtrdiff
- type GLsizeiptrARB = CPtrdiff
- type GLsync = Ptr ()
- type GLubyte = Word8
- type GLuint = Word32
- type GLuint64 = Word64
- type GLuint64EXT = Word64
- type GLushort = Word16
- type GLvdpauSurfaceNV = GLintptr
- type GLvoid = ()
- module Graphics.UI.GLUT.Initialization
- module Graphics.UI.GLUT.Begin
- module Graphics.UI.GLUT.Window
- module Graphics.UI.GLUT.Overlay
- module Graphics.UI.GLUT.Menu
- module Graphics.UI.GLUT.Callbacks
- module Graphics.UI.GLUT.Colormap
- module Graphics.UI.GLUT.State
- module Graphics.UI.GLUT.Fonts
- module Graphics.UI.GLUT.Objects
- module Graphics.UI.GLUT.Debugging
- module Graphics.UI.GLUT.DeviceControl
- module Graphics.UI.GLUT.GameMode
Legal stuff
This documentation is heavily based on the man pages of Mark J. Kilgard's GLUT library.
OpenGL is a trademark of Silicon Graphics, Inc. X Window System is a trademark of X Consortium, Inc. Spaceball is a registered trademark of Spatial Systems, Inc.
The author has taken care in preparation of this documentation but makes no expressed or implied warranty of any kind and assumes no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising from the use of information or programs contained herein.
Introduction
The OpenGL Utility Toolkit (GLUT) is a programming interface for writing window system independent OpenGL programs. Currently there are implementations for the X Window System, the Windows family, OS/2, and Mac. The toolkit supports the following functionality:
- Multiple windows for OpenGL rendering.
- Callback driven event processing.
- Sophisticated input devices.
- An idle routine and timers.
- A simple, cascading pop-up menu facility.
- Utility routines to generate various solid and wire frame objects.
- Support for bitmap and stroke fonts.
- Miscellaneous window management functions, including managing overlays.
This documentation serves as both a specification and a programming guide. If you are interested in a brief introduction to programming with GLUT, have a look at the relevant parts of http://www.opengl.org/ and the vast amount of books on OpenGL, most of them use GLUT.
The remainder of this section describes GLUT's design philosophy and usage model. The following sections specify the GLUT routines, grouped by functionality. The final sections discuss usage advice and the logical programmer visible state maintained by GLUT.
Background
One of the major accomplishments in the specification of OpenGL was the isolation of window system dependencies from OpenGL's rendering model. The result is that OpenGL is window system independent.
Window system operations such as the creation of a rendering window and the handling of window system events are left to the native window system to define. Necessary interactions between OpenGL and the window system such as creating and binding an OpenGL context to a window are described separately from the OpenGL specification in a window system dependent specification. For example, the GLX specification describes the standard by which OpenGL interacts with the X Window System.
The predecessor to OpenGL is IRIS GL. Unlike OpenGL, IRIS GL does specify how rendering windows are created and manipulated. IRIS GL's windowing interface is reasonably popular largely because it is simple to use. IRIS GL programmers can worry about graphics programming without needing to be an expert in programming the native window system. Experience also demonstrated that IRIS GL's windowing interface was high-level enough that it could be retargeted to different window systems. Silicon Graphics migrated from NeWS to the X Window System without any major changes to IRIS GL's basic windowing interface.
Removing window system operations from OpenGL is a sound decision because it allows the OpenGL graphics system to be retargeted to various systems including powerful but expensive graphics workstations as well as mass-production graphics systems like video games, set-top boxes for interactive television, and PCs.
Unfortunately, the lack of a window system interface for OpenGL is a gap in OpenGL's utility. Learning native window system APIs such as the X Window System's Xlib or Motif can be daunting. Even those familiar with native window system APIs need to understand the interface that binds OpenGL to the native window system. And when an OpenGL program is written using the native window system interface, despite the portability of the program's OpenGL rendering code, the program itself will be window system dependent.
Testing and documenting OpenGL's functionality lead to the development of
the tk and aux toolkits. The aux toolkit is used in the examples found
in the OpenGL Programming Guide. Unfortunately, aux has numerous
limitations and its utility is largely limited to toy programs. The tk
library has more functionality than aux but was developed in an ad hoc
fashion and still lacks much important functionality that IRIS GL programmers
expect, like pop-up menus and overlays.
GLUT is designed to fill the need for a window system independent programming
interface for OpenGL programs. The interface is designed to be simple yet
still meet the needs of useful OpenGL programs. Features from the IRIS GL,
aux, and tk interfaces are included to make it easy for programmers used
to these interfaces to develop programs for GLUT.
Design Philosophy
GLUT simplifies the implementation of programs using OpenGL rendering. The GLUT application programming interface (API) requires very few routines to display a graphics scene rendered using OpenGL. The GLUT API (like the OpenGL API) is stateful. Most initial GLUT state is defined and the initial state is reasonable for simple programs. The GLUT routines also take relatively few parameters.
The GLUT API is (as much as reasonable) window system independent. For this reason, GLUT does not return any native window system handles, pointers, or other data structures. More subtle window system dependencies such as reliance on window system dependent fonts are avoided by GLUT; instead, GLUT supplies its own (limited) set of fonts.
For programming ease, GLUT provides a simple menu sub-API. While the menuing support is designed to be implemented as pop-up menus, GLUT gives window system leeway to support the menu functionality in another manner (pull-down menus for example).
Two of the most important pieces of GLUT state are the current window and current menu. Most window and menu routines affect the current window or menu respectively. Most callbacks implicitly set the current window and menu to the appropriate window or menu responsible for the callback. GLUT is designed so that a program with only a single window and/or menu will not need to keep track of any window or menu identifiers. This greatly simplifies very simple GLUT programs.
GLUT is designed for simple to moderately complex programs focused on OpenGL rendering. GLUT implements its own event loop. For this reason, mixing GLUT with other APIs that demand their own event handling structure may be difficult. The advantage of a builtin event dispatch loop is simplicity.
GLUT contains routines for rendering fonts and geometric objects, however GLUT makes no claims on the OpenGL display list name space. For this reason, none of the GLUT rendering routines use OpenGL display lists. It is up to the GLUT programmer to compile the output from GLUT rendering routines into display lists if this is desired.
GLUT routines are logically organized into several sub-APIs according to their functionality. The sub-APIs are:
- Initialization: Command line processing, window system initialization, and initial window creation state are controlled by these routines.
- Beginning Event Processing: This routine enters GLUT's event processing loop. This routine never returns, and it continuously calls GLUT callbacks as necessary.
- Window Management: These routines create and control windows.
- Overlay Management: These routines establish and manage overlays for windows.
- Menu Management: These routines create and control pop-up menus.
- Callback Registration: These routines register callbacks to be called by the GLUT event processing loop.
- Color Index Colormap Management: These routines allow the manipulation of color index colormaps for windows.
- State Retrieval: These routines allows programs to retrieve state from GLUT.
- Font Rendering: These routines allow rendering of stroke and bitmap fonts.
- Geometric Shape Rendering: These routines allow the rendering of 3D geometric objects including spheres, cones, icosahedrons, and teapots.
- Debugging: This routine reports any pending GL errors.
- Device Control: These routines allow setting the key repeat and polling the joystick.
- Game Mode: These routines allow programs to enter/leave a full-screen mode with specified properties.
API Versions
The GLUT API has undergone several revisions with increasing functionality. This Haskell binding provides access to everything in API version 4, although it is not yet officially finalized. Nevertheless, it provides very useful things like handling full-screen modes and special keys.
Conventions
GLUT window and screen coordinates are expressed in pixels. The upper left hand corner of the screen or a window is (0,0). X coordinates increase in a rightward direction; Y coordinates increase in a downward direction. Note: This is inconsistent with OpenGL's coordinate scheme that generally considers the lower left hand coordinate of a window to be at (0,0) but is consistent with most popular window systems.
Terminology
A number of terms are used in a GLUT-specific manner throughout this document. The GLUT meaning of these terms is independent of the window system GLUT is used with. Here are GLUT-specific meanings for the following GLUT-specific terms:
- Callback: A programmer specified routine that can be registered with GLUT to be called in response to a specific type of event. Also used to refer to a specific callback routine being called.
- Colormap: A mapping of pixel values to RGB color values. Used by color index windows.
- Dials and button box: A sophisticated input device consisting of a pad of buttons and an array of rotating dials, often used by computer-aided design programs.
- Display mode: A set of OpenGL frame buffer capabilities that can be attributed to a window.
- Idle: A state when no window system events are received for processing as callbacks and the idle callback, if one is registered, is called.
- Layer in use: Either the normal plane or overlay. This per-window state determines what frame buffer layer OpenGL commands affect.
- Menu entry: A menu item that the user can select to trigger the menu callback for the menu entry's value.
- Menu item: Either a menu entry or a sub-menu trigger.
- Modifiers: The Shift, Ctrl, and Alt keys that can be held down simultaneously with a key or mouse button being pressed or released.
- Multisampling: A technique for hardware antialiasing generally available only on expensive 3D graphics hardware. Each pixel is composed of a number of samples (each containing color and depth information). The samples are averaged to determine the displayed pixel color value. Multisampling is supported as an extension to OpenGL.
- Normal plane: The default frame buffer layer where GLUT window state resides; as opposed to the overlay.
- Overlay: A frame buffer layer that can be displayed preferentially to the normal plane and supports transparency to display through to the normal plane. Overlays are useful for rubber-banding effects, text annotation, and other operations, to avoid damaging the normal plane frame buffer state. Overlays require hardware support not present on all systems.
- Pop: The act of forcing a window to the top of the stacking order for sibling windows.
- Pop-up menu: A menu that can be set to appear when a specified mouse button is pressed in a window. A pop-menu consists of multiple menu items.
- Push: The act of forcing a window to the bottom of the stacking order for sibling windows.
- Reshape: The act of changing the size or shape of the window.
- Spaceball: A sophisticated 3D input device that provides six degrees of freedom, three axes of rotation and three axes of translation. It also supports a number of buttons. The device is a hand-sized ball attached to a base. By cupping the ball with one's hand and applying torsional or directional force on the ball, rotations and translationsare generated.
- Stereo: A frame buffer capability providing left and right color buffers for creating stereoscopic renderings. Typically, the user wears LCD shuttered goggles synchronized with the alternating display on the screen of the left and right color buffers.
- Sub-menu: A menu cascaded from some sub-menu trigger.
- Sub-menu trigger: A menu item that the user can enter to cascade another pop-up menu.
- Subwindow: A type of window that is the child window of a top-level window or other subwindow. The drawing and visible region of a subwindow is limited by its parent window.
- Tablet: A precise 2D input device. Like a mouse, 2D coordinates are returned. The absolute position of the tablet "puck" on the tablet is returned. Tablets also support a number of buttons.
- Timer: A callback that can be scheduled to be called in a specified interval of time.
- Top-level window: A window that can be placed, moved, resized, etc. independently from other top-level windows by the user. Subwindows may reside within a top-level window.
- Window: A rectangular area for OpenGL rendering.
- Window display state: One of shown, hidden, or iconified. A shown window is potentially visible on the screen (it may be obscured by other windows and not actually visible). A hidden window will never be visible. An iconified window is not visible but could be made visible in response to some user action like clicking on the window's corresponding icon.
- Window system: A broad notion that refers to both the mechanism and policy of the window system. For example, in the X Window System both the window manager and the X server are integral to what GLUT considers the window system.
Constructors
| StateVar (IO a) (a -> IO ()) |
Instances
| HasGetter (StateVar a) a | |
Defined in Data.StateVar | |
| HasSetter (StateVar a) a | |
Defined in Data.StateVar | |
| HasUpdate (StateVar a) a a | |
class ObjectName a where #
Minimal complete definition
Methods
isObjectName :: MonadIO m => a -> m Bool #
deleteObjectName :: MonadIO m => a -> m () #
deleteObjectNames :: MonadIO m => [a] -> m () #
Instances
makeStateVar :: IO a -> (a -> IO ()) -> StateVar a #
newtype SettableStateVar a #
Constructors
| SettableStateVar (a -> IO ()) |
Instances
| Contravariant SettableStateVar | |
Defined in Data.StateVar Methods contramap :: (a' -> a) -> SettableStateVar a -> SettableStateVar a' (>$) :: b -> SettableStateVar b -> SettableStateVar a | |
| HasSetter (SettableStateVar a) a | |
Defined in Data.StateVar Methods ($=) :: MonadIO m => SettableStateVar a -> a -> m () # | |
makeSettableStateVar :: (a -> IO ()) -> SettableStateVar a #
Instances
| Show Position | |
| Eq Position | |
| Ord Position | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans | |
type GettableStateVar = IO #
makeGettableStateVar :: IO a -> GettableStateVar a #
Constructors
| Index1 a |
Instances
| ControlPoint Index1 | |
Defined in Graphics.Rendering.OpenGL.GL.ControlPoint Methods map1Target :: Domain d => Index1 d -> GLenum map2Target :: Domain d => Index1 d -> GLenum enableCap1 :: Domain d => Index1 d -> EnableCap enableCap2 :: Domain d => Index1 d -> EnableCap numComponents :: Domain d => Index1 d -> Stride peekControlPoint :: Domain d => Ptr (Index1 d) -> IO (Index1 d) pokeControlPoint :: Domain d => Ptr (Index1 d) -> Index1 d -> IO () | |
| Applicative Index1 | |
| Functor Index1 | |
| Foldable Index1 | |
Defined in Graphics.Rendering.OpenGL.GL.VertexAttributes Methods fold :: Monoid m => Index1 m -> m foldMap :: Monoid m => (a -> m) -> Index1 a -> m foldMap' :: Monoid m => (a -> m) -> Index1 a -> m foldr :: (a -> b -> b) -> b -> Index1 a -> b foldr' :: (a -> b -> b) -> b -> Index1 a -> b foldl :: (b -> a -> b) -> b -> Index1 a -> b foldl' :: (b -> a -> b) -> b -> Index1 a -> b foldr1 :: (a -> a -> a) -> Index1 a -> a foldl1 :: (a -> a -> a) -> Index1 a -> a elem :: Eq a => a -> Index1 a -> Bool maximum :: Ord a => Index1 a -> a | |
| Traversable Index1 | |
| UniformComponent a => Uniform (Index1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods uniform :: UniformLocation -> StateVar (Index1 a) # uniformv :: UniformLocation -> GLsizei -> Ptr (Index1 a) -> IO () # | |
| IndexComponent a => Index (Index1 a) | |
| VertexAttribComponent a => VertexAttrib (Index1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods vertexAttrib :: IntegerHandling -> AttribLocation -> Index1 a -> IO () # vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr (Index1 a) -> IO () # | |
| Bounded a => Bounded (Index1 a) | |
| Storable a => Storable (Index1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexAttributes Methods peekElemOff :: Ptr (Index1 a) -> Int -> IO (Index1 a) pokeElemOff :: Ptr (Index1 a) -> Int -> Index1 a -> IO () peekByteOff :: Ptr b -> Int -> IO (Index1 a) pokeByteOff :: Ptr b -> Int -> Index1 a -> IO () | |
| Ix a => Ix (Index1 a) | |
| Read a => Read (Index1 a) | |
| Show a => Show (Index1 a) | |
| Eq a => Eq (Index1 a) | |
| Ord a => Ord (Index1 a) | |
Constructors
| Color3 !a !a !a |
Instances
| Applicative Color3 | |
| Functor Color3 | |
| Foldable Color3 | |
Defined in Graphics.Rendering.OpenGL.GL.VertexAttributes Methods fold :: Monoid m => Color3 m -> m foldMap :: Monoid m => (a -> m) -> Color3 a -> m foldMap' :: Monoid m => (a -> m) -> Color3 a -> m foldr :: (a -> b -> b) -> b -> Color3 a -> b foldr' :: (a -> b -> b) -> b -> Color3 a -> b foldl :: (b -> a -> b) -> b -> Color3 a -> b foldl' :: (b -> a -> b) -> b -> Color3 a -> b foldr1 :: (a -> a -> a) -> Color3 a -> a foldl1 :: (a -> a -> a) -> Color3 a -> a elem :: Eq a => a -> Color3 a -> Bool maximum :: Ord a => Color3 a -> a | |
| Traversable Color3 | |
| UniformComponent a => Uniform (Color3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods uniform :: UniformLocation -> StateVar (Color3 a) # uniformv :: UniformLocation -> GLsizei -> Ptr (Color3 a) -> IO () # | |
| ColorComponent a => Color (Color3 a) | |
| ColorComponent a => SecondaryColor (Color3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec | |
| VertexAttribComponent a => VertexAttrib (Color3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods vertexAttrib :: IntegerHandling -> AttribLocation -> Color3 a -> IO () # vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr (Color3 a) -> IO () # | |
| Bounded a => Bounded (Color3 a) | |
| Storable a => Storable (Color3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexAttributes Methods peekElemOff :: Ptr (Color3 a) -> Int -> IO (Color3 a) pokeElemOff :: Ptr (Color3 a) -> Int -> Color3 a -> IO () peekByteOff :: Ptr b -> Int -> IO (Color3 a) pokeByteOff :: Ptr b -> Int -> Color3 a -> IO () | |
| Ix a => Ix (Color3 a) | |
| Read a => Read (Color3 a) | |
| Show a => Show (Color3 a) | |
| Eq a => Eq (Color3 a) | |
| Ord a => Ord (Color3 a) | |
class HasGetter t a | t -> a where #
Instances
| HasGetter (StateVar a) a | |
Defined in Data.StateVar | |
| HasGetter (STM a) a | |
Defined in Data.StateVar | |
| HasGetter (TVar a) a | |
Defined in Data.StateVar | |
| Storable a => HasGetter (ForeignPtr a) a | |
Defined in Data.StateVar | |
| HasGetter (IORef a) a | |
Defined in Data.StateVar | |
| Storable a => HasGetter (Ptr a) a | |
Defined in Data.StateVar | |
| HasGetter (IO a) a | |
Defined in Data.StateVar | |
Constructors
| Error ErrorCategory String |
errors :: GettableStateVar [Error] #
class HasSetter t a | t -> a where #
Instances
| HasSetter (SettableStateVar a) a | |
Defined in Data.StateVar Methods ($=) :: MonadIO m => SettableStateVar a -> a -> m () # | |
| HasSetter (StateVar a) a | |
Defined in Data.StateVar | |
| HasSetter (TVar a) a | |
Defined in Data.StateVar | |
| Storable a => HasSetter (ForeignPtr a) a | |
Defined in Data.StateVar | |
| HasSetter (IORef a) a | |
Defined in Data.StateVar | |
| Storable a => HasSetter (Ptr a) a | |
Defined in Data.StateVar | |
Constructors
| Vertex3 !a !a !a |
Instances
newtype AttribLocation #
Constructors
| AttribLocation GLuint |
Instances
| Show AttribLocation | |
Defined in Graphics.Rendering.OpenGL.GL.QueryUtils.VertexAttrib Methods showsPrec :: Int -> AttribLocation -> ShowS show :: AttribLocation -> String showList :: [AttribLocation] -> ShowS | |
| Eq AttribLocation | |
Defined in Graphics.Rendering.OpenGL.GL.QueryUtils.VertexAttrib Methods (==) :: AttribLocation -> AttribLocation -> Bool (/=) :: AttribLocation -> AttribLocation -> Bool | |
| Ord AttribLocation | |
Defined in Graphics.Rendering.OpenGL.GL.QueryUtils.VertexAttrib Methods compare :: AttribLocation -> AttribLocation -> Ordering (<) :: AttribLocation -> AttribLocation -> Bool (<=) :: AttribLocation -> AttribLocation -> Bool (>) :: AttribLocation -> AttribLocation -> Bool (>=) :: AttribLocation -> AttribLocation -> Bool max :: AttribLocation -> AttribLocation -> AttribLocation min :: AttribLocation -> AttribLocation -> AttribLocation | |
data VariableType #
Constructors
Instances
| Show VariableType | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Variables Methods showsPrec :: Int -> VariableType -> ShowS show :: VariableType -> String showList :: [VariableType] -> ShowS | |
| Eq VariableType | |
| Ord VariableType | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Variables Methods compare :: VariableType -> VariableType -> Ordering (<) :: VariableType -> VariableType -> Bool (<=) :: VariableType -> VariableType -> Bool (>) :: VariableType -> VariableType -> Bool (>=) :: VariableType -> VariableType -> Bool max :: VariableType -> VariableType -> VariableType min :: VariableType -> VariableType -> VariableType | |
Constructors
Instances
| Show DataType | |
| Eq DataType | |
| Ord DataType | |
Defined in Graphics.Rendering.OpenGL.GL.DataType | |
data BlendingFactor #
Constructors
Instances
| Show BlendingFactor | |
Defined in Graphics.Rendering.OpenGL.GL.BlendingFactor Methods showsPrec :: Int -> BlendingFactor -> ShowS show :: BlendingFactor -> String showList :: [BlendingFactor] -> ShowS | |
| Eq BlendingFactor | |
Defined in Graphics.Rendering.OpenGL.GL.BlendingFactor Methods (==) :: BlendingFactor -> BlendingFactor -> Bool (/=) :: BlendingFactor -> BlendingFactor -> Bool | |
| Ord BlendingFactor | |
Defined in Graphics.Rendering.OpenGL.GL.BlendingFactor Methods compare :: BlendingFactor -> BlendingFactor -> Ordering (<) :: BlendingFactor -> BlendingFactor -> Bool (<=) :: BlendingFactor -> BlendingFactor -> Bool (>) :: BlendingFactor -> BlendingFactor -> Bool (>=) :: BlendingFactor -> BlendingFactor -> Bool max :: BlendingFactor -> BlendingFactor -> BlendingFactor min :: BlendingFactor -> BlendingFactor -> BlendingFactor | |
data MapBufferUsage #
Constructors
| Read | |
| Write | |
| InvalidateRange | |
| InvalidateBuffer | |
| FlushExplicit | |
| Unsychronized |
Instances
| Show MapBufferUsage | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods showsPrec :: Int -> MapBufferUsage -> ShowS show :: MapBufferUsage -> String showList :: [MapBufferUsage] -> ShowS | |
| Eq MapBufferUsage | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods (==) :: MapBufferUsage -> MapBufferUsage -> Bool (/=) :: MapBufferUsage -> MapBufferUsage -> Bool | |
| Ord MapBufferUsage | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods compare :: MapBufferUsage -> MapBufferUsage -> Ordering (<) :: MapBufferUsage -> MapBufferUsage -> Bool (<=) :: MapBufferUsage -> MapBufferUsage -> Bool (>) :: MapBufferUsage -> MapBufferUsage -> Bool (>=) :: MapBufferUsage -> MapBufferUsage -> Bool max :: MapBufferUsage -> MapBufferUsage -> MapBufferUsage min :: MapBufferUsage -> MapBufferUsage -> MapBufferUsage | |
class HasSetter t b => HasUpdate t a b | t -> a b where #
Minimal complete definition
Nothing
Instances
| HasUpdate (StateVar a) a a | |
| HasUpdate (TVar a) a a | |
Defined in Data.StateVar | |
| Storable a => HasUpdate (ForeignPtr a) a a | |
Defined in Data.StateVar | |
| HasUpdate (IORef a) a a | |
Defined in Data.StateVar | |
| Storable a => HasUpdate (Ptr a) a a | |
Defined in Data.StateVar | |
mapStateVar :: (b -> a) -> (a -> b) -> StateVar a -> StateVar b #
primitiveRestart :: IO () #
renderPrimitive :: PrimitiveMode -> IO a -> IO a #
unsafeRenderPrimitive :: PrimitiveMode -> IO a -> IO a #
data BufferMode #
Constructors
| NoBuffers | |
| FrontLeftBuffer | |
| FrontRightBuffer | |
| BackLeftBuffer | |
| BackRightBuffer | |
| FrontBuffers | |
| BackBuffers | |
| LeftBuffers | |
| RightBuffers | |
| FrontAndBackBuffers | |
| AuxBuffer GLsizei | |
| FBOColorAttachment GLsizei |
Instances
| FramebufferAttachment BufferMode | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferObjectAttachment Methods marshalAttachment :: BufferMode -> Maybe GLenum # unmarshalAttachment :: GLenum -> BufferMode # unmarshalAttachmentSafe :: GLenum -> Maybe BufferMode # | |
| Show BufferMode | |
Defined in Graphics.Rendering.OpenGL.GL.BufferMode Methods showsPrec :: Int -> BufferMode -> ShowS show :: BufferMode -> String showList :: [BufferMode] -> ShowS | |
| Eq BufferMode | |
Defined in Graphics.Rendering.OpenGL.GL.BufferMode | |
| Ord BufferMode | |
Defined in Graphics.Rendering.OpenGL.GL.BufferMode Methods compare :: BufferMode -> BufferMode -> Ordering (<) :: BufferMode -> BufferMode -> Bool (<=) :: BufferMode -> BufferMode -> Bool (>) :: BufferMode -> BufferMode -> Bool (>=) :: BufferMode -> BufferMode -> Bool max :: BufferMode -> BufferMode -> BufferMode min :: BufferMode -> BufferMode -> BufferMode | |
data BufferTarget #
Constructors
Instances
| Show BufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods showsPrec :: Int -> BufferTarget -> ShowS show :: BufferTarget -> String showList :: [BufferTarget] -> ShowS | |
| Eq BufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects | |
| Ord BufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods compare :: BufferTarget -> BufferTarget -> Ordering (<) :: BufferTarget -> BufferTarget -> Bool (<=) :: BufferTarget -> BufferTarget -> Bool (>) :: BufferTarget -> BufferTarget -> Bool (>=) :: BufferTarget -> BufferTarget -> Bool max :: BufferTarget -> BufferTarget -> BufferTarget min :: BufferTarget -> BufferTarget -> BufferTarget | |
data BufferAccess #
Instances
| Show BufferAccess | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods showsPrec :: Int -> BufferAccess -> ShowS show :: BufferAccess -> String showList :: [BufferAccess] -> ShowS | |
| Eq BufferAccess | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects | |
| Ord BufferAccess | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods compare :: BufferAccess -> BufferAccess -> Ordering (<) :: BufferAccess -> BufferAccess -> Bool (<=) :: BufferAccess -> BufferAccess -> Bool (>) :: BufferAccess -> BufferAccess -> Bool (>=) :: BufferAccess -> BufferAccess -> Bool max :: BufferAccess -> BufferAccess -> BufferAccess min :: BufferAccess -> BufferAccess -> BufferAccess | |
type BufferIndex = GLuint #
data BufferObject #
Instances
type BufferRange = (BufferObject, RangeStartIndex, RangeSize) #
data BufferUsage #
Constructors
| StreamDraw | |
| StreamRead | |
| StreamCopy | |
| StaticDraw | |
| StaticRead | |
| StaticCopy | |
| DynamicDraw | |
| DynamicRead | |
| DynamicCopy |
Instances
| Show BufferUsage | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods showsPrec :: Int -> BufferUsage -> ShowS show :: BufferUsage -> String showList :: [BufferUsage] -> ShowS | |
| Eq BufferUsage | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects | |
| Ord BufferUsage | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods compare :: BufferUsage -> BufferUsage -> Ordering (<) :: BufferUsage -> BufferUsage -> Bool (<=) :: BufferUsage -> BufferUsage -> Bool (>) :: BufferUsage -> BufferUsage -> Bool (>=) :: BufferUsage -> BufferUsage -> Bool max :: BufferUsage -> BufferUsage -> BufferUsage min :: BufferUsage -> BufferUsage -> BufferUsage | |
data IndexedBufferTarget #
Constructors
| IndexedAtomicCounterBuffer | |
| IndexedShaderStorageBuffer | |
| IndexedTransformFeedbackBuffer | |
| IndexedUniformBuffer |
Instances
| Show IndexedBufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods showsPrec :: Int -> IndexedBufferTarget -> ShowS show :: IndexedBufferTarget -> String showList :: [IndexedBufferTarget] -> ShowS | |
| Eq IndexedBufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods (==) :: IndexedBufferTarget -> IndexedBufferTarget -> Bool (/=) :: IndexedBufferTarget -> IndexedBufferTarget -> Bool | |
| Ord IndexedBufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods compare :: IndexedBufferTarget -> IndexedBufferTarget -> Ordering (<) :: IndexedBufferTarget -> IndexedBufferTarget -> Bool (<=) :: IndexedBufferTarget -> IndexedBufferTarget -> Bool (>) :: IndexedBufferTarget -> IndexedBufferTarget -> Bool (>=) :: IndexedBufferTarget -> IndexedBufferTarget -> Bool max :: IndexedBufferTarget -> IndexedBufferTarget -> IndexedBufferTarget min :: IndexedBufferTarget -> IndexedBufferTarget -> IndexedBufferTarget | |
type Length = GLsizeiptr #
data MappingFailure #
Constructors
| MappingFailed | |
| UnmappingFailed |
Instances
| Show MappingFailure | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods showsPrec :: Int -> MappingFailure -> ShowS show :: MappingFailure -> String showList :: [MappingFailure] -> ShowS | |
| Eq MappingFailure | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods (==) :: MappingFailure -> MappingFailure -> Bool (/=) :: MappingFailure -> MappingFailure -> Bool | |
| Ord MappingFailure | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods compare :: MappingFailure -> MappingFailure -> Ordering (<) :: MappingFailure -> MappingFailure -> Bool (<=) :: MappingFailure -> MappingFailure -> Bool (>) :: MappingFailure -> MappingFailure -> Bool (>=) :: MappingFailure -> MappingFailure -> Bool max :: MappingFailure -> MappingFailure -> MappingFailure min :: MappingFailure -> MappingFailure -> MappingFailure | |
type RangeSize = GLsizeiptr #
type RangeStartIndex = GLintptr #
data TransferDirection #
Constructors
| ReadFromBuffer | |
| WriteToBuffer |
Instances
| Show TransferDirection | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods showsPrec :: Int -> TransferDirection -> ShowS show :: TransferDirection -> String showList :: [TransferDirection] -> ShowS | |
| Eq TransferDirection | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods (==) :: TransferDirection -> TransferDirection -> Bool (/=) :: TransferDirection -> TransferDirection -> Bool | |
| Ord TransferDirection | |
Defined in Graphics.Rendering.OpenGL.GL.BufferObjects Methods compare :: TransferDirection -> TransferDirection -> Ordering (<) :: TransferDirection -> TransferDirection -> Bool (<=) :: TransferDirection -> TransferDirection -> Bool (>) :: TransferDirection -> TransferDirection -> Bool (>=) :: TransferDirection -> TransferDirection -> Bool max :: TransferDirection -> TransferDirection -> TransferDirection min :: TransferDirection -> TransferDirection -> TransferDirection | |
arrayBufferBinding :: ClientArrayType -> GettableStateVar (Maybe BufferObject) #
bindBuffer :: BufferTarget -> StateVar (Maybe BufferObject) #
bindBufferBase :: IndexedBufferTarget -> BufferIndex -> StateVar (Maybe BufferObject) #
bindBufferRange :: IndexedBufferTarget -> BufferIndex -> StateVar (Maybe BufferRange) #
bufferData :: BufferTarget -> StateVar (GLsizeiptr, Ptr a, BufferUsage) #
bufferMapped :: BufferTarget -> GettableStateVar Bool #
bufferSubData :: BufferTarget -> TransferDirection -> GLintptr -> GLsizeiptr -> Ptr a -> IO () #
flushMappedBufferRange :: BufferTarget -> Offset -> Length -> IO () #
mapBuffer :: BufferTarget -> BufferAccess -> IO (Maybe (Ptr a)) #
mapBufferRange :: BufferTarget -> Offset -> Length -> [MapBufferUsage] -> IO (Maybe (Ptr a)) #
unmapBuffer :: BufferTarget -> IO Bool #
withMappedBuffer :: BufferTarget -> BufferAccess -> (Ptr a -> IO b) -> (MappingFailure -> IO b) -> IO b #
unpackUtf8 :: ByteString -> String #
data Capability #
Instances
| Show Capability | |
Defined in Graphics.Rendering.OpenGL.GL.Capability Methods showsPrec :: Int -> Capability -> ShowS show :: Capability -> String showList :: [Capability] -> ShowS | |
| Eq Capability | |
Defined in Graphics.Rendering.OpenGL.GL.Capability | |
| Ord Capability | |
Defined in Graphics.Rendering.OpenGL.GL.Capability Methods compare :: Capability -> Capability -> Ordering (<) :: Capability -> Capability -> Bool (<=) :: Capability -> Capability -> Bool (>) :: Capability -> Capability -> Bool (>=) :: Capability -> Capability -> Bool max :: Capability -> Capability -> Capability min :: Capability -> Capability -> Capability | |
newtype ClipPlaneName #
Constructors
| ClipPlaneName GLsizei |
Instances
| Show ClipPlaneName | |
Defined in Graphics.Rendering.OpenGL.GL.Clipping Methods showsPrec :: Int -> ClipPlaneName -> ShowS show :: ClipPlaneName -> String showList :: [ClipPlaneName] -> ShowS | |
| Eq ClipPlaneName | |
Defined in Graphics.Rendering.OpenGL.GL.Clipping | |
| Ord ClipPlaneName | |
Defined in Graphics.Rendering.OpenGL.GL.Clipping Methods compare :: ClipPlaneName -> ClipPlaneName -> Ordering (<) :: ClipPlaneName -> ClipPlaneName -> Bool (<=) :: ClipPlaneName -> ClipPlaneName -> Bool (>) :: ClipPlaneName -> ClipPlaneName -> Bool (>=) :: ClipPlaneName -> ClipPlaneName -> Bool max :: ClipPlaneName -> ClipPlaneName -> ClipPlaneName min :: ClipPlaneName -> ClipPlaneName -> ClipPlaneName | |
data ColorMaterialParameter #
Constructors
| Ambient | |
| Diffuse | |
| Specular | |
| Emission | |
| AmbientAndDiffuse |
Instances
| Show ColorMaterialParameter | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods showsPrec :: Int -> ColorMaterialParameter -> ShowS show :: ColorMaterialParameter -> String showList :: [ColorMaterialParameter] -> ShowS | |
| Eq ColorMaterialParameter | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods (==) :: ColorMaterialParameter -> ColorMaterialParameter -> Bool (/=) :: ColorMaterialParameter -> ColorMaterialParameter -> Bool | |
| Ord ColorMaterialParameter | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods compare :: ColorMaterialParameter -> ColorMaterialParameter -> Ordering (<) :: ColorMaterialParameter -> ColorMaterialParameter -> Bool (<=) :: ColorMaterialParameter -> ColorMaterialParameter -> Bool (>) :: ColorMaterialParameter -> ColorMaterialParameter -> Bool (>=) :: ColorMaterialParameter -> ColorMaterialParameter -> Bool max :: ColorMaterialParameter -> ColorMaterialParameter -> ColorMaterialParameter min :: ColorMaterialParameter -> ColorMaterialParameter -> ColorMaterialParameter | |
data FrontFaceDirection #
Instances
| Show FrontFaceDirection | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods showsPrec :: Int -> FrontFaceDirection -> ShowS show :: FrontFaceDirection -> String showList :: [FrontFaceDirection] -> ShowS | |
| Eq FrontFaceDirection | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods (==) :: FrontFaceDirection -> FrontFaceDirection -> Bool (/=) :: FrontFaceDirection -> FrontFaceDirection -> Bool | |
| Ord FrontFaceDirection | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods compare :: FrontFaceDirection -> FrontFaceDirection -> Ordering (<) :: FrontFaceDirection -> FrontFaceDirection -> Bool (<=) :: FrontFaceDirection -> FrontFaceDirection -> Bool (>) :: FrontFaceDirection -> FrontFaceDirection -> Bool (>=) :: FrontFaceDirection -> FrontFaceDirection -> Bool max :: FrontFaceDirection -> FrontFaceDirection -> FrontFaceDirection min :: FrontFaceDirection -> FrontFaceDirection -> FrontFaceDirection | |
data ClampTarget #
Constructors
| ClampVertexColor | |
| ClampFragmentColor | |
| ClampReadColor |
Instances
| Show ClampTarget | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods showsPrec :: Int -> ClampTarget -> ShowS show :: ClampTarget -> String showList :: [ClampTarget] -> ShowS | |
| Eq ClampTarget | |
Defined in Graphics.Rendering.OpenGL.GL.Colors | |
| Ord ClampTarget | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods compare :: ClampTarget -> ClampTarget -> Ordering (<) :: ClampTarget -> ClampTarget -> Bool (<=) :: ClampTarget -> ClampTarget -> Bool (>) :: ClampTarget -> ClampTarget -> Bool (>=) :: ClampTarget -> ClampTarget -> Bool max :: ClampTarget -> ClampTarget -> ClampTarget min :: ClampTarget -> ClampTarget -> ClampTarget | |
Instances
| Show ClampMode | |
| Eq ClampMode | |
| Ord ClampMode | |
Defined in Graphics.Rendering.OpenGL.GL.Colors | |
data ShadingModel #
Instances
| Show ShadingModel | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods showsPrec :: Int -> ShadingModel -> ShowS show :: ShadingModel -> String showList :: [ShadingModel] -> ShowS | |
| Eq ShadingModel | |
Defined in Graphics.Rendering.OpenGL.GL.Colors | |
| Ord ShadingModel | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods compare :: ShadingModel -> ShadingModel -> Ordering (<) :: ShadingModel -> ShadingModel -> Bool (<=) :: ShadingModel -> ShadingModel -> Bool (>) :: ShadingModel -> ShadingModel -> Bool (>=) :: ShadingModel -> ShadingModel -> Bool max :: ShadingModel -> ShadingModel -> ShadingModel min :: ShadingModel -> ShadingModel -> ShadingModel | |
data LightModelColorControl #
Constructors
| SingleColor | |
| SeparateSpecularColor |
Instances
| Show LightModelColorControl | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods showsPrec :: Int -> LightModelColorControl -> ShowS show :: LightModelColorControl -> String showList :: [LightModelColorControl] -> ShowS | |
| Eq LightModelColorControl | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods (==) :: LightModelColorControl -> LightModelColorControl -> Bool (/=) :: LightModelColorControl -> LightModelColorControl -> Bool | |
| Ord LightModelColorControl | |
Defined in Graphics.Rendering.OpenGL.GL.Colors Methods compare :: LightModelColorControl -> LightModelColorControl -> Ordering (<) :: LightModelColorControl -> LightModelColorControl -> Bool (<=) :: LightModelColorControl -> LightModelColorControl -> Bool (>) :: LightModelColorControl -> LightModelColorControl -> Bool (>=) :: LightModelColorControl -> LightModelColorControl -> Bool max :: LightModelColorControl -> LightModelColorControl -> LightModelColorControl min :: LightModelColorControl -> LightModelColorControl -> LightModelColorControl | |
clampColor :: ClampTarget -> StateVar ClampMode #
colorMaterial :: StateVar (Maybe (Face, ColorMaterialParameter)) #
light :: Light -> StateVar Capability #
materialShininess :: Face -> StateVar GLfloat #
spotCutoff :: Light -> StateVar GLfloat #
spotExponent :: Light -> StateVar GLfloat #
data ComparisonFunction #
Instances
| Show ComparisonFunction | |
Defined in Graphics.Rendering.OpenGL.GL.ComparisonFunction Methods showsPrec :: Int -> ComparisonFunction -> ShowS show :: ComparisonFunction -> String showList :: [ComparisonFunction] -> ShowS | |
| Eq ComparisonFunction | |
Defined in Graphics.Rendering.OpenGL.GL.ComparisonFunction Methods (==) :: ComparisonFunction -> ComparisonFunction -> Bool (/=) :: ComparisonFunction -> ComparisonFunction -> Bool | |
| Ord ComparisonFunction | |
Defined in Graphics.Rendering.OpenGL.GL.ComparisonFunction Methods compare :: ComparisonFunction -> ComparisonFunction -> Ordering (<) :: ComparisonFunction -> ComparisonFunction -> Bool (<=) :: ComparisonFunction -> ComparisonFunction -> Bool (>) :: ComparisonFunction -> ComparisonFunction -> Bool (>=) :: ComparisonFunction -> ComparisonFunction -> Bool max :: ComparisonFunction -> ComparisonFunction -> ComparisonFunction min :: ComparisonFunction -> ComparisonFunction -> ComparisonFunction | |
data ConditionalRenderMode #
Constructors
| QueryWait | |
| QueryNoWait | |
| QueryByRegionWait | |
| QueryByRegionNoWait |
Instances
beginConditionalRender :: QueryObject -> ConditionalRenderMode -> IO () #
endConditionalRender :: IO () #
withConditionalRender :: QueryObject -> ConditionalRenderMode -> IO a -> IO a #
class ControlPoint (c :: Type -> Type) #
Minimal complete definition
map1Target, map2Target, enableCap1, enableCap2, numComponents, peekControlPoint, pokeControlPoint
Instances
Instances
| ColorComponent a => Color (Color3 a) | |
| ColorComponent a => Color (Color4 a) | |
data MatrixMode #
Constructors
| Modelview GLsizei | |
| Projection | |
| Texture | |
| Color | |
| MatrixPalette |
Instances
| Show MatrixMode | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods showsPrec :: Int -> MatrixMode -> ShowS show :: MatrixMode -> String showList :: [MatrixMode] -> ShowS | |
| Eq MatrixMode | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans | |
| Ord MatrixMode | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods compare :: MatrixMode -> MatrixMode -> Ordering (<) :: MatrixMode -> MatrixMode -> Bool (<=) :: MatrixMode -> MatrixMode -> Bool (>) :: MatrixMode -> MatrixMode -> Bool (>=) :: MatrixMode -> MatrixMode -> Bool max :: MatrixMode -> MatrixMode -> MatrixMode min :: MatrixMode -> MatrixMode -> MatrixMode | |
data MatrixOrder #
Constructors
| ColumnMajor | |
| RowMajor |
Instances
| Show MatrixOrder | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods showsPrec :: Int -> MatrixOrder -> ShowS show :: MatrixOrder -> String showList :: [MatrixOrder] -> ShowS | |
| Eq MatrixOrder | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans | |
| Ord MatrixOrder | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods compare :: MatrixOrder -> MatrixOrder -> Ordering (<) :: MatrixOrder -> MatrixOrder -> Bool (<=) :: MatrixOrder -> MatrixOrder -> Bool (>) :: MatrixOrder -> MatrixOrder -> Bool (>=) :: MatrixOrder -> MatrixOrder -> Bool max :: MatrixOrder -> MatrixOrder -> MatrixOrder min :: MatrixOrder -> MatrixOrder -> MatrixOrder | |
data TextureGenMode #
Constructors
| EyeLinear (Plane GLdouble) | |
| ObjectLinear (Plane GLdouble) | |
| SphereMap | |
| NormalMap | |
| ReflectionMap |
Instances
| Show TextureGenMode | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods showsPrec :: Int -> TextureGenMode -> ShowS show :: TextureGenMode -> String showList :: [TextureGenMode] -> ShowS | |
| Eq TextureGenMode | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods (==) :: TextureGenMode -> TextureGenMode -> Bool (/=) :: TextureGenMode -> TextureGenMode -> Bool | |
| Ord TextureGenMode | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods compare :: TextureGenMode -> TextureGenMode -> Ordering (<) :: TextureGenMode -> TextureGenMode -> Bool (<=) :: TextureGenMode -> TextureGenMode -> Bool (>) :: TextureGenMode -> TextureGenMode -> Bool (>=) :: TextureGenMode -> TextureGenMode -> Bool max :: TextureGenMode -> TextureGenMode -> TextureGenMode min :: TextureGenMode -> TextureGenMode -> TextureGenMode | |
Instances
| Matrix GLmatrix | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods withNewMatrix :: MatrixComponent c => MatrixOrder -> (Ptr c -> IO ()) -> IO (GLmatrix c) # withMatrix :: MatrixComponent c => GLmatrix c -> (MatrixOrder -> Ptr c -> IO a) -> IO a # newMatrix :: MatrixComponent c => MatrixOrder -> [c] -> IO (GLmatrix c) # getMatrixComponents :: MatrixComponent c => MatrixOrder -> GLmatrix c -> IO [c] # | |
| MatrixComponent a => Uniform (GLmatrix a) | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods uniform :: UniformLocation -> StateVar (GLmatrix a) # uniformv :: UniformLocation -> GLsizei -> Ptr (GLmatrix a) -> IO () # | |
| Show (GLmatrix a) | |
| Eq (GLmatrix a) | |
| Ord (GLmatrix a) | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans | |
class Matrix (m :: Type -> Type) where #
Minimal complete definition
Nothing
Methods
withNewMatrix :: MatrixComponent c => MatrixOrder -> (Ptr c -> IO ()) -> IO (m c) #
withMatrix :: MatrixComponent c => m c -> (MatrixOrder -> Ptr c -> IO a) -> IO a #
newMatrix :: MatrixComponent c => MatrixOrder -> [c] -> IO (m c) #
getMatrixComponents :: MatrixComponent c => MatrixOrder -> m c -> IO [c] #
Instances
| Matrix GLmatrix | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods withNewMatrix :: MatrixComponent c => MatrixOrder -> (Ptr c -> IO ()) -> IO (GLmatrix c) # withMatrix :: MatrixComponent c => GLmatrix c -> (MatrixOrder -> Ptr c -> IO a) -> IO a # newMatrix :: MatrixComponent c => MatrixOrder -> [c] -> IO (GLmatrix c) # getMatrixComponents :: MatrixComponent c => MatrixOrder -> GLmatrix c -> IO [c] # | |
Constructors
| Plane !a !a !a !a |
Instances
| Storable a => Storable (Plane a) | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods peekElemOff :: Ptr (Plane a) -> Int -> IO (Plane a) pokeElemOff :: Ptr (Plane a) -> Int -> Plane a -> IO () peekByteOff :: Ptr b -> Int -> IO (Plane a) pokeByteOff :: Ptr b -> Int -> Plane a -> IO () | |
| Show a => Show (Plane a) | |
| Eq a => Eq (Plane a) | |
| Ord a => Ord (Plane a) | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans | |
data TextureCoordName #
Instances
| Show TextureCoordName | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods showsPrec :: Int -> TextureCoordName -> ShowS show :: TextureCoordName -> String showList :: [TextureCoordName] -> ShowS | |
| Eq TextureCoordName | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods (==) :: TextureCoordName -> TextureCoordName -> Bool (/=) :: TextureCoordName -> TextureCoordName -> Bool | |
| Ord TextureCoordName | |
Defined in Graphics.Rendering.OpenGL.GL.CoordTrans Methods compare :: TextureCoordName -> TextureCoordName -> Ordering (<) :: TextureCoordName -> TextureCoordName -> Bool (<=) :: TextureCoordName -> TextureCoordName -> Bool (>) :: TextureCoordName -> TextureCoordName -> Bool (>=) :: TextureCoordName -> TextureCoordName -> Bool max :: TextureCoordName -> TextureCoordName -> TextureCoordName min :: TextureCoordName -> TextureCoordName -> TextureCoordName | |
depthRange :: StateVar (GLclampd, GLclampd) #
loadIdentity :: IO () #
matrix :: (Matrix m, MatrixComponent c) => Maybe MatrixMode -> StateVar (m c) #
multMatrix :: (Matrix m, MatrixComponent c) => m c -> IO () #
preservingMatrix :: IO a -> IO a #
stackDepth :: Maybe MatrixMode -> GettableStateVar GLsizei #
textureGenMode :: TextureCoordName -> StateVar (Maybe TextureGenMode) #
unsafePreservingMatrix :: IO a -> IO a #
data DataRepresentation #
Constructors
| SignedNormalizedRepresentation | |
| UnsignedNormalizedRepresentation | |
| FloatRepresentation | |
| IntRepresentation | |
| UnsignedIntRepresentation |
Instances
| Show DataRepresentation | |
Defined in Graphics.Rendering.OpenGL.GL.DataType Methods showsPrec :: Int -> DataRepresentation -> ShowS show :: DataRepresentation -> String showList :: [DataRepresentation] -> ShowS | |
| Eq DataRepresentation | |
Defined in Graphics.Rendering.OpenGL.GL.DataType Methods (==) :: DataRepresentation -> DataRepresentation -> Bool (/=) :: DataRepresentation -> DataRepresentation -> Bool | |
| Ord DataRepresentation | |
Defined in Graphics.Rendering.OpenGL.GL.DataType Methods compare :: DataRepresentation -> DataRepresentation -> Ordering (<) :: DataRepresentation -> DataRepresentation -> Bool (<=) :: DataRepresentation -> DataRepresentation -> Bool (>) :: DataRepresentation -> DataRepresentation -> Bool (>=) :: DataRepresentation -> DataRepresentation -> Bool max :: DataRepresentation -> DataRepresentation -> DataRepresentation min :: DataRepresentation -> DataRepresentation -> DataRepresentation | |
class CanBeLabeled a where #
Methods
objectLabel :: a -> StateVar (Maybe String) #
Instances
data DebugGroup #
Constructors
| DebugGroup DebugSource DebugMessageID String |
data DebugMessage #
Constructors
| DebugMessage DebugSource DebugType DebugMessageID DebugSeverity String |
Instances
| Show DebugMessage | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods showsPrec :: Int -> DebugMessage -> ShowS show :: DebugMessage -> String showList :: [DebugMessage] -> ShowS | |
| Eq DebugMessage | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput | |
| Ord DebugMessage | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods compare :: DebugMessage -> DebugMessage -> Ordering (<) :: DebugMessage -> DebugMessage -> Bool (<=) :: DebugMessage -> DebugMessage -> Bool (>) :: DebugMessage -> DebugMessage -> Bool (>=) :: DebugMessage -> DebugMessage -> Bool max :: DebugMessage -> DebugMessage -> DebugMessage min :: DebugMessage -> DebugMessage -> DebugMessage | |
newtype DebugMessageID #
Constructors
| DebugMessageID GLuint |
Instances
| Show DebugMessageID | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods showsPrec :: Int -> DebugMessageID -> ShowS show :: DebugMessageID -> String showList :: [DebugMessageID] -> ShowS | |
| Eq DebugMessageID | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods (==) :: DebugMessageID -> DebugMessageID -> Bool (/=) :: DebugMessageID -> DebugMessageID -> Bool | |
| Ord DebugMessageID | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods compare :: DebugMessageID -> DebugMessageID -> Ordering (<) :: DebugMessageID -> DebugMessageID -> Bool (<=) :: DebugMessageID -> DebugMessageID -> Bool (>) :: DebugMessageID -> DebugMessageID -> Bool (>=) :: DebugMessageID -> DebugMessageID -> Bool max :: DebugMessageID -> DebugMessageID -> DebugMessageID min :: DebugMessageID -> DebugMessageID -> DebugMessageID | |
data DebugSeverity #
Instances
| Show DebugSeverity | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods showsPrec :: Int -> DebugSeverity -> ShowS show :: DebugSeverity -> String showList :: [DebugSeverity] -> ShowS | |
| Eq DebugSeverity | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput | |
| Ord DebugSeverity | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods compare :: DebugSeverity -> DebugSeverity -> Ordering (<) :: DebugSeverity -> DebugSeverity -> Bool (<=) :: DebugSeverity -> DebugSeverity -> Bool (>) :: DebugSeverity -> DebugSeverity -> Bool (>=) :: DebugSeverity -> DebugSeverity -> Bool max :: DebugSeverity -> DebugSeverity -> DebugSeverity min :: DebugSeverity -> DebugSeverity -> DebugSeverity | |
data DebugSource #
Constructors
| DebugSourceAPI | |
| DebugSourceShaderCompiler | |
| DebugSourceWindowSystem | |
| DebugSourceThirdParty | |
| DebugSourceApplication | |
| DebugSourceOther |
Instances
| Show DebugSource | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods showsPrec :: Int -> DebugSource -> ShowS show :: DebugSource -> String showList :: [DebugSource] -> ShowS | |
| Eq DebugSource | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput | |
| Ord DebugSource | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods compare :: DebugSource -> DebugSource -> Ordering (<) :: DebugSource -> DebugSource -> Bool (<=) :: DebugSource -> DebugSource -> Bool (>) :: DebugSource -> DebugSource -> Bool (>=) :: DebugSource -> DebugSource -> Bool max :: DebugSource -> DebugSource -> DebugSource min :: DebugSource -> DebugSource -> DebugSource | |
Constructors
| DebugTypeError | |
| DebugTypeDeprecatedBehavior | |
| DebugTypeUndefinedBehavior | |
| DebugTypePerformance | |
| DebugTypePortability | |
| DebugTypeMarker | |
| DebugTypePushGroup | |
| DebugTypePopGroup | |
| DebugTypeOther |
Instances
| Show DebugType | |
| Eq DebugType | |
| Ord DebugType | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput | |
data MessageGroup #
Constructors
| MessageGroup (Maybe DebugSource) (Maybe DebugType) (Maybe DebugSeverity) | |
| MessageGroupWithIDs DebugSource DebugType [DebugMessageID] |
Instances
| Show MessageGroup | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods showsPrec :: Int -> MessageGroup -> ShowS show :: MessageGroup -> String showList :: [MessageGroup] -> ShowS | |
| Eq MessageGroup | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput | |
| Ord MessageGroup | |
Defined in Graphics.Rendering.OpenGL.GL.DebugOutput Methods compare :: MessageGroup -> MessageGroup -> Ordering (<) :: MessageGroup -> MessageGroup -> Bool (<=) :: MessageGroup -> MessageGroup -> Bool (>) :: MessageGroup -> MessageGroup -> Bool (>=) :: MessageGroup -> MessageGroup -> Bool max :: MessageGroup -> MessageGroup -> MessageGroup min :: MessageGroup -> MessageGroup -> MessageGroup | |
debugLoggedMessages :: IO [DebugMessage] #
debugMessageCallback :: StateVar (Maybe (DebugMessage -> IO ())) #
debugMessageInsert :: DebugMessage -> IO () #
popDebugGroup :: IO () #
pushDebugGroup :: DebugSource -> DebugMessageID -> String -> IO () #
withDebugGroup :: DebugSource -> DebugMessageID -> String -> IO a -> IO a #
Constructors
| Compile | |
| CompileAndExecute |
Instances
| Show ListMode | |
| Eq ListMode | |
| Ord ListMode | |
Defined in Graphics.Rendering.OpenGL.GL.DisplayLists | |
newtype DisplayList #
Constructors
| DisplayList GLuint |
Instances
callList :: DisplayList -> IO () #
defineList :: DisplayList -> ListMode -> IO a -> IO a #
defineNewList :: ListMode -> IO a -> IO DisplayList #
listIndex :: GettableStateVar (Maybe DisplayList) #
class Storable d => Domain d where #
Minimal complete definition
glMap1, glMap2, glGetMapv, evalCoord1, evalCoord1v, evalCoord2, evalCoord2v, glMapGrid1, glMapGrid2, get2, get4
Methods
evalCoord1 :: d -> IO () #
evalCoord1v :: Ptr d -> IO () #
evalCoord2 :: (d, d) -> IO () #
evalCoord2v :: Ptr d -> IO () #
Instances
Constructors
| BeginsInteriorEdge | |
| BeginsBoundaryEdge |
Instances
| Show EdgeFlag | |
| Eq EdgeFlag | |
| Ord EdgeFlag | |
Defined in Graphics.Rendering.OpenGL.GL.EdgeFlag | |
data GLmap1 (c :: Type -> Type) d #
Instances
| Map1 GLmap1 | |
Defined in Graphics.Rendering.OpenGL.GL.Evaluators Methods withNewMap1 :: forall (c :: Type -> Type) d. (ControlPoint c, Domain d) => MapDescriptor d -> (Ptr d -> IO ()) -> IO (GLmap1 c d) # withMap1 :: forall (c :: Type -> Type) d a. (ControlPoint c, Domain d) => GLmap1 c d -> (MapDescriptor d -> Ptr d -> IO a) -> IO a # newMap1 :: (ControlPoint c, Domain d) => (d, d) -> [c d] -> IO (GLmap1 c d) # getMap1Components :: (ControlPoint c, Domain d) => GLmap1 c d -> IO ((d, d), [c d]) # | |
| Show d => Show (GLmap1 c d) | |
| Eq d => Eq (GLmap1 c d) | |
| Ord d => Ord (GLmap1 c d) | |
Defined in Graphics.Rendering.OpenGL.GL.Evaluators | |
data GLmap2 (c :: Type -> Type) d #
Instances
| Map2 GLmap2 | |
Defined in Graphics.Rendering.OpenGL.GL.Evaluators Methods withNewMap2 :: forall (c :: Type -> Type) d. (ControlPoint c, Domain d) => MapDescriptor d -> MapDescriptor d -> (Ptr d -> IO ()) -> IO (GLmap2 c d) # withMap2 :: forall (c :: Type -> Type) d a. (ControlPoint c, Domain d) => GLmap2 c d -> (MapDescriptor d -> MapDescriptor d -> Ptr d -> IO a) -> IO a # newMap2 :: (ControlPoint c, Domain d) => (d, d) -> (d, d) -> [[c d]] -> IO (GLmap2 c d) # getMap2Components :: (ControlPoint c, Domain d) => GLmap2 c d -> IO ((d, d), (d, d), [[c d]]) # | |
| Show d => Show (GLmap2 c d) | |
| Eq d => Eq (GLmap2 c d) | |
| Ord d => Ord (GLmap2 c d) | |
Defined in Graphics.Rendering.OpenGL.GL.Evaluators | |
class Map1 (m :: (Type -> Type) -> Type -> Type) where #
Minimal complete definition
Nothing
Methods
withNewMap1 :: forall (c :: Type -> Type) d. (ControlPoint c, Domain d) => MapDescriptor d -> (Ptr d -> IO ()) -> IO (m c d) #
withMap1 :: forall (c :: Type -> Type) d a. (ControlPoint c, Domain d) => m c d -> (MapDescriptor d -> Ptr d -> IO a) -> IO a #
newMap1 :: (ControlPoint c, Domain d) => (d, d) -> [c d] -> IO (m c d) #
getMap1Components :: (ControlPoint c, Domain d) => m c d -> IO ((d, d), [c d]) #
Instances
| Map1 GLmap1 | |
Defined in Graphics.Rendering.OpenGL.GL.Evaluators Methods withNewMap1 :: forall (c :: Type -> Type) d. (ControlPoint c, Domain d) => MapDescriptor d -> (Ptr d -> IO ()) -> IO (GLmap1 c d) # withMap1 :: forall (c :: Type -> Type) d a. (ControlPoint c, Domain d) => GLmap1 c d -> (MapDescriptor d -> Ptr d -> IO a) -> IO a # newMap1 :: (ControlPoint c, Domain d) => (d, d) -> [c d] -> IO (GLmap1 c d) # getMap1Components :: (ControlPoint c, Domain d) => GLmap1 c d -> IO ((d, d), [c d]) # | |
class Map2 (m :: (Type -> Type) -> Type -> Type) where #
Minimal complete definition
Nothing
Methods
withNewMap2 :: forall (c :: Type -> Type) d. (ControlPoint c, Domain d) => MapDescriptor d -> MapDescriptor d -> (Ptr d -> IO ()) -> IO (m c d) #
withMap2 :: forall (c :: Type -> Type) d a. (ControlPoint c, Domain d) => m c d -> (MapDescriptor d -> MapDescriptor d -> Ptr d -> IO a) -> IO a #
newMap2 :: (ControlPoint c, Domain d) => (d, d) -> (d, d) -> [[c d]] -> IO (m c d) #
getMap2Components :: (ControlPoint c, Domain d) => m c d -> IO ((d, d), (d, d), [[c d]]) #
Instances
| Map2 GLmap2 | |
Defined in Graphics.Rendering.OpenGL.GL.Evaluators Methods withNewMap2 :: forall (c :: Type -> Type) d. (ControlPoint c, Domain d) => MapDescriptor d -> MapDescriptor d -> (Ptr d -> IO ()) -> IO (GLmap2 c d) # withMap2 :: forall (c :: Type -> Type) d a. (ControlPoint c, Domain d) => GLmap2 c d -> (MapDescriptor d -> MapDescriptor d -> Ptr d -> IO a) -> IO a # newMap2 :: (ControlPoint c, Domain d) => (d, d) -> (d, d) -> [[c d]] -> IO (GLmap2 c d) # getMap2Components :: (ControlPoint c, Domain d) => GLmap2 c d -> IO ((d, d), (d, d), [[c d]]) # | |
data MapDescriptor d #
Constructors
| MapDescriptor (d, d) Stride Order NumComponents |
Instances
| Show d => Show (MapDescriptor d) | |
Defined in Graphics.Rendering.OpenGL.GL.Evaluators Methods showsPrec :: Int -> MapDescriptor d -> ShowS show :: MapDescriptor d -> String showList :: [MapDescriptor d] -> ShowS | |
| Eq d => Eq (MapDescriptor d) | |
Defined in Graphics.Rendering.OpenGL.GL.Evaluators Methods (==) :: MapDescriptor d -> MapDescriptor d -> Bool (/=) :: MapDescriptor d -> MapDescriptor d -> Bool | |
| Ord d => Ord (MapDescriptor d) | |
Defined in Graphics.Rendering.OpenGL.GL.Evaluators Methods compare :: MapDescriptor d -> MapDescriptor d -> Ordering (<) :: MapDescriptor d -> MapDescriptor d -> Bool (<=) :: MapDescriptor d -> MapDescriptor d -> Bool (>) :: MapDescriptor d -> MapDescriptor d -> Bool (>=) :: MapDescriptor d -> MapDescriptor d -> Bool max :: MapDescriptor d -> MapDescriptor d -> MapDescriptor d min :: MapDescriptor d -> MapDescriptor d -> MapDescriptor d | |
evalMesh1 :: PolygonMode -> (GLint, GLint) -> IO () #
evalPoint1 :: GLint -> IO () #
evalPoint2 :: (GLint, GLint) -> IO () #
map1 :: forall m (c :: Type -> Type) d. (Map1 m, ControlPoint c, Domain d) => StateVar (Maybe (m c d)) #
map2 :: forall m (c :: Type -> Type) d. (Map2 m, ControlPoint c, Domain d) => StateVar (Maybe (m c d)) #
data FeedbackToken #
Constructors
Instances
| Show FeedbackToken | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback Methods showsPrec :: Int -> FeedbackToken -> ShowS show :: FeedbackToken -> String showList :: [FeedbackToken] -> ShowS | |
| Eq FeedbackToken | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback | |
| Ord FeedbackToken | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback Methods compare :: FeedbackToken -> FeedbackToken -> Ordering (<) :: FeedbackToken -> FeedbackToken -> Bool (<=) :: FeedbackToken -> FeedbackToken -> Bool (>) :: FeedbackToken -> FeedbackToken -> Bool (>=) :: FeedbackToken -> FeedbackToken -> Bool max :: FeedbackToken -> FeedbackToken -> FeedbackToken min :: FeedbackToken -> FeedbackToken -> FeedbackToken | |
data FeedbackType #
Constructors
| TwoD | |
| ThreeD | |
| ThreeDColor | |
| ThreeDColorTexture | |
| FourDColorTexture |
Instances
| Show FeedbackType | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback Methods showsPrec :: Int -> FeedbackType -> ShowS show :: FeedbackType -> String showList :: [FeedbackType] -> ShowS | |
| Eq FeedbackType | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback | |
| Ord FeedbackType | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback Methods compare :: FeedbackType -> FeedbackType -> Ordering (<) :: FeedbackType -> FeedbackType -> Bool (<=) :: FeedbackType -> FeedbackType -> Bool (>) :: FeedbackType -> FeedbackType -> Bool (>=) :: FeedbackType -> FeedbackType -> Bool max :: FeedbackType -> FeedbackType -> FeedbackType min :: FeedbackType -> FeedbackType -> FeedbackType | |
newtype PassThroughValue #
Constructors
| PassThroughValue GLfloat |
Instances
| Show PassThroughValue | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback Methods showsPrec :: Int -> PassThroughValue -> ShowS show :: PassThroughValue -> String showList :: [PassThroughValue] -> ShowS | |
| Eq PassThroughValue | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback Methods (==) :: PassThroughValue -> PassThroughValue -> Bool (/=) :: PassThroughValue -> PassThroughValue -> Bool | |
| Ord PassThroughValue | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback Methods compare :: PassThroughValue -> PassThroughValue -> Ordering (<) :: PassThroughValue -> PassThroughValue -> Bool (<=) :: PassThroughValue -> PassThroughValue -> Bool (>) :: PassThroughValue -> PassThroughValue -> Bool (>=) :: PassThroughValue -> PassThroughValue -> Bool max :: PassThroughValue -> PassThroughValue -> PassThroughValue min :: PassThroughValue -> PassThroughValue -> PassThroughValue | |
data VertexInfo #
Constructors
Instances
| Show VertexInfo | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback Methods showsPrec :: Int -> VertexInfo -> ShowS show :: VertexInfo -> String showList :: [VertexInfo] -> ShowS | |
| Eq VertexInfo | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback | |
| Ord VertexInfo | |
Defined in Graphics.Rendering.OpenGL.GL.Feedback Methods compare :: VertexInfo -> VertexInfo -> Ordering (<) :: VertexInfo -> VertexInfo -> Bool (<=) :: VertexInfo -> VertexInfo -> Bool (>) :: VertexInfo -> VertexInfo -> Bool (>=) :: VertexInfo -> VertexInfo -> Bool max :: VertexInfo -> VertexInfo -> VertexInfo min :: VertexInfo -> VertexInfo -> VertexInfo | |
getFeedbackTokens :: GLsizei -> FeedbackType -> IO a -> IO (a, Maybe [FeedbackToken]) #
passThrough :: PassThroughValue -> IO () #
data FogDistanceMode #
Constructors
| EyeRadial | |
| EyePlaneSigned | |
| EyePlaneAbsolute |
Instances
| Show FogDistanceMode | |
Defined in Graphics.Rendering.OpenGL.GL.Fog Methods showsPrec :: Int -> FogDistanceMode -> ShowS show :: FogDistanceMode -> String showList :: [FogDistanceMode] -> ShowS | |
| Eq FogDistanceMode | |
Defined in Graphics.Rendering.OpenGL.GL.Fog Methods (==) :: FogDistanceMode -> FogDistanceMode -> Bool (/=) :: FogDistanceMode -> FogDistanceMode -> Bool | |
| Ord FogDistanceMode | |
Defined in Graphics.Rendering.OpenGL.GL.Fog Methods compare :: FogDistanceMode -> FogDistanceMode -> Ordering (<) :: FogDistanceMode -> FogDistanceMode -> Bool (<=) :: FogDistanceMode -> FogDistanceMode -> Bool (>) :: FogDistanceMode -> FogDistanceMode -> Bool (>=) :: FogDistanceMode -> FogDistanceMode -> Bool max :: FogDistanceMode -> FogDistanceMode -> FogDistanceMode min :: FogDistanceMode -> FogDistanceMode -> FogDistanceMode | |
Instances
| FogCoordComponent a => FogCoord (FogCoord1 a) | |
data FogCoordSrc #
Constructors
| FogCoord | |
| FragmentDepth |
Instances
| Show FogCoordSrc | |
Defined in Graphics.Rendering.OpenGL.GL.Fog Methods showsPrec :: Int -> FogCoordSrc -> ShowS show :: FogCoordSrc -> String showList :: [FogCoordSrc] -> ShowS | |
| Eq FogCoordSrc | |
Defined in Graphics.Rendering.OpenGL.GL.Fog | |
| Ord FogCoordSrc | |
Defined in Graphics.Rendering.OpenGL.GL.Fog Methods compare :: FogCoordSrc -> FogCoordSrc -> Ordering (<) :: FogCoordSrc -> FogCoordSrc -> Bool (<=) :: FogCoordSrc -> FogCoordSrc -> Bool (>) :: FogCoordSrc -> FogCoordSrc -> Bool (>=) :: FogCoordSrc -> FogCoordSrc -> Bool max :: FogCoordSrc -> FogCoordSrc -> FogCoordSrc min :: FogCoordSrc -> FogCoordSrc -> FogCoordSrc | |
fog :: StateVar Capability #
Instances
| Show AccumOp | |
| Eq AccumOp | |
| Ord AccumOp | |
Defined in Graphics.Rendering.OpenGL.GL.Framebuffer | |
data ClearBuffer #
Constructors
| ColorBuffer | |
| AccumBuffer | |
| StencilBuffer | |
| DepthBuffer |
Instances
| Show ClearBuffer | |
Defined in Graphics.Rendering.OpenGL.GL.Framebuffer Methods showsPrec :: Int -> ClearBuffer -> ShowS show :: ClearBuffer -> String showList :: [ClearBuffer] -> ShowS | |
| Eq ClearBuffer | |
Defined in Graphics.Rendering.OpenGL.GL.Framebuffer | |
| Ord ClearBuffer | |
Defined in Graphics.Rendering.OpenGL.GL.Framebuffer Methods compare :: ClearBuffer -> ClearBuffer -> Ordering (<) :: ClearBuffer -> ClearBuffer -> Bool (<=) :: ClearBuffer -> ClearBuffer -> Bool (>) :: ClearBuffer -> ClearBuffer -> Bool (>=) :: ClearBuffer -> ClearBuffer -> Bool max :: ClearBuffer -> ClearBuffer -> ClearBuffer min :: ClearBuffer -> ClearBuffer -> ClearBuffer | |
data ClearBufferCommand #
Constructors
Instances
| Show ClearBufferCommand | |
Defined in Graphics.Rendering.OpenGL.GL.Framebuffer Methods showsPrec :: Int -> ClearBufferCommand -> ShowS show :: ClearBufferCommand -> String showList :: [ClearBufferCommand] -> ShowS | |
| Eq ClearBufferCommand | |
Defined in Graphics.Rendering.OpenGL.GL.Framebuffer Methods (==) :: ClearBufferCommand -> ClearBufferCommand -> Bool (/=) :: ClearBufferCommand -> ClearBufferCommand -> Bool | |
| Ord ClearBufferCommand | |
Defined in Graphics.Rendering.OpenGL.GL.Framebuffer Methods compare :: ClearBufferCommand -> ClearBufferCommand -> Ordering (<) :: ClearBufferCommand -> ClearBufferCommand -> Bool (<=) :: ClearBufferCommand -> ClearBufferCommand -> Bool (>) :: ClearBufferCommand -> ClearBufferCommand -> Bool (>=) :: ClearBufferCommand -> ClearBufferCommand -> Bool max :: ClearBufferCommand -> ClearBufferCommand -> ClearBufferCommand min :: ClearBufferCommand -> ClearBufferCommand -> ClearBufferCommand | |
type DrawBufferIndex = GLuint #
clear :: [ClearBuffer] -> IO () #
clearAccum :: StateVar (Color4 GLfloat) #
clearBuffer :: ClearBufferCommand -> IO () #
clearColor :: StateVar (Color4 GLfloat) #
clearIndex :: StateVar (Index1 GLfloat) #
clearNamedFramebuffer :: FramebufferObject -> ClearBufferCommand -> IO () #
colorMask :: StateVar (Color4 Capability) #
colorMaski :: DrawBufferIndex -> StateVar (Color4 Capability) #
doubleBuffer :: GettableStateVar Bool #
drawBuffers :: StateVar [BufferMode] #
invalidateFramebuffer :: FramebufferTarget -> [FramebufferObjectAttachment] -> IO () #
invalidateNamedFramebufferData :: FramebufferObject -> [FramebufferObjectAttachment] -> IO () #
invalidateNamedFramebufferSubData :: FramebufferObject -> [FramebufferObjectAttachment] -> (Position, Size) -> IO () #
invalidateSubFramebuffer :: FramebufferTarget -> [FramebufferObjectAttachment] -> (Position, Size) -> IO () #
rgbaSignedComponents :: GettableStateVar (Color4 Bool) #
stencilMaskSeparate :: Face -> StateVar GLuint #
stereoBuffer :: GettableStateVar Bool #
framebufferRenderbuffer :: FramebufferTarget -> FramebufferObjectAttachment -> RenderbufferTarget -> RenderbufferObject -> IO () #
framebufferTexture1D :: FramebufferTarget -> FramebufferObjectAttachment -> TextureTarget1D -> TextureObject -> Level -> IO () #
framebufferTexture2D :: FramebufferTarget -> FramebufferObjectAttachment -> TextureTarget2D -> TextureObject -> Level -> IO () #
framebufferTexture3D :: FramebufferTarget -> FramebufferObjectAttachment -> TextureTarget3D -> TextureObject -> Level -> GLint -> IO () #
framebufferTextureLayer :: FramebufferTarget -> FramebufferObjectAttachment -> TextureObject -> Level -> GLint -> IO () #
data FramebufferObject #
Instances
data FramebufferObjectAttachment #
Instances
class Show a => FramebufferAttachment a where #
Methods
marshalAttachment :: a -> Maybe GLenum #
unmarshalAttachment :: GLenum -> a #
unmarshalAttachmentSafe :: GLenum -> Maybe a #
Instances
fboaFromBufferMode :: BufferMode -> Maybe FramebufferObjectAttachment #
fboaToBufferMode :: FramebufferObjectAttachment -> Maybe BufferMode #
data FramebufferStatus #
Constructors
| Complete | |
| Undefined | |
| IncompleteMissingAttachment | |
| IncompleteDrawBuffer | |
| IncompleteReadBuffer | |
| IncompleteMultiSample | |
| Unsupported |
Instances
| Show FramebufferStatus | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferObjects Methods showsPrec :: Int -> FramebufferStatus -> ShowS show :: FramebufferStatus -> String showList :: [FramebufferStatus] -> ShowS | |
| Eq FramebufferStatus | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferObjects Methods (==) :: FramebufferStatus -> FramebufferStatus -> Bool (/=) :: FramebufferStatus -> FramebufferStatus -> Bool | |
| Ord FramebufferStatus | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferObjects Methods compare :: FramebufferStatus -> FramebufferStatus -> Ordering (<) :: FramebufferStatus -> FramebufferStatus -> Bool (<=) :: FramebufferStatus -> FramebufferStatus -> Bool (>) :: FramebufferStatus -> FramebufferStatus -> Bool (>=) :: FramebufferStatus -> FramebufferStatus -> Bool max :: FramebufferStatus -> FramebufferStatus -> FramebufferStatus min :: FramebufferStatus -> FramebufferStatus -> FramebufferStatus | |
data FramebufferTarget #
Constructors
| DrawFramebuffer | |
| ReadFramebuffer | |
| Framebuffer |
Instances
| Show FramebufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferTarget Methods showsPrec :: Int -> FramebufferTarget -> ShowS show :: FramebufferTarget -> String showList :: [FramebufferTarget] -> ShowS | |
| Eq FramebufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferTarget Methods (==) :: FramebufferTarget -> FramebufferTarget -> Bool (/=) :: FramebufferTarget -> FramebufferTarget -> Bool | |
| Ord FramebufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.FramebufferTarget Methods compare :: FramebufferTarget -> FramebufferTarget -> Ordering (<) :: FramebufferTarget -> FramebufferTarget -> Bool (<=) :: FramebufferTarget -> FramebufferTarget -> Bool (>) :: FramebufferTarget -> FramebufferTarget -> Bool (>=) :: FramebufferTarget -> FramebufferTarget -> Bool max :: FramebufferTarget -> FramebufferTarget -> FramebufferTarget min :: FramebufferTarget -> FramebufferTarget -> FramebufferTarget | |
data AttachmentObjectType #
Instances
attachmentAlphaSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint #
attachmentBlueSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint #
attachmentDepthSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint #
attachmentGreenSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint #
attachmentObject :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar (Maybe (Either RenderbufferObject TextureObject)) #
attachmentObjectType :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar (Maybe AttachmentObjectType) #
attachmentRedSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint #
attachmentStencilSize :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint #
attachmentTextureLayer :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar GLint #
attachmentTextureLevel :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar Level #
attachmentTextureTextureTargetCubeMapFace :: FramebufferAttachment fba => FramebufferTarget -> fba -> GettableStateVar TextureTargetCubeMapFace #
data RenderbufferObject #
Instances
data RenderbufferSize #
Constructors
| RenderbufferSize !GLsizei !GLsizei |
Instances
| Show RenderbufferSize | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.RenderbufferObjects Methods showsPrec :: Int -> RenderbufferSize -> ShowS show :: RenderbufferSize -> String showList :: [RenderbufferSize] -> ShowS | |
| Eq RenderbufferSize | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.RenderbufferObjects Methods (==) :: RenderbufferSize -> RenderbufferSize -> Bool (/=) :: RenderbufferSize -> RenderbufferSize -> Bool | |
| Ord RenderbufferSize | |
Defined in Graphics.Rendering.OpenGL.GL.FramebufferObjects.RenderbufferObjects Methods compare :: RenderbufferSize -> RenderbufferSize -> Ordering (<) :: RenderbufferSize -> RenderbufferSize -> Bool (<=) :: RenderbufferSize -> RenderbufferSize -> Bool (>) :: RenderbufferSize -> RenderbufferSize -> Bool (>=) :: RenderbufferSize -> RenderbufferSize -> Bool max :: RenderbufferSize -> RenderbufferSize -> RenderbufferSize min :: RenderbufferSize -> RenderbufferSize -> RenderbufferSize | |
renderbufferStorage :: RenderbufferTarget -> PixelInternalFormat -> RenderbufferSize -> IO () #
renderbufferStorageMultiSample :: RenderbufferTarget -> Samples -> PixelInternalFormat -> RenderbufferSize -> IO () #
data RenderbufferTarget #
Constructors
| Renderbuffer |
Instances
Instances
| Show Samples | |
| Eq Samples | |
| Ord Samples | |
Instances
| Show HintMode | |
| Eq HintMode | |
| Ord HintMode | |
Defined in Graphics.Rendering.OpenGL.GL.Hints | |
data HintTarget #
Constructors
| PerspectiveCorrection | |
| PointSmooth | |
| LineSmooth | |
| PolygonSmooth | |
| Fog | |
| GenerateMipmap | |
| TextureCompression | |
| PackCMYK | |
| UnpackCMYK |
Instances
| Show HintTarget | |
Defined in Graphics.Rendering.OpenGL.GL.Hints Methods showsPrec :: Int -> HintTarget -> ShowS show :: HintTarget -> String showList :: [HintTarget] -> ShowS | |
| Eq HintTarget | |
Defined in Graphics.Rendering.OpenGL.GL.Hints | |
| Ord HintTarget | |
Defined in Graphics.Rendering.OpenGL.GL.Hints Methods compare :: HintTarget -> HintTarget -> Ordering (<) :: HintTarget -> HintTarget -> Bool (<=) :: HintTarget -> HintTarget -> Bool (>) :: HintTarget -> HintTarget -> Bool (>=) :: HintTarget -> HintTarget -> Bool max :: HintTarget -> HintTarget -> HintTarget min :: HintTarget -> HintTarget -> HintTarget | |
hint :: HintTarget -> StateVar HintMode #
lineStipple :: StateVar (Maybe (GLint, GLushort)) #
class Storable c => MatrixComponent c where #
Minimal complete definition
getMatrix, loadMatrix, loadTransposeMatrix, multMatrix_, multTransposeMatrix, getUniformv, uniformMatrix4v, rotate, translate, scale
Instances
| MatrixComponent GLdouble | |
Defined in Graphics.Rendering.OpenGL.GL.MatrixComponent Methods getMatrix :: GetPNameMatrix p => p -> Ptr GLdouble -> IO () loadMatrix :: Ptr GLdouble -> IO () loadTransposeMatrix :: Ptr GLdouble -> IO () multMatrix_ :: Ptr GLdouble -> IO () multTransposeMatrix :: Ptr GLdouble -> IO () getUniformv :: GLuint -> GLint -> Ptr GLdouble -> IO () uniformMatrix4v :: GLint -> GLsizei -> GLboolean -> Ptr GLdouble -> IO () rotate :: GLdouble -> Vector3 GLdouble -> IO () # | |
| MatrixComponent GLfloat | |
Defined in Graphics.Rendering.OpenGL.GL.MatrixComponent Methods getMatrix :: GetPNameMatrix p => p -> Ptr GLfloat -> IO () loadMatrix :: Ptr GLfloat -> IO () loadTransposeMatrix :: Ptr GLfloat -> IO () multMatrix_ :: Ptr GLfloat -> IO () multTransposeMatrix :: Ptr GLfloat -> IO () getUniformv :: GLuint -> GLint -> Ptr GLfloat -> IO () uniformMatrix4v :: GLint -> GLsizei -> GLboolean -> Ptr GLfloat -> IO () rotate :: GLfloat -> Vector3 GLfloat -> IO () # | |
Constructors
| Clear | |
| And | |
| AndReverse | |
| Copy | |
| AndInverted | |
| Noop | |
| Xor | |
| Or | |
| Nor | |
| Equiv | |
| Invert | |
| OrReverse | |
| CopyInverted | |
| OrInverted | |
| Nand | |
| Set |
Instances
| Show LogicOp | |
| Eq LogicOp | |
| Ord LogicOp | |
Defined in Graphics.Rendering.OpenGL.GL.PerFragment | |
data BlendEquation #
Constructors
| FuncAdd | |
| FuncSubtract | |
| FuncReverseSubtract | |
| Min | |
| Max | |
| LogicOp |
Instances
| Show BlendEquation | |
Defined in Graphics.Rendering.OpenGL.GL.PerFragment Methods showsPrec :: Int -> BlendEquation -> ShowS show :: BlendEquation -> String showList :: [BlendEquation] -> ShowS | |
| Eq BlendEquation | |
Defined in Graphics.Rendering.OpenGL.GL.PerFragment | |
| Ord BlendEquation | |
Defined in Graphics.Rendering.OpenGL.GL.PerFragment Methods compare :: BlendEquation -> BlendEquation -> Ordering (<) :: BlendEquation -> BlendEquation -> Bool (<=) :: BlendEquation -> BlendEquation -> Bool (>) :: BlendEquation -> BlendEquation -> Bool (>=) :: BlendEquation -> BlendEquation -> Bool max :: BlendEquation -> BlendEquation -> BlendEquation min :: BlendEquation -> BlendEquation -> BlendEquation | |
Constructors
| OpZero | |
| OpKeep | |
| OpReplace | |
| OpIncr | |
| OpIncrWrap | |
| OpDecr | |
| OpDecrWrap | |
| OpInvert |
Instances
| Show StencilOp | |
| Eq StencilOp | |
| Ord StencilOp | |
Defined in Graphics.Rendering.OpenGL.GL.PerFragment | |
activeStencilFace :: StateVar (Maybe Face) #
alphaFunc :: StateVar (Maybe (ComparisonFunction, GLclampf)) #
blend :: StateVar Capability #
blendColor :: StateVar (Color4 GLclampf) #
blendFuncSeparate :: StateVar ((BlendingFactor, BlendingFactor), (BlendingFactor, BlendingFactor)) #
depthBounds :: StateVar (Maybe (GLclampd, GLclampd)) #
depthFunc :: StateVar (Maybe ComparisonFunction) #
discardingRasterizer :: IO a -> IO a #
sampleCoverage :: StateVar (Maybe (GLclampf, Bool)) #
stencilFuncSeparate :: Face -> StateVar (ComparisonFunction, GLint, GLuint) #
Constructors
| PixelData PixelFormat DataType (Ptr a) |
Instances
| Show (PixelData a) | |
| Eq (PixelData a) | |
| Ord (PixelData a) | |
Defined in Graphics.Rendering.OpenGL.GL.PixelData | |
data PixelFormat #
Constructors
Instances
| Show PixelFormat | |
Defined in Graphics.Rendering.OpenGL.GL.PixelFormat Methods showsPrec :: Int -> PixelFormat -> ShowS show :: PixelFormat -> String showList :: [PixelFormat] -> ShowS | |
| Eq PixelFormat | |
Defined in Graphics.Rendering.OpenGL.GL.PixelFormat | |
| Ord PixelFormat | |
Defined in Graphics.Rendering.OpenGL.GL.PixelFormat Methods compare :: PixelFormat -> PixelFormat -> Ordering (<) :: PixelFormat -> PixelFormat -> Bool (<=) :: PixelFormat -> PixelFormat -> Bool (>) :: PixelFormat -> PixelFormat -> Bool (>=) :: PixelFormat -> PixelFormat -> Bool max :: PixelFormat -> PixelFormat -> PixelFormat min :: PixelFormat -> PixelFormat -> PixelFormat | |
data ColorTable #
Constructors
| ColorTable | |
| PostConvolutionColorTable | |
| PostColorMatrixColorTable | |
| Texture1DColorTable | |
| Texture2DColorTable | |
| Texture3DColorTable | |
| TextureCubeMapColorTable | |
| TextureColorTable | |
| SharedTexturePalette |
Instances
| Show ColorTable | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods showsPrec :: Int -> ColorTable -> ShowS show :: ColorTable -> String showList :: [ColorTable] -> ShowS | |
| Eq ColorTable | |
| Ord ColorTable | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods compare :: ColorTable -> ColorTable -> Ordering (<) :: ColorTable -> ColorTable -> Bool (<=) :: ColorTable -> ColorTable -> Bool (>) :: ColorTable -> ColorTable -> Bool (>=) :: ColorTable -> ColorTable -> Bool max :: ColorTable -> ColorTable -> ColorTable min :: ColorTable -> ColorTable -> ColorTable | |
data ColorTableStage #
Constructors
| ColorTableStage | |
| PostConvolutionColorTableStage | |
| PostColorMatrixColorTableStage | |
| TextureColorTableStage |
Instances
| Show ColorTableStage | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods showsPrec :: Int -> ColorTableStage -> ShowS show :: ColorTableStage -> String showList :: [ColorTableStage] -> ShowS | |
| Eq ColorTableStage | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods (==) :: ColorTableStage -> ColorTableStage -> Bool (/=) :: ColorTableStage -> ColorTableStage -> Bool | |
| Ord ColorTableStage | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.ColorTable Methods compare :: ColorTableStage -> ColorTableStage -> Ordering (<) :: ColorTableStage -> ColorTableStage -> Bool (<=) :: ColorTableStage -> ColorTableStage -> Bool (>) :: ColorTableStage -> ColorTableStage -> Bool (>=) :: ColorTableStage -> ColorTableStage -> Bool max :: ColorTableStage -> ColorTableStage -> ColorTableStage min :: ColorTableStage -> ColorTableStage -> ColorTableStage | |
colorSubTable :: ColorTable -> GLsizei -> GLsizei -> PixelData a -> IO () #
colorTable :: Proxy -> ColorTable -> PixelInternalFormat -> GLsizei -> PixelData a -> IO () #
colorTableBias :: ColorTableStage -> StateVar (Color4 GLfloat) #
colorTableScale :: ColorTableStage -> StateVar (Color4 GLfloat) #
copyColorSubTable :: ColorTable -> GLsizei -> Position -> GLsizei -> IO () #
copyColorTable :: ColorTable -> PixelInternalFormat -> Position -> GLsizei -> IO () #
getColorTable :: ColorTable -> PixelData a -> IO () #
data ConvolutionBorderMode #
Constructors
| Reduce | |
| ConstantBorder (Color4 GLfloat) | |
| ReplicateBorder |
Instances
data ConvolutionTarget #
Constructors
| Convolution1D | |
| Convolution2D | |
| Separable2D |
Instances
| Show ConvolutionTarget | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.Convolution Methods showsPrec :: Int -> ConvolutionTarget -> ShowS show :: ConvolutionTarget -> String showList :: [ConvolutionTarget] -> ShowS | |
| Eq ConvolutionTarget | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.Convolution Methods (==) :: ConvolutionTarget -> ConvolutionTarget -> Bool (/=) :: ConvolutionTarget -> ConvolutionTarget -> Bool | |
| Ord ConvolutionTarget | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.Convolution Methods compare :: ConvolutionTarget -> ConvolutionTarget -> Ordering (<) :: ConvolutionTarget -> ConvolutionTarget -> Bool (<=) :: ConvolutionTarget -> ConvolutionTarget -> Bool (>) :: ConvolutionTarget -> ConvolutionTarget -> Bool (>=) :: ConvolutionTarget -> ConvolutionTarget -> Bool max :: ConvolutionTarget -> ConvolutionTarget -> ConvolutionTarget min :: ConvolutionTarget -> ConvolutionTarget -> ConvolutionTarget | |
convolutionFilter1D :: PixelInternalFormat -> GLsizei -> PixelData a -> IO () #
convolutionFilter2D :: PixelInternalFormat -> Size -> PixelData a -> IO () #
copyConvolutionFilter1D :: PixelInternalFormat -> Position -> GLsizei -> IO () #
copyConvolutionFilter2D :: PixelInternalFormat -> Position -> Size -> IO () #
getConvolutionFilter1D :: PixelData a -> IO () #
getConvolutionFilter2D :: PixelData a -> IO () #
getSeparableFilter2D :: PixelData a -> PixelData a -> IO () #
separableFilter2D :: PixelInternalFormat -> Size -> PixelData a -> PixelData a -> IO () #
getHistogram :: Reset -> PixelData a -> IO () #
resetHistogram :: IO () #
minmax :: StateVar (Maybe (PixelInternalFormat, Sink)) #
resetMinmax :: IO () #
data PixelMapTarget #
Instances
| Show PixelMapTarget | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelMap Methods showsPrec :: Int -> PixelMapTarget -> ShowS show :: PixelMapTarget -> String showList :: [PixelMapTarget] -> ShowS | |
| Eq PixelMapTarget | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelMap Methods (==) :: PixelMapTarget -> PixelMapTarget -> Bool (/=) :: PixelMapTarget -> PixelMapTarget -> Bool | |
| Ord PixelMapTarget | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelMap Methods compare :: PixelMapTarget -> PixelMapTarget -> Ordering (<) :: PixelMapTarget -> PixelMapTarget -> Bool (<=) :: PixelMapTarget -> PixelMapTarget -> Bool (>) :: PixelMapTarget -> PixelMapTarget -> Bool (>=) :: PixelMapTarget -> PixelMapTarget -> Bool max :: PixelMapTarget -> PixelMapTarget -> PixelMapTarget min :: PixelMapTarget -> PixelMapTarget -> PixelMapTarget | |
data GLpixelmap a #
Instances
class PixelMap (m :: Type -> Type) where #
Minimal complete definition
Nothing
Methods
withNewPixelMap :: PixelMapComponent c => Int -> (Ptr c -> IO ()) -> IO (m c) #
withPixelMap :: PixelMapComponent c => m c -> (Int -> Ptr c -> IO a) -> IO a #
newPixelMap :: PixelMapComponent c => [c] -> IO (m c) #
getPixelMapComponents :: PixelMapComponent c => m c -> IO [c] #
Instances
| PixelMap GLpixelmap | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelMap Methods withNewPixelMap :: PixelMapComponent c => Int -> (Ptr c -> IO ()) -> IO (GLpixelmap c) # withPixelMap :: PixelMapComponent c => GLpixelmap c -> (Int -> Ptr c -> IO a) -> IO a # newPixelMap :: PixelMapComponent c => [c] -> IO (GLpixelmap c) # getPixelMapComponents :: PixelMapComponent c => GLpixelmap c -> IO [c] # | |
class Storable c => PixelMapComponent c #
Minimal complete definition
getPixelMapv, pixelMapv
pixelMap :: (PixelMap m, PixelMapComponent c) => PixelMapTarget -> StateVar (m c) #
pixelMapIToRGBA :: PixelMapComponent c => StateVar [Color4 c] #
pixelMapRGBAToRGBA :: PixelMapComponent c => StateVar [Color4 c] #
data PixelStoreDirection #
Instances
| Show PixelStoreDirection | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelStorage Methods showsPrec :: Int -> PixelStoreDirection -> ShowS show :: PixelStoreDirection -> String showList :: [PixelStoreDirection] -> ShowS | |
| Eq PixelStoreDirection | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelStorage Methods (==) :: PixelStoreDirection -> PixelStoreDirection -> Bool (/=) :: PixelStoreDirection -> PixelStoreDirection -> Bool | |
| Ord PixelStoreDirection | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelStorage Methods compare :: PixelStoreDirection -> PixelStoreDirection -> Ordering (<) :: PixelStoreDirection -> PixelStoreDirection -> Bool (<=) :: PixelStoreDirection -> PixelStoreDirection -> Bool (>) :: PixelStoreDirection -> PixelStoreDirection -> Bool (>=) :: PixelStoreDirection -> PixelStoreDirection -> Bool max :: PixelStoreDirection -> PixelStoreDirection -> PixelStoreDirection min :: PixelStoreDirection -> PixelStoreDirection -> PixelStoreDirection | |
lsbFirst :: PixelStoreDirection -> StateVar Bool #
swapBytes :: PixelStoreDirection -> StateVar Bool #
data PixelTransferStage #
Constructors
| PreConvolution | |
| PostConvolution | |
| PostColorMatrix |
Instances
| Show PixelTransferStage | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelTransfer Methods showsPrec :: Int -> PixelTransferStage -> ShowS show :: PixelTransferStage -> String showList :: [PixelTransferStage] -> ShowS | |
| Eq PixelTransferStage | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelTransfer Methods (==) :: PixelTransferStage -> PixelTransferStage -> Bool (/=) :: PixelTransferStage -> PixelTransferStage -> Bool | |
| Ord PixelTransferStage | |
Defined in Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelTransfer Methods compare :: PixelTransferStage -> PixelTransferStage -> Ordering (<) :: PixelTransferStage -> PixelTransferStage -> Bool (<=) :: PixelTransferStage -> PixelTransferStage -> Bool (>) :: PixelTransferStage -> PixelTransferStage -> Bool (>=) :: PixelTransferStage -> PixelTransferStage -> Bool max :: PixelTransferStage -> PixelTransferStage -> PixelTransferStage min :: PixelTransferStage -> PixelTransferStage -> PixelTransferStage | |
indexShift :: StateVar GLint #
drawPixels :: Size -> PixelData a -> IO () #
Constructors
| PassThrough | |
| Sink |
data PixellikeObjectGetPName #
class PixellikeObjectTarget t where #
Minimal complete definition
marshalPixellikeOT, pixObjTarQueryFunc
Methods
pixellikeObjTarParam :: t -> PixellikeObjectGetPName -> GettableStateVar GLint #
Instances
| PixellikeObjectTarget RenderbufferTarget | |
Defined in Graphics.Rendering.OpenGL.GL.PixellikeObject | |
| PixellikeObjectTarget FramebufferTargetAttachment | |
Defined in Graphics.Rendering.OpenGL.GL.PixellikeObject Methods marshalPixellikeOT :: FramebufferTargetAttachment -> PixellikeObjectGetPName -> GLenum pixObjTarQueryFunc :: FramebufferTargetAttachment -> GLenum -> IO GLint pixellikeObjTarParam :: FramebufferTargetAttachment -> PixellikeObjectGetPName -> GettableStateVar GLint # | |
| QueryableTextureTarget t => PixellikeObjectTarget (TextureTargetFull t) | |
Defined in Graphics.Rendering.OpenGL.GL.PixellikeObject Methods marshalPixellikeOT :: TextureTargetFull t -> PixellikeObjectGetPName -> GLenum pixObjTarQueryFunc :: TextureTargetFull t -> GLenum -> IO GLint pixellikeObjTarParam :: TextureTargetFull t -> PixellikeObjectGetPName -> GettableStateVar GLint # | |
pointSizeRange :: StateVar (GLfloat, GLfloat) #
data PolygonMode #
Instances
| Show PolygonMode | |
Defined in Graphics.Rendering.OpenGL.GL.PolygonMode Methods showsPrec :: Int -> PolygonMode -> ShowS show :: PolygonMode -> String showList :: [PolygonMode] -> ShowS | |
| Eq PolygonMode | |
Defined in Graphics.Rendering.OpenGL.GL.PolygonMode | |
| Ord PolygonMode | |
Defined in Graphics.Rendering.OpenGL.GL.PolygonMode Methods compare :: PolygonMode -> PolygonMode -> Ordering (<) :: PolygonMode -> PolygonMode -> Bool (<=) :: PolygonMode -> PolygonMode -> Bool (>) :: PolygonMode -> PolygonMode -> Bool (>=) :: PolygonMode -> PolygonMode -> Bool max :: PolygonMode -> PolygonMode -> PolygonMode min :: PolygonMode -> PolygonMode -> PolygonMode | |
data GLpolygonstipple #
Instances
class PolygonStipple s where #
Minimal complete definition
Nothing
Methods
withNewPolygonStipple :: (Ptr GLubyte -> IO ()) -> IO s #
withPolygonStipple :: s -> (Ptr GLubyte -> IO a) -> IO a #
newPolygonStipple :: [GLubyte] -> IO s #
getPolygonStippleComponents :: s -> IO [GLubyte] #
Instances
| PolygonStipple GLpolygonstipple | |
Defined in Graphics.Rendering.OpenGL.GL.Polygons Methods withNewPolygonStipple :: (Ptr GLubyte -> IO ()) -> IO GLpolygonstipple # withPolygonStipple :: GLpolygonstipple -> (Ptr GLubyte -> IO a) -> IO a # newPolygonStipple :: [GLubyte] -> IO GLpolygonstipple # getPolygonStippleComponents :: GLpolygonstipple -> IO [GLubyte] # | |
polygonOffset :: StateVar (GLfloat, GLfloat) #
polygonStipple :: PolygonStipple s => StateVar (Maybe s) #
data PrimitiveMode #
Constructors
| Points | |
| Lines | |
| LineLoop | |
| LineStrip | |
| Triangles | |
| TriangleStrip | |
| TriangleFan | |
| Quads | |
| QuadStrip | |
| Polygon | |
| Patches |
Instances
| Show PrimitiveMode | |
Defined in Graphics.Rendering.OpenGL.GL.PrimitiveMode Methods showsPrec :: Int -> PrimitiveMode -> ShowS show :: PrimitiveMode -> String showList :: [PrimitiveMode] -> ShowS | |
| Eq PrimitiveMode | |
Defined in Graphics.Rendering.OpenGL.GL.PrimitiveMode | |
| Ord PrimitiveMode | |
Defined in Graphics.Rendering.OpenGL.GL.PrimitiveMode Methods compare :: PrimitiveMode -> PrimitiveMode -> Ordering (<) :: PrimitiveMode -> PrimitiveMode -> Bool (<=) :: PrimitiveMode -> PrimitiveMode -> Bool (>) :: PrimitiveMode -> PrimitiveMode -> Bool (>=) :: PrimitiveMode -> PrimitiveMode -> Bool max :: PrimitiveMode -> PrimitiveMode -> PrimitiveMode min :: PrimitiveMode -> PrimitiveMode -> PrimitiveMode | |
data QueryObject #
Instances
data QueryTarget #
Constructors
| SamplesPassed | |
| AnySamplesPassed | |
| AnySamplesPassedConservative | |
| TimeElapsed | |
| PrimitivesGenerated QueryIndex | |
| TransformFeedbackPrimitivesWritten QueryIndex |
Instances
| Show QueryTarget | |
Defined in Graphics.Rendering.OpenGL.GL.QueryObjects Methods showsPrec :: Int -> QueryTarget -> ShowS show :: QueryTarget -> String showList :: [QueryTarget] -> ShowS | |
| Eq QueryTarget | |
Defined in Graphics.Rendering.OpenGL.GL.QueryObjects | |
| Ord QueryTarget | |
Defined in Graphics.Rendering.OpenGL.GL.QueryObjects Methods compare :: QueryTarget -> QueryTarget -> Ordering (<) :: QueryTarget -> QueryTarget -> Bool (<=) :: QueryTarget -> QueryTarget -> Bool (>) :: QueryTarget -> QueryTarget -> Bool (>=) :: QueryTarget -> QueryTarget -> Bool max :: QueryTarget -> QueryTarget -> QueryTarget min :: QueryTarget -> QueryTarget -> QueryTarget | |
type QueryIndex = GLuint #
class Storable a => QueryResult a #
Minimal complete definition
getQueryObjectv
Instances
| QueryResult GLint | |
Defined in Graphics.Rendering.OpenGL.GL.QueryObjects Methods getQueryObjectv :: GLuint -> GLenum -> Ptr GLint -> IO () | |
| QueryResult GLint64 | |
Defined in Graphics.Rendering.OpenGL.GL.QueryObjects Methods getQueryObjectv :: GLuint -> GLenum -> Ptr GLint64 -> IO () | |
| QueryResult GLuint | |
Defined in Graphics.Rendering.OpenGL.GL.QueryObjects Methods getQueryObjectv :: GLuint -> GLenum -> Ptr GLuint -> IO () | |
| QueryResult GLuint64 | |
Defined in Graphics.Rendering.OpenGL.GL.QueryObjects Methods getQueryObjectv :: GLuint -> GLenum -> Ptr GLuint64 -> IO () | |
beginQuery :: QueryTarget -> QueryObject -> IO () #
currentQuery :: QueryTarget -> GettableStateVar (Maybe QueryObject) #
endQuery :: QueryTarget -> IO () #
queryResult :: QueryResult a => QueryObject -> GettableStateVar a #
queryResultAvailable :: QueryObject -> GettableStateVar Bool #
timestampQuery :: QueryObject -> IO () #
withQuery :: QueryTarget -> QueryObject -> IO a -> IO a #
Instances
| RasterPosComponent a => RasterPos (Vertex2 a) | |
Defined in Graphics.Rendering.OpenGL.GL.RasterPos | |
| RasterPosComponent a => RasterPos (Vertex3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.RasterPos | |
| RasterPosComponent a => RasterPos (Vertex4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.RasterPos | |
class RasterPosComponent a #
Minimal complete definition
rasterPos2, rasterPos3, rasterPos4, rasterPos2v, rasterPos3v, rasterPos4v
Instances
Instances
| WindowPosComponent a => WindowPos (Vertex2 a) | |
Defined in Graphics.Rendering.OpenGL.GL.RasterPos | |
| WindowPosComponent a => WindowPos (Vertex3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.RasterPos | |
class WindowPosComponent a #
Minimal complete definition
windowPos2, windowPos3, windowPos2v, windowPos3v
Instances
| WindowPosComponent GLdouble | |
Defined in Graphics.Rendering.OpenGL.GL.RasterPos Methods windowPos2 :: GLdouble -> GLdouble -> IO () windowPos3 :: GLdouble -> GLdouble -> GLdouble -> IO () windowPos2v :: Ptr GLdouble -> IO () windowPos3v :: Ptr GLdouble -> IO () | |
| WindowPosComponent GLfloat | |
Defined in Graphics.Rendering.OpenGL.GL.RasterPos Methods windowPos2 :: GLfloat -> GLfloat -> IO () windowPos3 :: GLfloat -> GLfloat -> GLfloat -> IO () windowPos2v :: Ptr GLfloat -> IO () windowPos3v :: Ptr GLfloat -> IO () | |
| WindowPosComponent GLint | |
Defined in Graphics.Rendering.OpenGL.GL.RasterPos Methods windowPos2 :: GLint -> GLint -> IO () windowPos3 :: GLint -> GLint -> GLint -> IO () windowPos2v :: Ptr GLint -> IO () windowPos3v :: Ptr GLint -> IO () | |
| WindowPosComponent GLshort | |
Defined in Graphics.Rendering.OpenGL.GL.RasterPos Methods windowPos2 :: GLshort -> GLshort -> IO () windowPos3 :: GLshort -> GLshort -> GLshort -> IO () windowPos2v :: Ptr GLshort -> IO () windowPos3v :: Ptr GLshort -> IO () | |
data BlitBuffer #
Constructors
| ColorBuffer' | |
| StencilBuffer' | |
| DepthBuffer' |
Instances
| Show BlitBuffer | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels Methods showsPrec :: Int -> BlitBuffer -> ShowS show :: BlitBuffer -> String showList :: [BlitBuffer] -> ShowS | |
| Eq BlitBuffer | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels | |
| Ord BlitBuffer | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels Methods compare :: BlitBuffer -> BlitBuffer -> Ordering (<) :: BlitBuffer -> BlitBuffer -> Bool (<=) :: BlitBuffer -> BlitBuffer -> Bool (>) :: BlitBuffer -> BlitBuffer -> Bool (>=) :: BlitBuffer -> BlitBuffer -> Bool max :: BlitBuffer -> BlitBuffer -> BlitBuffer min :: BlitBuffer -> BlitBuffer -> BlitBuffer | |
data PixelCopyType #
Constructors
| CopyColor | |
| CopyDepth | |
| CopyStencil |
Instances
| Show PixelCopyType | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels Methods showsPrec :: Int -> PixelCopyType -> ShowS show :: PixelCopyType -> String showList :: [PixelCopyType] -> ShowS | |
| Eq PixelCopyType | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels | |
| Ord PixelCopyType | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels Methods compare :: PixelCopyType -> PixelCopyType -> Ordering (<) :: PixelCopyType -> PixelCopyType -> Bool (<=) :: PixelCopyType -> PixelCopyType -> Bool (>) :: PixelCopyType -> PixelCopyType -> Bool (>=) :: PixelCopyType -> PixelCopyType -> Bool max :: PixelCopyType -> PixelCopyType -> PixelCopyType min :: PixelCopyType -> PixelCopyType -> PixelCopyType | |
blitFramebuffer :: Position -> Position -> Position -> Position -> [BlitBuffer] -> TextureFilter -> IO () #
copyPixels :: Position -> Size -> PixelCopyType -> IO () #
readPixels :: Position -> Size -> PixelData a -> IO () #
data RenderMode #
Instances
| Show RenderMode | |
Defined in Graphics.Rendering.OpenGL.GL.RenderMode Methods showsPrec :: Int -> RenderMode -> ShowS show :: RenderMode -> String showList :: [RenderMode] -> ShowS | |
| Eq RenderMode | |
Defined in Graphics.Rendering.OpenGL.GL.RenderMode | |
| Ord RenderMode | |
Defined in Graphics.Rendering.OpenGL.GL.RenderMode Methods compare :: RenderMode -> RenderMode -> Ordering (<) :: RenderMode -> RenderMode -> Bool (<=) :: RenderMode -> RenderMode -> Bool (>) :: RenderMode -> RenderMode -> Bool (>=) :: RenderMode -> RenderMode -> Bool max :: RenderMode -> RenderMode -> RenderMode min :: RenderMode -> RenderMode -> RenderMode | |
data ServerAttributeGroup #
Constructors
Instances
| Show ServerAttributeGroup | |
Defined in Graphics.Rendering.OpenGL.GL.SavingState Methods showsPrec :: Int -> ServerAttributeGroup -> ShowS show :: ServerAttributeGroup -> String showList :: [ServerAttributeGroup] -> ShowS | |
| Eq ServerAttributeGroup | |
Defined in Graphics.Rendering.OpenGL.GL.SavingState Methods (==) :: ServerAttributeGroup -> ServerAttributeGroup -> Bool (/=) :: ServerAttributeGroup -> ServerAttributeGroup -> Bool | |
| Ord ServerAttributeGroup | |
Defined in Graphics.Rendering.OpenGL.GL.SavingState Methods compare :: ServerAttributeGroup -> ServerAttributeGroup -> Ordering (<) :: ServerAttributeGroup -> ServerAttributeGroup -> Bool (<=) :: ServerAttributeGroup -> ServerAttributeGroup -> Bool (>) :: ServerAttributeGroup -> ServerAttributeGroup -> Bool (>=) :: ServerAttributeGroup -> ServerAttributeGroup -> Bool max :: ServerAttributeGroup -> ServerAttributeGroup -> ServerAttributeGroup min :: ServerAttributeGroup -> ServerAttributeGroup -> ServerAttributeGroup | |
data ClientAttributeGroup #
Instances
| Show ClientAttributeGroup | |
Defined in Graphics.Rendering.OpenGL.GL.SavingState Methods showsPrec :: Int -> ClientAttributeGroup -> ShowS show :: ClientAttributeGroup -> String showList :: [ClientAttributeGroup] -> ShowS | |
| Eq ClientAttributeGroup | |
Defined in Graphics.Rendering.OpenGL.GL.SavingState Methods (==) :: ClientAttributeGroup -> ClientAttributeGroup -> Bool (/=) :: ClientAttributeGroup -> ClientAttributeGroup -> Bool | |
| Ord ClientAttributeGroup | |
Defined in Graphics.Rendering.OpenGL.GL.SavingState Methods compare :: ClientAttributeGroup -> ClientAttributeGroup -> Ordering (<) :: ClientAttributeGroup -> ClientAttributeGroup -> Bool (<=) :: ClientAttributeGroup -> ClientAttributeGroup -> Bool (>) :: ClientAttributeGroup -> ClientAttributeGroup -> Bool (>=) :: ClientAttributeGroup -> ClientAttributeGroup -> Bool max :: ClientAttributeGroup -> ClientAttributeGroup -> ClientAttributeGroup min :: ClientAttributeGroup -> ClientAttributeGroup -> ClientAttributeGroup | |
preservingAttrib :: [ServerAttributeGroup] -> IO a -> IO a #
preservingClientAttrib :: [ClientAttributeGroup] -> IO a -> IO a #
Instances
| Show HitRecord | |
| Eq HitRecord | |
| Ord HitRecord | |
Defined in Graphics.Rendering.OpenGL.GL.Selection | |
getHitRecords :: GLsizei -> IO a -> IO (a, Maybe [HitRecord]) #
activeAttribs :: Program -> GettableStateVar [(GLint, VariableType, String)] #
attribLocation :: Program -> String -> StateVar AttribLocation #
Instances
| ObjectName Program | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Program Methods isObjectName :: MonadIO m => Program -> m Bool # deleteObjectName :: MonadIO m => Program -> m () # deleteObjectNames :: MonadIO m => [Program] -> m () # | |
| CanBeLabeled Program | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Program Methods objectLabel :: Program -> StateVar (Maybe String) # | |
| Show Program | |
| Eq Program | |
| Ord Program | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Program | |
data ProgramBinary #
Constructors
| ProgramBinary ProgramBinaryFormat ByteString |
Instances
| Show ProgramBinary | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ProgramBinaries Methods showsPrec :: Int -> ProgramBinary -> ShowS show :: ProgramBinary -> String showList :: [ProgramBinary] -> ShowS | |
| Eq ProgramBinary | |
| Ord ProgramBinary | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ProgramBinaries Methods compare :: ProgramBinary -> ProgramBinary -> Ordering (<) :: ProgramBinary -> ProgramBinary -> Bool (<=) :: ProgramBinary -> ProgramBinary -> Bool (>) :: ProgramBinary -> ProgramBinary -> Bool (>=) :: ProgramBinary -> ProgramBinary -> Bool max :: ProgramBinary -> ProgramBinary -> ProgramBinary min :: ProgramBinary -> ProgramBinary -> ProgramBinary | |
newtype ProgramBinaryFormat #
Constructors
| ProgramBinaryFormat GLenum |
Instances
| Show ProgramBinaryFormat | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ProgramBinaries Methods showsPrec :: Int -> ProgramBinaryFormat -> ShowS show :: ProgramBinaryFormat -> String showList :: [ProgramBinaryFormat] -> ShowS | |
| Eq ProgramBinaryFormat | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ProgramBinaries Methods (==) :: ProgramBinaryFormat -> ProgramBinaryFormat -> Bool (/=) :: ProgramBinaryFormat -> ProgramBinaryFormat -> Bool | |
| Ord ProgramBinaryFormat | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ProgramBinaries Methods compare :: ProgramBinaryFormat -> ProgramBinaryFormat -> Ordering (<) :: ProgramBinaryFormat -> ProgramBinaryFormat -> Bool (<=) :: ProgramBinaryFormat -> ProgramBinaryFormat -> Bool (>) :: ProgramBinaryFormat -> ProgramBinaryFormat -> Bool (>=) :: ProgramBinaryFormat -> ProgramBinaryFormat -> Bool max :: ProgramBinaryFormat -> ProgramBinaryFormat -> ProgramBinaryFormat min :: ProgramBinaryFormat -> ProgramBinaryFormat -> ProgramBinaryFormat | |
attachShader :: Program -> Shader -> IO () #
attachedShaders :: Program -> StateVar [Shader] #
bindFragDataLocation :: Program -> String -> SettableStateVar DrawBufferIndex #
createProgram :: IO Program #
currentProgram :: StateVar (Maybe Program) #
detachShader :: Program -> Shader -> IO () #
getFragDataLocation :: Program -> String -> IO (Maybe DrawBufferIndex) #
linkProgram :: Program -> IO () #
linkStatus :: Program -> GettableStateVar Bool #
programBinaryRetrievableHint :: Program -> StateVar Bool #
programDeleteStatus :: Program -> GettableStateVar Bool #
programInfoLog :: Program -> GettableStateVar String #
programSeparable :: Program -> StateVar Bool #
validateProgram :: Program -> IO () #
validateStatus :: Program -> GettableStateVar Bool #
Instances
| ObjectName Shader | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Shader Methods isObjectName :: MonadIO m => Shader -> m Bool # deleteObjectName :: MonadIO m => Shader -> m () # deleteObjectNames :: MonadIO m => [Shader] -> m () # | |
| CanBeLabeled Shader | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Shader Methods objectLabel :: Shader -> StateVar (Maybe String) # | |
| Show Shader | |
| Eq Shader | |
| Ord Shader | |
data ShaderBinary #
Constructors
| ShaderBinary ShaderBinaryFormat ByteString |
Instances
| Show ShaderBinary | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ShaderBinaries Methods showsPrec :: Int -> ShaderBinary -> ShowS show :: ShaderBinary -> String showList :: [ShaderBinary] -> ShowS | |
| Eq ShaderBinary | |
| Ord ShaderBinary | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ShaderBinaries Methods compare :: ShaderBinary -> ShaderBinary -> Ordering (<) :: ShaderBinary -> ShaderBinary -> Bool (<=) :: ShaderBinary -> ShaderBinary -> Bool (>) :: ShaderBinary -> ShaderBinary -> Bool (>=) :: ShaderBinary -> ShaderBinary -> Bool max :: ShaderBinary -> ShaderBinary -> ShaderBinary min :: ShaderBinary -> ShaderBinary -> ShaderBinary | |
newtype ShaderBinaryFormat #
Constructors
| ShaderBinaryFormat GLenum |
Instances
| Show ShaderBinaryFormat | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ShaderBinaries Methods showsPrec :: Int -> ShaderBinaryFormat -> ShowS show :: ShaderBinaryFormat -> String showList :: [ShaderBinaryFormat] -> ShowS | |
| Eq ShaderBinaryFormat | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ShaderBinaries Methods (==) :: ShaderBinaryFormat -> ShaderBinaryFormat -> Bool (/=) :: ShaderBinaryFormat -> ShaderBinaryFormat -> Bool | |
| Ord ShaderBinaryFormat | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ShaderBinaries Methods compare :: ShaderBinaryFormat -> ShaderBinaryFormat -> Ordering (<) :: ShaderBinaryFormat -> ShaderBinaryFormat -> Bool (<=) :: ShaderBinaryFormat -> ShaderBinaryFormat -> Bool (>) :: ShaderBinaryFormat -> ShaderBinaryFormat -> Bool (>=) :: ShaderBinaryFormat -> ShaderBinaryFormat -> Bool max :: ShaderBinaryFormat -> ShaderBinaryFormat -> ShaderBinaryFormat min :: ShaderBinaryFormat -> ShaderBinaryFormat -> ShaderBinaryFormat | |
shaderBinary :: [Shader] -> SettableStateVar ShaderBinary #
data ShaderType #
Constructors
| VertexShader | |
| TessControlShader | |
| TessEvaluationShader | |
| GeometryShader | |
| FragmentShader | |
| ComputeShader |
Instances
| Show ShaderType | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ShaderObjects Methods showsPrec :: Int -> ShaderType -> ShowS show :: ShaderType -> String showList :: [ShaderType] -> ShowS | |
| Eq ShaderType | |
| Ord ShaderType | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ShaderObjects Methods compare :: ShaderType -> ShaderType -> Ordering (<) :: ShaderType -> ShaderType -> Bool (<=) :: ShaderType -> ShaderType -> Bool (>) :: ShaderType -> ShaderType -> Bool (>=) :: ShaderType -> ShaderType -> Bool max :: ShaderType -> ShaderType -> ShaderType min :: ShaderType -> ShaderType -> ShaderType | |
data PrecisionType #
Instances
| Show PrecisionType | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ShaderObjects Methods showsPrec :: Int -> PrecisionType -> ShowS show :: PrecisionType -> String showList :: [PrecisionType] -> ShowS | |
| Eq PrecisionType | |
| Ord PrecisionType | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.ShaderObjects Methods compare :: PrecisionType -> PrecisionType -> Ordering (<) :: PrecisionType -> PrecisionType -> Bool (<=) :: PrecisionType -> PrecisionType -> Bool (>) :: PrecisionType -> PrecisionType -> Bool (>=) :: PrecisionType -> PrecisionType -> Bool max :: PrecisionType -> PrecisionType -> PrecisionType min :: PrecisionType -> PrecisionType -> PrecisionType | |
compileShader :: Shader -> IO () #
compileStatus :: Shader -> GettableStateVar Bool #
createShader :: ShaderType -> IO Shader #
releaseShaderCompiler :: IO () #
shaderCompiler :: GettableStateVar Bool #
shaderDeleteStatus :: Shader -> GettableStateVar Bool #
shaderInfoLog :: Shader -> GettableStateVar String #
shaderPrecisionFormat :: ShaderType -> PrecisionType -> GettableStateVar ((GLint, GLint), GLint) #
shaderSource :: Shader -> StateVar [String] #
shaderSourceBS :: Shader -> StateVar ByteString #
Methods
uniform :: UniformLocation -> StateVar a #
uniformv :: UniformLocation -> GLsizei -> Ptr a -> IO () #
Instances
class Storable a => UniformComponent a #
Minimal complete definition
uniform1, uniform2, uniform3, uniform4, getUniform, uniform1v, uniform2v, uniform3v, uniform4v
Instances
newtype UniformLocation #
Constructors
| UniformLocation GLint |
Instances
| Show UniformLocation | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods showsPrec :: Int -> UniformLocation -> ShowS show :: UniformLocation -> String showList :: [UniformLocation] -> ShowS | |
| Eq UniformLocation | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods (==) :: UniformLocation -> UniformLocation -> Bool (/=) :: UniformLocation -> UniformLocation -> Bool | |
| Ord UniformLocation | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods compare :: UniformLocation -> UniformLocation -> Ordering (<) :: UniformLocation -> UniformLocation -> Bool (<=) :: UniformLocation -> UniformLocation -> Bool (>) :: UniformLocation -> UniformLocation -> Bool (>=) :: UniformLocation -> UniformLocation -> Bool max :: UniformLocation -> UniformLocation -> UniformLocation min :: UniformLocation -> UniformLocation -> UniformLocation | |
activeUniforms :: Program -> GettableStateVar [(GLint, VariableType, String)] #
uniformLocation :: Program -> String -> GettableStateVar UniformLocation #
data ContextProfile' #
Constructors
| CoreProfile' | |
| CompatibilityProfile' |
Instances
| Show ContextProfile' | |
Defined in Graphics.Rendering.OpenGL.GL.StringQueries Methods showsPrec :: Int -> ContextProfile' -> ShowS show :: ContextProfile' -> String showList :: [ContextProfile'] -> ShowS | |
| Eq ContextProfile' | |
Defined in Graphics.Rendering.OpenGL.GL.StringQueries Methods (==) :: ContextProfile' -> ContextProfile' -> Bool (/=) :: ContextProfile' -> ContextProfile' -> Bool | |
| Ord ContextProfile' | |
Defined in Graphics.Rendering.OpenGL.GL.StringQueries Methods compare :: ContextProfile' -> ContextProfile' -> Ordering (<) :: ContextProfile' -> ContextProfile' -> Bool (<=) :: ContextProfile' -> ContextProfile' -> Bool (>) :: ContextProfile' -> ContextProfile' -> Bool (>=) :: ContextProfile' -> ContextProfile' -> Bool max :: ContextProfile' -> ContextProfile' -> ContextProfile' min :: ContextProfile' -> ContextProfile' -> ContextProfile' | |
extensionSupported :: String -> GettableStateVar Bool #
glExtensions :: GettableStateVar [String] #
glVersion :: GettableStateVar String #
majorMinor :: GettableStateVar String -> GettableStateVar (Int, Int) #
renderer :: GettableStateVar String #
shadingLanguageVersion :: GettableStateVar String #
vendor :: GettableStateVar String #
data WaitResult #
Constructors
| AlreadySignaled | |
| TimeoutExpired | |
| ConditionSatisfied | |
| WaitFailed |
Instances
| Show WaitResult | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods showsPrec :: Int -> WaitResult -> ShowS show :: WaitResult -> String showList :: [WaitResult] -> ShowS | |
| Eq WaitResult | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects | |
| Ord WaitResult | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods compare :: WaitResult -> WaitResult -> Ordering (<) :: WaitResult -> WaitResult -> Bool (<=) :: WaitResult -> WaitResult -> Bool (>) :: WaitResult -> WaitResult -> Bool (>=) :: WaitResult -> WaitResult -> Bool max :: WaitResult -> WaitResult -> WaitResult min :: WaitResult -> WaitResult -> WaitResult | |
data SyncStatus #
Constructors
| Unsignaled | |
| Signaled |
Instances
| Show SyncStatus | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods showsPrec :: Int -> SyncStatus -> ShowS show :: SyncStatus -> String showList :: [SyncStatus] -> ShowS | |
| Eq SyncStatus | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects | |
| Ord SyncStatus | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods compare :: SyncStatus -> SyncStatus -> Ordering (<) :: SyncStatus -> SyncStatus -> Bool (<=) :: SyncStatus -> SyncStatus -> Bool (>) :: SyncStatus -> SyncStatus -> Bool (>=) :: SyncStatus -> SyncStatus -> Bool max :: SyncStatus -> SyncStatus -> SyncStatus min :: SyncStatus -> SyncStatus -> SyncStatus | |
Constructors
| SyncFlushCommands |
Instances
| Show WaitFlag | |
| Eq WaitFlag | |
| Ord WaitFlag | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects | |
data SyncObject #
Instances
| ObjectName SyncObject | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods isObjectName :: MonadIO m => SyncObject -> m Bool # deleteObjectName :: MonadIO m => SyncObject -> m () # deleteObjectNames :: MonadIO m => [SyncObject] -> m () # | |
| CanBeLabeled SyncObject | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods objectLabel :: SyncObject -> StateVar (Maybe String) # | |
| Show SyncObject | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods showsPrec :: Int -> SyncObject -> ShowS show :: SyncObject -> String showList :: [SyncObject] -> ShowS | |
| Eq SyncObject | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects | |
| Ord SyncObject | |
Defined in Graphics.Rendering.OpenGL.GL.SyncObjects Methods compare :: SyncObject -> SyncObject -> Ordering (<) :: SyncObject -> SyncObject -> Bool (<=) :: SyncObject -> SyncObject -> Bool (>) :: SyncObject -> SyncObject -> Bool (>=) :: SyncObject -> SyncObject -> Bool max :: SyncObject -> SyncObject -> SyncObject min :: SyncObject -> SyncObject -> SyncObject | |
type WaitTimeout = GLuint64 #
clientWaitSync :: SyncObject -> [WaitFlag] -> WaitTimeout -> IO WaitResult #
waitSync :: SyncObject -> IO () #
Constructors
| Vector1 a |
Instances
| Applicative Vector1 | |
| Functor Vector1 | |
| Foldable Vector1 | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods fold :: Monoid m => Vector1 m -> m foldMap :: Monoid m => (a -> m) -> Vector1 a -> m foldMap' :: Monoid m => (a -> m) -> Vector1 a -> m foldr :: (a -> b -> b) -> b -> Vector1 a -> b foldr' :: (a -> b -> b) -> b -> Vector1 a -> b foldl :: (b -> a -> b) -> b -> Vector1 a -> b foldl' :: (b -> a -> b) -> b -> Vector1 a -> b foldr1 :: (a -> a -> a) -> Vector1 a -> a foldl1 :: (a -> a -> a) -> Vector1 a -> a elem :: Eq a => a -> Vector1 a -> Bool maximum :: Ord a => Vector1 a -> a minimum :: Ord a => Vector1 a -> a | |
| Traversable Vector1 | |
| UniformComponent a => Uniform (Vector1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods uniform :: UniformLocation -> StateVar (Vector1 a) # uniformv :: UniformLocation -> GLsizei -> Ptr (Vector1 a) -> IO () # | |
| VertexAttribComponent a => VertexAttrib (Vector1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods vertexAttrib :: IntegerHandling -> AttribLocation -> Vector1 a -> IO () # vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr (Vector1 a) -> IO () # | |
| Bounded a => Bounded (Vector1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Storable a => Storable (Vector1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods peekElemOff :: Ptr (Vector1 a) -> Int -> IO (Vector1 a) pokeElemOff :: Ptr (Vector1 a) -> Int -> Vector1 a -> IO () peekByteOff :: Ptr b -> Int -> IO (Vector1 a) pokeByteOff :: Ptr b -> Int -> Vector1 a -> IO () | |
| Ix a => Ix (Vector1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods range :: (Vector1 a, Vector1 a) -> [Vector1 a] index :: (Vector1 a, Vector1 a) -> Vector1 a -> Int unsafeIndex :: (Vector1 a, Vector1 a) -> Vector1 a -> Int inRange :: (Vector1 a, Vector1 a) -> Vector1 a -> Bool rangeSize :: (Vector1 a, Vector1 a) -> Int unsafeRangeSize :: (Vector1 a, Vector1 a) -> Int | |
| Read a => Read (Vector1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Show a => Show (Vector1 a) | |
| Eq a => Eq (Vector1 a) | |
| Ord a => Ord (Vector1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
Constructors
| Vector2 !a !a |
Instances
| Applicative Vector2 | |
| Functor Vector2 | |
| Foldable Vector2 | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods fold :: Monoid m => Vector2 m -> m foldMap :: Monoid m => (a -> m) -> Vector2 a -> m foldMap' :: Monoid m => (a -> m) -> Vector2 a -> m foldr :: (a -> b -> b) -> b -> Vector2 a -> b foldr' :: (a -> b -> b) -> b -> Vector2 a -> b foldl :: (b -> a -> b) -> b -> Vector2 a -> b foldl' :: (b -> a -> b) -> b -> Vector2 a -> b foldr1 :: (a -> a -> a) -> Vector2 a -> a foldl1 :: (a -> a -> a) -> Vector2 a -> a elem :: Eq a => a -> Vector2 a -> Bool maximum :: Ord a => Vector2 a -> a minimum :: Ord a => Vector2 a -> a | |
| Traversable Vector2 | |
| UniformComponent a => Uniform (Vector2 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods uniform :: UniformLocation -> StateVar (Vector2 a) # uniformv :: UniformLocation -> GLsizei -> Ptr (Vector2 a) -> IO () # | |
| VertexAttribComponent a => VertexAttrib (Vector2 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods vertexAttrib :: IntegerHandling -> AttribLocation -> Vector2 a -> IO () # vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr (Vector2 a) -> IO () # | |
| Bounded a => Bounded (Vector2 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Storable a => Storable (Vector2 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods peekElemOff :: Ptr (Vector2 a) -> Int -> IO (Vector2 a) pokeElemOff :: Ptr (Vector2 a) -> Int -> Vector2 a -> IO () peekByteOff :: Ptr b -> Int -> IO (Vector2 a) pokeByteOff :: Ptr b -> Int -> Vector2 a -> IO () | |
| Ix a => Ix (Vector2 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods range :: (Vector2 a, Vector2 a) -> [Vector2 a] index :: (Vector2 a, Vector2 a) -> Vector2 a -> Int unsafeIndex :: (Vector2 a, Vector2 a) -> Vector2 a -> Int inRange :: (Vector2 a, Vector2 a) -> Vector2 a -> Bool rangeSize :: (Vector2 a, Vector2 a) -> Int unsafeRangeSize :: (Vector2 a, Vector2 a) -> Int | |
| Read a => Read (Vector2 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Show a => Show (Vector2 a) | |
| Eq a => Eq (Vector2 a) | |
| Ord a => Ord (Vector2 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
Constructors
| Vector3 !a !a !a |
Instances
| Applicative Vector3 | |
| Functor Vector3 | |
| Foldable Vector3 | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods fold :: Monoid m => Vector3 m -> m foldMap :: Monoid m => (a -> m) -> Vector3 a -> m foldMap' :: Monoid m => (a -> m) -> Vector3 a -> m foldr :: (a -> b -> b) -> b -> Vector3 a -> b foldr' :: (a -> b -> b) -> b -> Vector3 a -> b foldl :: (b -> a -> b) -> b -> Vector3 a -> b foldl' :: (b -> a -> b) -> b -> Vector3 a -> b foldr1 :: (a -> a -> a) -> Vector3 a -> a foldl1 :: (a -> a -> a) -> Vector3 a -> a elem :: Eq a => a -> Vector3 a -> Bool maximum :: Ord a => Vector3 a -> a minimum :: Ord a => Vector3 a -> a | |
| Traversable Vector3 | |
| UniformComponent a => Uniform (Vector3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods uniform :: UniformLocation -> StateVar (Vector3 a) # uniformv :: UniformLocation -> GLsizei -> Ptr (Vector3 a) -> IO () # | |
| VertexAttribComponent a => VertexAttrib (Vector3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods vertexAttrib :: IntegerHandling -> AttribLocation -> Vector3 a -> IO () # vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr (Vector3 a) -> IO () # | |
| Bounded a => Bounded (Vector3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Storable a => Storable (Vector3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods peekElemOff :: Ptr (Vector3 a) -> Int -> IO (Vector3 a) pokeElemOff :: Ptr (Vector3 a) -> Int -> Vector3 a -> IO () peekByteOff :: Ptr b -> Int -> IO (Vector3 a) pokeByteOff :: Ptr b -> Int -> Vector3 a -> IO () | |
| Ix a => Ix (Vector3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods range :: (Vector3 a, Vector3 a) -> [Vector3 a] index :: (Vector3 a, Vector3 a) -> Vector3 a -> Int unsafeIndex :: (Vector3 a, Vector3 a) -> Vector3 a -> Int inRange :: (Vector3 a, Vector3 a) -> Vector3 a -> Bool rangeSize :: (Vector3 a, Vector3 a) -> Int unsafeRangeSize :: (Vector3 a, Vector3 a) -> Int | |
| Read a => Read (Vector3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Show a => Show (Vector3 a) | |
| Eq a => Eq (Vector3 a) | |
| Ord a => Ord (Vector3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
Constructors
| Vector4 !a !a !a !a |
Instances
| Applicative Vector4 | |
| Functor Vector4 | |
| Foldable Vector4 | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods fold :: Monoid m => Vector4 m -> m foldMap :: Monoid m => (a -> m) -> Vector4 a -> m foldMap' :: Monoid m => (a -> m) -> Vector4 a -> m foldr :: (a -> b -> b) -> b -> Vector4 a -> b foldr' :: (a -> b -> b) -> b -> Vector4 a -> b foldl :: (b -> a -> b) -> b -> Vector4 a -> b foldl' :: (b -> a -> b) -> b -> Vector4 a -> b foldr1 :: (a -> a -> a) -> Vector4 a -> a foldl1 :: (a -> a -> a) -> Vector4 a -> a elem :: Eq a => a -> Vector4 a -> Bool maximum :: Ord a => Vector4 a -> a minimum :: Ord a => Vector4 a -> a | |
| Traversable Vector4 | |
| UniformComponent a => Uniform (Vector4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods uniform :: UniformLocation -> StateVar (Vector4 a) # uniformv :: UniformLocation -> GLsizei -> Ptr (Vector4 a) -> IO () # | |
| VertexAttribComponent a => VertexAttrib (Vector4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods vertexAttrib :: IntegerHandling -> AttribLocation -> Vector4 a -> IO () # vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr (Vector4 a) -> IO () # | |
| Bounded a => Bounded (Vector4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Storable a => Storable (Vector4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods peekElemOff :: Ptr (Vector4 a) -> Int -> IO (Vector4 a) pokeElemOff :: Ptr (Vector4 a) -> Int -> Vector4 a -> IO () peekByteOff :: Ptr b -> Int -> IO (Vector4 a) pokeByteOff :: Ptr b -> Int -> Vector4 a -> IO () | |
| Ix a => Ix (Vector4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods range :: (Vector4 a, Vector4 a) -> [Vector4 a] index :: (Vector4 a, Vector4 a) -> Vector4 a -> Int unsafeIndex :: (Vector4 a, Vector4 a) -> Vector4 a -> Int inRange :: (Vector4 a, Vector4 a) -> Vector4 a -> Bool rangeSize :: (Vector4 a, Vector4 a) -> Int unsafeRangeSize :: (Vector4 a, Vector4 a) -> Int | |
| Read a => Read (Vector4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Show a => Show (Vector4 a) | |
| Eq a => Eq (Vector4 a) | |
| Ord a => Ord (Vector4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
Constructors
| Vertex1 a |
Instances
| Applicative Vertex1 | |
| Functor Vertex1 | |
| Foldable Vertex1 | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods fold :: Monoid m => Vertex1 m -> m foldMap :: Monoid m => (a -> m) -> Vertex1 a -> m foldMap' :: Monoid m => (a -> m) -> Vertex1 a -> m foldr :: (a -> b -> b) -> b -> Vertex1 a -> b foldr' :: (a -> b -> b) -> b -> Vertex1 a -> b foldl :: (b -> a -> b) -> b -> Vertex1 a -> b foldl' :: (b -> a -> b) -> b -> Vertex1 a -> b foldr1 :: (a -> a -> a) -> Vertex1 a -> a foldl1 :: (a -> a -> a) -> Vertex1 a -> a elem :: Eq a => a -> Vertex1 a -> Bool maximum :: Ord a => Vertex1 a -> a minimum :: Ord a => Vertex1 a -> a | |
| Traversable Vertex1 | |
| UniformComponent a => Uniform (Vertex1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods uniform :: UniformLocation -> StateVar (Vertex1 a) # uniformv :: UniformLocation -> GLsizei -> Ptr (Vertex1 a) -> IO () # | |
| VertexAttribComponent a => VertexAttrib (Vertex1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods vertexAttrib :: IntegerHandling -> AttribLocation -> Vertex1 a -> IO () # vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr (Vertex1 a) -> IO () # | |
| Bounded a => Bounded (Vertex1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Storable a => Storable (Vertex1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods peekElemOff :: Ptr (Vertex1 a) -> Int -> IO (Vertex1 a) pokeElemOff :: Ptr (Vertex1 a) -> Int -> Vertex1 a -> IO () peekByteOff :: Ptr b -> Int -> IO (Vertex1 a) pokeByteOff :: Ptr b -> Int -> Vertex1 a -> IO () | |
| Ix a => Ix (Vertex1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor Methods range :: (Vertex1 a, Vertex1 a) -> [Vertex1 a] index :: (Vertex1 a, Vertex1 a) -> Vertex1 a -> Int unsafeIndex :: (Vertex1 a, Vertex1 a) -> Vertex1 a -> Int inRange :: (Vertex1 a, Vertex1 a) -> Vertex1 a -> Bool rangeSize :: (Vertex1 a, Vertex1 a) -> Int unsafeRangeSize :: (Vertex1 a, Vertex1 a) -> Int | |
| Read a => Read (Vertex1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
| Show a => Show (Vertex1 a) | |
| Eq a => Eq (Vertex1 a) | |
| Ord a => Ord (Vertex1 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Tensor | |
Constructors
| Vertex2 !a !a |
Instances
Constructors
| Vertex4 !a !a !a !a |
Instances
texture :: ParameterizedTextureTarget t => t -> StateVar Capability #
data TextureCombineFunction #
Constructors
| Replace' | |
| Modulate' | |
| AddUnsigned' | |
| AddSigned | |
| Interpolate | |
| Subtract | |
| Dot3RGB | |
| Dot3RGBA |
Instances
data TextureFunction #
Instances
| Show TextureFunction | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Environments Methods showsPrec :: Int -> TextureFunction -> ShowS show :: TextureFunction -> String showList :: [TextureFunction] -> ShowS | |
| Eq TextureFunction | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Environments Methods (==) :: TextureFunction -> TextureFunction -> Bool (/=) :: TextureFunction -> TextureFunction -> Bool | |
| Ord TextureFunction | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Environments Methods compare :: TextureFunction -> TextureFunction -> Ordering (<) :: TextureFunction -> TextureFunction -> Bool (<=) :: TextureFunction -> TextureFunction -> Bool (>) :: TextureFunction -> TextureFunction -> Bool (>=) :: TextureFunction -> TextureFunction -> Bool max :: TextureFunction -> TextureFunction -> TextureFunction min :: TextureFunction -> TextureFunction -> TextureFunction | |
Instances
| Show ArgNum | |
| Eq ArgNum | |
| Ord ArgNum | |
Constructors
| CurrentUnit | |
| Previous | |
| Crossbar TextureUnit | |
| Constant | |
| PrimaryColor |
constantColor :: StateVar (Color4 GLfloat) #
data TextureFilter #
Instances
| Show TextureFilter | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Filter Methods showsPrec :: Int -> TextureFilter -> ShowS show :: TextureFilter -> String showList :: [TextureFilter] -> ShowS | |
| Eq TextureFilter | |
| Ord TextureFilter | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Filter Methods compare :: TextureFilter -> TextureFilter -> Ordering (<) :: TextureFilter -> TextureFilter -> Bool (<=) :: TextureFilter -> TextureFilter -> Bool (>) :: TextureFilter -> TextureFilter -> Bool (>=) :: TextureFilter -> TextureFilter -> Bool max :: TextureFilter -> TextureFilter -> TextureFilter min :: TextureFilter -> TextureFilter -> TextureFilter | |
type MagnificationFilter = TextureFilter #
type MinificationFilter = (TextureFilter, Maybe TextureFilter) #
type TexturePriority = GLclampf #
areTexturesResident :: [TextureObject] -> IO ([TextureObject], [TextureObject]) #
generateMipmap' :: ParameterizedTextureTarget t => t -> IO () #
prioritizeTextures :: [(TextureObject, TexturePriority)] -> IO () #
textureBinding :: BindableTextureTarget t => t -> StateVar (Maybe TextureObject) #
texturePriority :: ParameterizedTextureTarget t => t -> StateVar TexturePriority #
textureResident :: ParameterizedTextureTarget t => t -> GettableStateVar Bool #
Constructors
| Clamp | |
| Repeat | |
| ClampToEdge | |
| ClampToBorder |
Instances
| Show Clamping | |
| Eq Clamping | |
| Ord Clamping | |
data TextureCompareOperator #
Instances
data Repetition #
Instances
| Show Repetition | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Parameters Methods showsPrec :: Int -> Repetition -> ShowS show :: Repetition -> String showList :: [Repetition] -> ShowS | |
| Eq Repetition | |
| Ord Repetition | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Parameters Methods compare :: Repetition -> Repetition -> Ordering (<) :: Repetition -> Repetition -> Bool (<=) :: Repetition -> Repetition -> Bool (>) :: Repetition -> Repetition -> Bool (>=) :: Repetition -> Repetition -> Bool max :: Repetition -> Repetition -> Repetition min :: Repetition -> Repetition -> Repetition | |
generateMipmap :: ParameterizedTextureTarget t => t -> StateVar Capability #
textureBorderColor :: ParameterizedTextureTarget t => t -> StateVar (Color4 GLfloat) #
textureCompareFailValue :: ParameterizedTextureTarget t => t -> StateVar GLclampf #
textureCompareMode :: ParameterizedTextureTarget t => t -> StateVar (Maybe ComparisonFunction) #
textureCompareOperator :: ParameterizedTextureTarget t => t -> StateVar (Maybe TextureCompareOperator) #
textureFilter :: ParameterizedTextureTarget t => t -> StateVar (MinificationFilter, MagnificationFilter) #
textureLODRange :: ParameterizedTextureTarget t => t -> StateVar (LOD, LOD) #
textureLevelRange :: ParameterizedTextureTarget t => t -> StateVar (Level, Level) #
textureMaxAnisotropy :: ParameterizedTextureTarget t => t -> StateVar GLfloat #
textureObjectLODBias :: ParameterizedTextureTarget t => t -> StateVar LOD #
textureWrapMode :: ParameterizedTextureTarget t => t -> TextureCoordName -> StateVar (Repetition, Clamping) #
data PixelInternalFormat #
Constructors
Instances
| Show PixelInternalFormat | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.PixelInternalFormat Methods showsPrec :: Int -> PixelInternalFormat -> ShowS show :: PixelInternalFormat -> String showList :: [PixelInternalFormat] -> ShowS | |
| Eq PixelInternalFormat | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.PixelInternalFormat Methods (==) :: PixelInternalFormat -> PixelInternalFormat -> Bool (/=) :: PixelInternalFormat -> PixelInternalFormat -> Bool | |
| Ord PixelInternalFormat | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.PixelInternalFormat Methods compare :: PixelInternalFormat -> PixelInternalFormat -> Ordering (<) :: PixelInternalFormat -> PixelInternalFormat -> Bool (<=) :: PixelInternalFormat -> PixelInternalFormat -> Bool (>) :: PixelInternalFormat -> PixelInternalFormat -> Bool (>=) :: PixelInternalFormat -> PixelInternalFormat -> Bool max :: PixelInternalFormat -> PixelInternalFormat -> PixelInternalFormat min :: PixelInternalFormat -> PixelInternalFormat -> PixelInternalFormat | |
type TextureQuery t a = t -> Level -> GettableStateVar a #
textureBorder :: QueryableTextureTarget t => TextureQuery t Border #
textureCompressedImageSize :: QueryableTextureTarget t => TextureQuery t (Maybe GLsizei) #
textureDepthType :: QueryableTextureTarget t => TextureQuery t (Maybe DataRepresentation) #
textureIntensityType :: QueryableTextureTarget t => TextureQuery t (Maybe DataRepresentation) #
textureLuminanceType :: QueryableTextureTarget t => TextureQuery t (Maybe DataRepresentation) #
textureProxyOK :: ParameterizedTextureTarget t => TextureQuery t Bool #
textureRGBASizes :: QueryableTextureTarget t => TextureQuery t (Color4 GLsizei) #
textureRGBATypes :: QueryableTextureTarget t => TextureQuery t (Color4 (Maybe DataRepresentation)) #
data CompressedPixelData a #
Constructors
| CompressedPixelData !CompressedTextureFormat GLsizei (Ptr a) |
Instances
newtype CompressedTextureFormat #
Constructors
| CompressedTextureFormat GLenum |
Instances
data SampleLocations #
Constructors
| FlexibleSampleLocations | |
| FixedSampleLocations |
Instances
| Show SampleLocations | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods showsPrec :: Int -> SampleLocations -> ShowS show :: SampleLocations -> String showList :: [SampleLocations] -> ShowS | |
| Eq SampleLocations | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods (==) :: SampleLocations -> SampleLocations -> Bool (/=) :: SampleLocations -> SampleLocations -> Bool | |
| Ord SampleLocations | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods compare :: SampleLocations -> SampleLocations -> Ordering (<) :: SampleLocations -> SampleLocations -> Bool (<=) :: SampleLocations -> SampleLocations -> Bool (>) :: SampleLocations -> SampleLocations -> Bool (>=) :: SampleLocations -> SampleLocations -> Bool max :: SampleLocations -> SampleLocations -> SampleLocations min :: SampleLocations -> SampleLocations -> SampleLocations | |
newtype TexturePosition1D #
Constructors
| TexturePosition1D GLint |
Instances
| Show TexturePosition1D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods showsPrec :: Int -> TexturePosition1D -> ShowS show :: TexturePosition1D -> String showList :: [TexturePosition1D] -> ShowS | |
| Eq TexturePosition1D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods (==) :: TexturePosition1D -> TexturePosition1D -> Bool (/=) :: TexturePosition1D -> TexturePosition1D -> Bool | |
| Ord TexturePosition1D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods compare :: TexturePosition1D -> TexturePosition1D -> Ordering (<) :: TexturePosition1D -> TexturePosition1D -> Bool (<=) :: TexturePosition1D -> TexturePosition1D -> Bool (>) :: TexturePosition1D -> TexturePosition1D -> Bool (>=) :: TexturePosition1D -> TexturePosition1D -> Bool max :: TexturePosition1D -> TexturePosition1D -> TexturePosition1D min :: TexturePosition1D -> TexturePosition1D -> TexturePosition1D | |
data TexturePosition2D #
Constructors
| TexturePosition2D !GLint !GLint |
Instances
| Show TexturePosition2D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods showsPrec :: Int -> TexturePosition2D -> ShowS show :: TexturePosition2D -> String showList :: [TexturePosition2D] -> ShowS | |
| Eq TexturePosition2D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods (==) :: TexturePosition2D -> TexturePosition2D -> Bool (/=) :: TexturePosition2D -> TexturePosition2D -> Bool | |
| Ord TexturePosition2D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods compare :: TexturePosition2D -> TexturePosition2D -> Ordering (<) :: TexturePosition2D -> TexturePosition2D -> Bool (<=) :: TexturePosition2D -> TexturePosition2D -> Bool (>) :: TexturePosition2D -> TexturePosition2D -> Bool (>=) :: TexturePosition2D -> TexturePosition2D -> Bool max :: TexturePosition2D -> TexturePosition2D -> TexturePosition2D min :: TexturePosition2D -> TexturePosition2D -> TexturePosition2D | |
data TexturePosition3D #
Constructors
| TexturePosition3D !GLint !GLint !GLint |
Instances
| Show TexturePosition3D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods showsPrec :: Int -> TexturePosition3D -> ShowS show :: TexturePosition3D -> String showList :: [TexturePosition3D] -> ShowS | |
| Eq TexturePosition3D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods (==) :: TexturePosition3D -> TexturePosition3D -> Bool (/=) :: TexturePosition3D -> TexturePosition3D -> Bool | |
| Ord TexturePosition3D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods compare :: TexturePosition3D -> TexturePosition3D -> Ordering (<) :: TexturePosition3D -> TexturePosition3D -> Bool (<=) :: TexturePosition3D -> TexturePosition3D -> Bool (>) :: TexturePosition3D -> TexturePosition3D -> Bool (>=) :: TexturePosition3D -> TexturePosition3D -> Bool max :: TexturePosition3D -> TexturePosition3D -> TexturePosition3D min :: TexturePosition3D -> TexturePosition3D -> TexturePosition3D | |
newtype TextureSize1D #
Constructors
| TextureSize1D GLsizei |
Instances
| Show TextureSize1D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods showsPrec :: Int -> TextureSize1D -> ShowS show :: TextureSize1D -> String showList :: [TextureSize1D] -> ShowS | |
| Eq TextureSize1D | |
| Ord TextureSize1D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods compare :: TextureSize1D -> TextureSize1D -> Ordering (<) :: TextureSize1D -> TextureSize1D -> Bool (<=) :: TextureSize1D -> TextureSize1D -> Bool (>) :: TextureSize1D -> TextureSize1D -> Bool (>=) :: TextureSize1D -> TextureSize1D -> Bool max :: TextureSize1D -> TextureSize1D -> TextureSize1D min :: TextureSize1D -> TextureSize1D -> TextureSize1D | |
data TextureSize2D #
Constructors
| TextureSize2D !GLsizei !GLsizei |
Instances
| Show TextureSize2D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods showsPrec :: Int -> TextureSize2D -> ShowS show :: TextureSize2D -> String showList :: [TextureSize2D] -> ShowS | |
| Eq TextureSize2D | |
| Ord TextureSize2D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods compare :: TextureSize2D -> TextureSize2D -> Ordering (<) :: TextureSize2D -> TextureSize2D -> Bool (<=) :: TextureSize2D -> TextureSize2D -> Bool (>) :: TextureSize2D -> TextureSize2D -> Bool (>=) :: TextureSize2D -> TextureSize2D -> Bool max :: TextureSize2D -> TextureSize2D -> TextureSize2D min :: TextureSize2D -> TextureSize2D -> TextureSize2D | |
data TextureSize3D #
Constructors
| TextureSize3D !GLsizei !GLsizei !GLsizei |
Instances
| Show TextureSize3D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods showsPrec :: Int -> TextureSize3D -> ShowS show :: TextureSize3D -> String showList :: [TextureSize3D] -> ShowS | |
| Eq TextureSize3D | |
| Ord TextureSize3D | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification Methods compare :: TextureSize3D -> TextureSize3D -> Ordering (<) :: TextureSize3D -> TextureSize3D -> Bool (<=) :: TextureSize3D -> TextureSize3D -> Bool (>) :: TextureSize3D -> TextureSize3D -> Bool (>=) :: TextureSize3D -> TextureSize3D -> Bool max :: TextureSize3D -> TextureSize3D -> TextureSize3D min :: TextureSize3D -> TextureSize3D -> TextureSize3D | |
compressedTexImage1D :: OneDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize1D -> Border -> CompressedPixelData a -> IO () #
compressedTexImage2D :: TwoDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize2D -> Border -> CompressedPixelData a -> IO () #
compressedTexImage3D :: ThreeDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize3D -> Border -> CompressedPixelData a -> IO () #
compressedTexSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> TextureSize1D -> CompressedPixelData a -> IO () #
compressedTexSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> TextureSize2D -> CompressedPixelData a -> IO () #
compressedTexSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> TextureSize3D -> CompressedPixelData a -> IO () #
copyTexImage1D :: OneDimensionalTextureTarget t => t -> Level -> PixelInternalFormat -> Position -> TextureSize1D -> Border -> IO () #
copyTexImage2D :: TwoDimensionalTextureTarget t => t -> Level -> PixelInternalFormat -> Position -> TextureSize2D -> Border -> IO () #
copyTexSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> Position -> TextureSize1D -> IO () #
copyTexSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> Position -> TextureSize2D -> IO () #
copyTexSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> Position -> TextureSize2D -> IO () #
getCompressedTexImage :: GettableTextureTarget t => t -> Level -> Ptr a -> IO () #
getTexImage :: GettableTextureTarget t => t -> Level -> PixelData a -> IO () #
texImage1D :: OneDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize1D -> Border -> PixelData a -> IO () #
texImage2D :: TwoDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize2D -> Border -> PixelData a -> IO () #
texImage2DMultisample :: TextureTarget2DMultisample -> Proxy -> Samples -> PixelInternalFormat -> TextureSize2D -> SampleLocations -> IO () #
texImage3D :: ThreeDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize3D -> Border -> PixelData a -> IO () #
texImage3DMultisample :: TextureTarget2DMultisampleArray -> Proxy -> Samples -> PixelInternalFormat -> TextureSize3D -> SampleLocations -> IO () #
texSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> TextureSize1D -> PixelData a -> IO () #
texSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> TextureSize2D -> PixelData a -> IO () #
texSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> TextureSize3D -> PixelData a -> IO () #
newtype TextureObject #
Constructors
| TextureObject GLuint |
Instances
class BindableTextureTarget t #
Minimal complete definition
marshalBindableTextureTarget, marshalBindableTextureTargetPName1I
Instances
class GettableTextureTarget t #
Minimal complete definition
marshalGettableTextureTarget
Instances
class OneDimensionalTextureTarget t #
Minimal complete definition
marshalOneDimensionalTextureTarget
Instances
class ParameterizedTextureTarget t #
Minimal complete definition
marshalParameterizedTextureTarget, marshalParameterizedTextureTargetProxy, marshalParameterizedTextureTargetEnableCap
Instances
class QueryableTextureTarget t #
Minimal complete definition
marshalQueryableTextureTarget
Instances
data TextureTarget1D #
Constructors
| Texture1D |
Instances
data TextureTarget2D #
Constructors
| Texture2D | |
| Texture1DArray | |
| TextureRectangle |
Instances
data TextureTarget3D #
Constructors
| Texture3D | |
| Texture2DArray | |
| TextureCubeMapArray |
Instances
data TextureTarget2DMultisample #
Constructors
| Texture2DMultisample |
Instances
data TextureTarget2DMultisampleArray #
Constructors
| Texture2DMultisampleArray |
Instances
data TextureTargetBuffer #
Constructors
| TextureBuffer' |
Instances
data TextureTargetCubeMap #
Constructors
| TextureCubeMap |
Instances
data TextureTargetCubeMapFace #
Constructors
| TextureCubeMapPositiveX | |
| TextureCubeMapNegativeX | |
| TextureCubeMapPositiveY | |
| TextureCubeMapNegativeY | |
| TextureCubeMapPositiveZ | |
| TextureCubeMapNegativeZ |
Instances
class ThreeDimensionalTextureTarget t #
Minimal complete definition
marshalThreeDimensionalTextureTarget
Instances
class TwoDimensionalTextureTarget t #
Minimal complete definition
marshalTwoDimensionalTextureTarget
Instances
newtype TextureUnit #
Constructors
| TextureUnit GLuint |
Instances
data TransformFeedbackBufferMode #
Constructors
| InterleavedAttribs | |
| SeparateAttribs | |
| SeperateAttribs |
Instances
beginTransformFeedback :: PrimitiveMode -> IO () #
endTransformFeedback :: IO () #
setTransformFeedbackVaryings :: Program -> [String] -> TransformFeedbackBufferMode -> IO () #
transformFeedbackVaryings :: Program -> GettableStateVar [(GLint, DataType, String)] #
data VertexArrayObject #
Instances
bindVertexArrayObject :: StateVar (Maybe VertexArrayObject) #
type ArrayIndex = GLint #
type BaseInstance = GLuint #
type BaseVertex = GLint #
data InterleavedArrays #
Constructors
| V2f | |
| V3f | |
| C4ubV2f | |
| C4ubV3f | |
| C3fV3f | |
| N3fV3f | |
| C4fN3fV3f | |
| T2fV3f | |
| T4fV4f | |
| T2fC4ubV3f | |
| T2fC3fV3f | |
| T2fN3fV3f | |
| T2fC4fN3fV3f | |
| T4fC4fN3fV4f |
Instances
| Show InterleavedArrays | |
Defined in Graphics.Rendering.OpenGL.GL.VertexArrays Methods showsPrec :: Int -> InterleavedArrays -> ShowS show :: InterleavedArrays -> String showList :: [InterleavedArrays] -> ShowS | |
| Eq InterleavedArrays | |
Defined in Graphics.Rendering.OpenGL.GL.VertexArrays Methods (==) :: InterleavedArrays -> InterleavedArrays -> Bool (/=) :: InterleavedArrays -> InterleavedArrays -> Bool | |
| Ord InterleavedArrays | |
Defined in Graphics.Rendering.OpenGL.GL.VertexArrays Methods compare :: InterleavedArrays -> InterleavedArrays -> Ordering (<) :: InterleavedArrays -> InterleavedArrays -> Bool (<=) :: InterleavedArrays -> InterleavedArrays -> Bool (>) :: InterleavedArrays -> InterleavedArrays -> Bool (>=) :: InterleavedArrays -> InterleavedArrays -> Bool max :: InterleavedArrays -> InterleavedArrays -> InterleavedArrays min :: InterleavedArrays -> InterleavedArrays -> InterleavedArrays | |
data ClientArrayType #
Constructors
| VertexArray | |
| NormalArray | |
| ColorArray | |
| IndexArray | |
| TextureCoordArray | |
| EdgeFlagArray | |
| FogCoordArray | |
| SecondaryColorArray | |
| MatrixIndexArray |
Instances
| Show ClientArrayType | |
Defined in Graphics.Rendering.OpenGL.GL.VertexArrays Methods showsPrec :: Int -> ClientArrayType -> ShowS show :: ClientArrayType -> String showList :: [ClientArrayType] -> ShowS | |
| Eq ClientArrayType | |
Defined in Graphics.Rendering.OpenGL.GL.VertexArrays Methods (==) :: ClientArrayType -> ClientArrayType -> Bool (/=) :: ClientArrayType -> ClientArrayType -> Bool | |
| Ord ClientArrayType | |
Defined in Graphics.Rendering.OpenGL.GL.VertexArrays Methods compare :: ClientArrayType -> ClientArrayType -> Ordering (<) :: ClientArrayType -> ClientArrayType -> Bool (<=) :: ClientArrayType -> ClientArrayType -> Bool (>) :: ClientArrayType -> ClientArrayType -> Bool (>=) :: ClientArrayType -> ClientArrayType -> Bool max :: ClientArrayType -> ClientArrayType -> ClientArrayType min :: ClientArrayType -> ClientArrayType -> ClientArrayType | |
type NumArrayIndices = GLsizei #
type NumComponents = GLint #
type NumIndexBlocks = GLsizei #
type NumInstances = GLsizei #
data VertexArrayDescriptor a #
Constructors
| VertexArrayDescriptor !NumComponents !DataType !Stride !(Ptr a) |
Instances
arrayElement :: ArrayIndex -> IO () #
drawArrays :: PrimitiveMode -> ArrayIndex -> NumArrayIndices -> IO () #
drawArraysInstanced :: PrimitiveMode -> ArrayIndex -> NumArrayIndices -> NumInstances -> IO () #
drawArraysInstancedBaseInstance :: PrimitiveMode -> ArrayIndex -> NumArrayIndices -> NumInstances -> BaseInstance -> IO () #
drawElements :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> IO () #
drawElementsBaseVertex :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> BaseVertex -> IO () #
drawElementsInstanced :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> NumInstances -> IO () #
drawElementsInstancedBaseInstance :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> NumInstances -> BaseInstance -> IO () #
drawElementsInstancedBaseVertex :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> NumInstances -> BaseVertex -> IO () #
drawElementsInstancedBaseVertexBaseInstance :: PrimitiveMode -> NumArrayIndices -> DataType -> Ptr a -> NumInstances -> BaseVertex -> BaseInstance -> IO () #
drawRangeElements :: PrimitiveMode -> (ArrayIndex, ArrayIndex) -> NumArrayIndices -> DataType -> Ptr a -> IO () #
drawRangeElementsBaseVertex :: PrimitiveMode -> (ArrayIndex, ArrayIndex) -> NumArrayIndices -> DataType -> Ptr a -> BaseVertex -> IO () #
interleavedArrays :: InterleavedArrays -> Stride -> Ptr a -> IO () #
lockArrays :: StateVar (Maybe (ArrayIndex, NumArrayIndices)) #
multiDrawArrays :: PrimitiveMode -> Ptr ArrayIndex -> Ptr NumArrayIndices -> NumIndexBlocks -> IO () #
multiDrawElements :: PrimitiveMode -> Ptr NumArrayIndices -> DataType -> Ptr (Ptr a) -> NumIndexBlocks -> IO () #
multiDrawElementsBaseVertex :: PrimitiveMode -> Ptr NumArrayIndices -> DataType -> Ptr (Ptr a) -> NumIndexBlocks -> Ptr BaseVertex -> IO () #
primitiveRestartIndex :: StateVar (Maybe ArrayIndex) #
primitiveRestartIndexNV :: StateVar (Maybe ArrayIndex) #
Constructors
| Color4 !a !a !a !a |
Instances
| ControlPoint Color4 | |
Defined in Graphics.Rendering.OpenGL.GL.ControlPoint Methods map1Target :: Domain d => Color4 d -> GLenum map2Target :: Domain d => Color4 d -> GLenum enableCap1 :: Domain d => Color4 d -> EnableCap enableCap2 :: Domain d => Color4 d -> EnableCap numComponents :: Domain d => Color4 d -> Stride peekControlPoint :: Domain d => Ptr (Color4 d) -> IO (Color4 d) pokeControlPoint :: Domain d => Ptr (Color4 d) -> Color4 d -> IO () | |
| Applicative Color4 | |
| Functor Color4 | |
| Foldable Color4 | |
Defined in Graphics.Rendering.OpenGL.GL.VertexAttributes Methods fold :: Monoid m => Color4 m -> m foldMap :: Monoid m => (a -> m) -> Color4 a -> m foldMap' :: Monoid m => (a -> m) -> Color4 a -> m foldr :: (a -> b -> b) -> b -> Color4 a -> b foldr' :: (a -> b -> b) -> b -> Color4 a -> b foldl :: (b -> a -> b) -> b -> Color4 a -> b foldl' :: (b -> a -> b) -> b -> Color4 a -> b foldr1 :: (a -> a -> a) -> Color4 a -> a foldl1 :: (a -> a -> a) -> Color4 a -> a elem :: Eq a => a -> Color4 a -> Bool maximum :: Ord a => Color4 a -> a | |
| Traversable Color4 | |
| UniformComponent a => Uniform (Color4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.Shaders.Uniform Methods uniform :: UniformLocation -> StateVar (Color4 a) # uniformv :: UniformLocation -> GLsizei -> Ptr (Color4 a) -> IO () # | |
| ColorComponent a => Color (Color4 a) | |
| VertexAttribComponent a => VertexAttrib (Color4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods vertexAttrib :: IntegerHandling -> AttribLocation -> Color4 a -> IO () # vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr (Color4 a) -> IO () # | |
| Bounded a => Bounded (Color4 a) | |
| Storable a => Storable (Color4 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexAttributes Methods peekElemOff :: Ptr (Color4 a) -> Int -> IO (Color4 a) pokeElemOff :: Ptr (Color4 a) -> Int -> Color4 a -> IO () peekByteOff :: Ptr b -> Int -> IO (Color4 a) pokeByteOff :: Ptr b -> Int -> Color4 a -> IO () | |
| Ix a => Ix (Color4 a) | |
| Read a => Read (Color4 a) | |
| Show a => Show (Color4 a) | |
| Eq a => Eq (Color4 a) | |
| Ord a => Ord (Color4 a) | |
Constructors
| FogCoord1 a |
Instances
Constructors
| Normal3 !a !a !a |
Instances
Constructors
| TexCoord1 a |
Instances
Constructors
| TexCoord2 !a !a |
Instances
Constructors
| TexCoord3 !a !a !a |
Instances
Constructors
| TexCoord4 !a !a !a !a |
Instances
class ColorComponent a #
Minimal complete definition
color3, color4, color3v, color4v, secondaryColor3, secondaryColor3v
Instances
class FogCoordComponent a #
Minimal complete definition
fogCoord1, fogCoord1v
Instances
Instances
| IndexComponent a => Index (Index1 a) | |
class IndexComponent a #
Minimal complete definition
index1, index1v
Instances
data IntegerHandling #
Constructors
| ToFloat | |
| ToNormalizedFloat | |
| KeepIntegral |
Instances
| Show IntegerHandling | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods showsPrec :: Int -> IntegerHandling -> ShowS show :: IntegerHandling -> String showList :: [IntegerHandling] -> ShowS | |
| Eq IntegerHandling | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods (==) :: IntegerHandling -> IntegerHandling -> Bool (/=) :: IntegerHandling -> IntegerHandling -> Bool | |
| Ord IntegerHandling | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec Methods compare :: IntegerHandling -> IntegerHandling -> Ordering (<) :: IntegerHandling -> IntegerHandling -> Bool (<=) :: IntegerHandling -> IntegerHandling -> Bool (>) :: IntegerHandling -> IntegerHandling -> Bool (>=) :: IntegerHandling -> IntegerHandling -> Bool max :: IntegerHandling -> IntegerHandling -> IntegerHandling min :: IntegerHandling -> IntegerHandling -> IntegerHandling | |
Instances
| NormalComponent a => Normal (Normal3 a) | |
class NormalComponent a #
Minimal complete definition
normal3, normal3v
class SecondaryColor a where #
Instances
| ColorComponent a => SecondaryColor (Color3 a) | |
Defined in Graphics.Rendering.OpenGL.GL.VertexSpec | |
Methods
multiTexCoord :: TextureUnit -> a -> IO () #
multiTexCoordv :: TextureUnit -> Ptr a -> IO () #
Instances
class TexCoordComponent a #
Minimal complete definition
texCoord1, texCoord2, texCoord3, texCoord4, texCoord1v, texCoord2v, texCoord3v, texCoord4v, multiTexCoord1, multiTexCoord2, multiTexCoord3, multiTexCoord4, multiTexCoord1v, multiTexCoord2v, multiTexCoord3v, multiTexCoord4v
Instances
Instances
| VertexComponent a => Vertex (Vertex2 a) | |
| VertexComponent a => Vertex (Vertex3 a) | |
| VertexComponent a => Vertex (Vertex4 a) | |
class VertexAttrib a where #
Methods
vertexAttrib :: IntegerHandling -> AttribLocation -> a -> IO () #
vertexAttribv :: IntegerHandling -> AttribLocation -> Ptr a -> IO () #
Instances
class (Storable a, Num a) => VertexAttribComponent a where #
Minimal complete definition
Methods
vertexAttrib1 :: AttribLocation -> a -> IO () #
vertexAttrib2 :: AttribLocation -> a -> a -> IO () #
vertexAttrib3 :: AttribLocation -> a -> a -> a -> IO () #
vertexAttrib4 :: AttribLocation -> a -> a -> a -> a -> IO () #
vertexAttrib1N :: AttribLocation -> a -> IO () #
vertexAttrib2N :: AttribLocation -> a -> a -> IO () #
vertexAttrib3N :: AttribLocation -> a -> a -> a -> IO () #
vertexAttrib4N :: AttribLocation -> a -> a -> a -> a -> IO () #
vertexAttrib1I :: AttribLocation -> a -> IO () #
vertexAttrib2I :: AttribLocation -> a -> a -> IO () #
vertexAttrib3I :: AttribLocation -> a -> a -> a -> IO () #
vertexAttrib4I :: AttribLocation -> a -> a -> a -> a -> IO () #
vertexAttrib1v :: AttribLocation -> Ptr a -> IO () #
vertexAttrib2v :: AttribLocation -> Ptr a -> IO () #
vertexAttrib3v :: AttribLocation -> Ptr a -> IO () #
vertexAttrib4v :: AttribLocation -> Ptr a -> IO () #
vertexAttrib1Nv :: AttribLocation -> Ptr a -> IO () #
vertexAttrib2Nv :: AttribLocation -> Ptr a -> IO () #
vertexAttrib3Nv :: AttribLocation -> Ptr a -> IO () #
vertexAttrib4Nv :: AttribLocation -> Ptr a -> IO () #
vertexAttrib1Iv :: AttribLocation -> Ptr a -> IO () #
vertexAttrib2Iv :: AttribLocation -> Ptr a -> IO () #
vertexAttrib3Iv :: AttribLocation -> Ptr a -> IO () #
vertexAttrib4Iv :: AttribLocation -> Ptr a -> IO () #
Instances
class VertexComponent a #
Minimal complete definition
vertex2, vertex3, vertex4, vertex2v, vertex3v, vertex4v
Instances
currentColor :: StateVar (Color4 GLfloat) #
currentIndex :: StateVar (Index1 GLint) #
currentNormal :: StateVar (Normal3 GLfloat) #
rgbaMode :: GettableStateVar Bool #
data ErrorCategory #
Constructors
| ContextLost | |
| InvalidEnum | |
| InvalidValue | |
| InvalidOperation | |
| InvalidFramebufferOperation | |
| OutOfMemory | |
| StackOverflow | |
| StackUnderflow | |
| TableTooLarge | |
| TesselatorError | |
| NURBSError |
Instances
| Show ErrorCategory | |
Defined in Graphics.Rendering.OpenGL.GLU.ErrorsInternal Methods showsPrec :: Int -> ErrorCategory -> ShowS show :: ErrorCategory -> String showList :: [ErrorCategory] -> ShowS | |
| Eq ErrorCategory | |
Defined in Graphics.Rendering.OpenGL.GLU.ErrorsInternal | |
| Ord ErrorCategory | |
Defined in Graphics.Rendering.OpenGL.GLU.ErrorsInternal Methods compare :: ErrorCategory -> ErrorCategory -> Ordering (<) :: ErrorCategory -> ErrorCategory -> Bool (<=) :: ErrorCategory -> ErrorCategory -> Bool (>) :: ErrorCategory -> ErrorCategory -> Bool (>=) :: ErrorCategory -> ErrorCategory -> Bool max :: ErrorCategory -> ErrorCategory -> ErrorCategory min :: ErrorCategory -> ErrorCategory -> ErrorCategory | |
gluExtensions :: GettableStateVar [String] #
gluVersion :: GettableStateVar String #
project :: Matrix m => Vertex3 GLdouble -> m GLdouble -> m GLdouble -> (Position, Size) -> IO (Vertex3 GLdouble) #
unProject :: Matrix m => Vertex3 GLdouble -> m GLdouble -> m GLdouble -> (Position, Size) -> IO (Vertex3 GLdouble) #
unProject4 :: Matrix m => Vertex4 GLdouble -> m GLdouble -> m GLdouble -> (Position, Size) -> GLclampd -> GLclampd -> IO (Vertex4 GLdouble) #
build1DMipmaps :: TextureTarget1D -> PixelInternalFormat -> GLsizei -> PixelData a -> IO () #
build2DMipmaps :: TextureTarget2D -> PixelInternalFormat -> GLsizei -> GLsizei -> PixelData a -> IO () #
data DisplayMode' #
Constructors
| Fill' | |
| OutlinePolygon | |
| OutlinePatch |
Instances
| Show DisplayMode' | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS Methods showsPrec :: Int -> DisplayMode' -> ShowS show :: DisplayMode' -> String showList :: [DisplayMode'] -> ShowS | |
| Eq DisplayMode' | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS | |
| Ord DisplayMode' | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS Methods compare :: DisplayMode' -> DisplayMode' -> Ordering (<) :: DisplayMode' -> DisplayMode' -> Bool (<=) :: DisplayMode' -> DisplayMode' -> Bool (>) :: DisplayMode' -> DisplayMode' -> Bool (>=) :: DisplayMode' -> DisplayMode' -> Bool max :: DisplayMode' -> DisplayMode' -> DisplayMode' min :: DisplayMode' -> DisplayMode' -> DisplayMode' | |
data SamplingMethod #
Constructors
| PathLength GLfloat | |
| ParametricError GLfloat | |
| DomainDistance GLfloat GLfloat | |
| ObjectPathLength GLfloat | |
| ObjectParametricError GLfloat |
Instances
| Show SamplingMethod | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS Methods showsPrec :: Int -> SamplingMethod -> ShowS show :: SamplingMethod -> String showList :: [SamplingMethod] -> ShowS | |
| Eq SamplingMethod | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS Methods (==) :: SamplingMethod -> SamplingMethod -> Bool (/=) :: SamplingMethod -> SamplingMethod -> Bool | |
| Ord SamplingMethod | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS Methods compare :: SamplingMethod -> SamplingMethod -> Ordering (<) :: SamplingMethod -> SamplingMethod -> Bool (<=) :: SamplingMethod -> SamplingMethod -> Bool (>) :: SamplingMethod -> SamplingMethod -> Bool (>=) :: SamplingMethod -> SamplingMethod -> Bool max :: SamplingMethod -> SamplingMethod -> SamplingMethod min :: SamplingMethod -> SamplingMethod -> SamplingMethod | |
type NURBSBeginCallback = PrimitiveMode -> IO () #
type NURBSColorCallback = Color4 GLfloat -> IO () #
type NURBSEndCallback = IO () #
Constructors
| NURBSTessellator | |
| NURBSRenderer |
Instances
| Show NURBSMode | |
| Eq NURBSMode | |
| Ord NURBSMode | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS | |
type NURBSNormalCallback = Normal3 GLfloat -> IO () #
type NURBSVertexCallback = Vertex3 GLfloat -> IO () #
class TrimmingPoint (p :: Type -> Type) #
Minimal complete definition
trimmingTarget
Instances
| TrimmingPoint Vertex2 | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS Methods trimmingTarget :: Vertex2 GLfloat -> GLenum | |
| TrimmingPoint Vertex3 | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS Methods trimmingTarget :: Vertex3 GLfloat -> GLenum | |
checkForNURBSError :: NURBSObj -> IO a -> IO a #
loadSamplingMatrices :: (Matrix m1, Matrix m2) => NURBSObj -> Maybe (m1 GLfloat, m2 GLfloat, (Position, Size)) -> IO () #
nurbsBeginEndCurve :: NURBSObj -> IO a -> IO a #
nurbsBeginEndSurface :: NURBSObj -> IO a -> IO a #
nurbsBeginEndTrim :: NURBSObj -> IO a -> IO a #
nurbsCurve :: ControlPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr (c GLfloat) -> GLint -> IO () #
nurbsSurface :: ControlPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr GLfloat -> GLint -> GLint -> Ptr (c GLfloat) -> GLint -> GLint -> IO () #
setDisplayMode' :: NURBSObj -> DisplayMode' -> IO () #
setNURBSCulling :: NURBSObj -> Capability -> IO () #
setNURBSMode :: NURBSObj -> NURBSMode -> IO () #
setSamplingMethod :: NURBSObj -> SamplingMethod -> IO () #
trimmingCurve :: TrimmingPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr (c GLfloat) -> GLint -> IO () #
withNURBSBeginCallback :: NURBSObj -> NURBSBeginCallback -> IO a -> IO a #
withNURBSColorCallback :: NURBSObj -> NURBSColorCallback -> IO a -> IO a #
withNURBSEndCallback :: NURBSObj -> NURBSEndCallback -> IO a -> IO a #
withNURBSNormalCallback :: NURBSObj -> NURBSNormalCallback -> IO a -> IO a #
withNURBSObj :: a -> (NURBSObj -> IO a) -> IO a #
withNURBSVertexCallback :: NURBSObj -> NURBSVertexCallback -> IO a -> IO a #
data QuadricPrimitive #
Constructors
| Sphere Radius Slices Stacks | |
| Cylinder Radius Radius Height Slices Stacks | |
| Disk Radius Radius Slices Loops | |
| PartialDisk Radius Radius Slices Loops Angle Angle |
Instances
| Eq QuadricPrimitive | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods (==) :: QuadricPrimitive -> QuadricPrimitive -> Bool (/=) :: QuadricPrimitive -> QuadricPrimitive -> Bool | |
| Ord QuadricPrimitive | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods compare :: QuadricPrimitive -> QuadricPrimitive -> Ordering (<) :: QuadricPrimitive -> QuadricPrimitive -> Bool (<=) :: QuadricPrimitive -> QuadricPrimitive -> Bool (>) :: QuadricPrimitive -> QuadricPrimitive -> Bool (>=) :: QuadricPrimitive -> QuadricPrimitive -> Bool max :: QuadricPrimitive -> QuadricPrimitive -> QuadricPrimitive min :: QuadricPrimitive -> QuadricPrimitive -> QuadricPrimitive | |
data QuadricDrawStyle #
Constructors
| PointStyle | |
| LineStyle | |
| FillStyle | |
| SilhouetteStyle |
Instances
| Show QuadricDrawStyle | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods showsPrec :: Int -> QuadricDrawStyle -> ShowS show :: QuadricDrawStyle -> String showList :: [QuadricDrawStyle] -> ShowS | |
| Eq QuadricDrawStyle | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods (==) :: QuadricDrawStyle -> QuadricDrawStyle -> Bool (/=) :: QuadricDrawStyle -> QuadricDrawStyle -> Bool | |
| Ord QuadricDrawStyle | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods compare :: QuadricDrawStyle -> QuadricDrawStyle -> Ordering (<) :: QuadricDrawStyle -> QuadricDrawStyle -> Bool (<=) :: QuadricDrawStyle -> QuadricDrawStyle -> Bool (>) :: QuadricDrawStyle -> QuadricDrawStyle -> Bool (>=) :: QuadricDrawStyle -> QuadricDrawStyle -> Bool max :: QuadricDrawStyle -> QuadricDrawStyle -> QuadricDrawStyle min :: QuadricDrawStyle -> QuadricDrawStyle -> QuadricDrawStyle | |
data QuadricTexture #
Constructors
| NoTextureCoordinates | |
| GenerateTextureCoordinates |
Instances
| Eq QuadricTexture | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods (==) :: QuadricTexture -> QuadricTexture -> Bool (/=) :: QuadricTexture -> QuadricTexture -> Bool | |
| Ord QuadricTexture | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods compare :: QuadricTexture -> QuadricTexture -> Ordering (<) :: QuadricTexture -> QuadricTexture -> Bool (<=) :: QuadricTexture -> QuadricTexture -> Bool (>) :: QuadricTexture -> QuadricTexture -> Bool (>=) :: QuadricTexture -> QuadricTexture -> Bool max :: QuadricTexture -> QuadricTexture -> QuadricTexture min :: QuadricTexture -> QuadricTexture -> QuadricTexture | |
data QuadricOrientation #
Instances
| Show QuadricOrientation | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods showsPrec :: Int -> QuadricOrientation -> ShowS show :: QuadricOrientation -> String showList :: [QuadricOrientation] -> ShowS | |
| Eq QuadricOrientation | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods (==) :: QuadricOrientation -> QuadricOrientation -> Bool (/=) :: QuadricOrientation -> QuadricOrientation -> Bool | |
| Ord QuadricOrientation | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods compare :: QuadricOrientation -> QuadricOrientation -> Ordering (<) :: QuadricOrientation -> QuadricOrientation -> Bool (<=) :: QuadricOrientation -> QuadricOrientation -> Bool (>) :: QuadricOrientation -> QuadricOrientation -> Bool (>=) :: QuadricOrientation -> QuadricOrientation -> Bool max :: QuadricOrientation -> QuadricOrientation -> QuadricOrientation min :: QuadricOrientation -> QuadricOrientation -> QuadricOrientation | |
type QuadricNormal = Maybe ShadingModel #
data QuadricStyle #
Instances
| Eq QuadricStyle | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics | |
| Ord QuadricStyle | |
Defined in Graphics.Rendering.OpenGL.GLU.Quadrics Methods compare :: QuadricStyle -> QuadricStyle -> Ordering (<) :: QuadricStyle -> QuadricStyle -> Bool (<=) :: QuadricStyle -> QuadricStyle -> Bool (>) :: QuadricStyle -> QuadricStyle -> Bool (>=) :: QuadricStyle -> QuadricStyle -> Bool max :: QuadricStyle -> QuadricStyle -> QuadricStyle min :: QuadricStyle -> QuadricStyle -> QuadricStyle | |
renderQuadric :: QuadricStyle -> QuadricPrimitive -> IO () #
data AnnotatedVertex v #
Constructors
| AnnotatedVertex (Vertex3 GLdouble) v |
Instances
type Combiner v = Vertex3 GLdouble -> WeightedProperties v -> v #
newtype ComplexContour v #
Constructors
| ComplexContour [AnnotatedVertex v] |
Instances
| Eq v => Eq (ComplexContour v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods (==) :: ComplexContour v -> ComplexContour v -> Bool (/=) :: ComplexContour v -> ComplexContour v -> Bool | |
| Ord v => Ord (ComplexContour v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods compare :: ComplexContour v -> ComplexContour v -> Ordering (<) :: ComplexContour v -> ComplexContour v -> Bool (<=) :: ComplexContour v -> ComplexContour v -> Bool (>) :: ComplexContour v -> ComplexContour v -> Bool (>=) :: ComplexContour v -> ComplexContour v -> Bool max :: ComplexContour v -> ComplexContour v -> ComplexContour v min :: ComplexContour v -> ComplexContour v -> ComplexContour v | |
newtype ComplexPolygon v #
Constructors
| ComplexPolygon [ComplexContour v] |
Instances
| Eq v => Eq (ComplexPolygon v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods (==) :: ComplexPolygon v -> ComplexPolygon v -> Bool (/=) :: ComplexPolygon v -> ComplexPolygon v -> Bool | |
| Ord v => Ord (ComplexPolygon v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods compare :: ComplexPolygon v -> ComplexPolygon v -> Ordering (<) :: ComplexPolygon v -> ComplexPolygon v -> Bool (<=) :: ComplexPolygon v -> ComplexPolygon v -> Bool (>) :: ComplexPolygon v -> ComplexPolygon v -> Bool (>=) :: ComplexPolygon v -> ComplexPolygon v -> Bool max :: ComplexPolygon v -> ComplexPolygon v -> ComplexPolygon v min :: ComplexPolygon v -> ComplexPolygon v -> ComplexPolygon v | |
newtype PolygonContours v #
Constructors
| PolygonContours [SimpleContour v] |
Instances
| Eq v => Eq (PolygonContours v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods (==) :: PolygonContours v -> PolygonContours v -> Bool (/=) :: PolygonContours v -> PolygonContours v -> Bool | |
| Ord v => Ord (PolygonContours v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods compare :: PolygonContours v -> PolygonContours v -> Ordering (<) :: PolygonContours v -> PolygonContours v -> Bool (<=) :: PolygonContours v -> PolygonContours v -> Bool (>) :: PolygonContours v -> PolygonContours v -> Bool (>=) :: PolygonContours v -> PolygonContours v -> Bool max :: PolygonContours v -> PolygonContours v -> PolygonContours v min :: PolygonContours v -> PolygonContours v -> PolygonContours v | |
Constructors
| Primitive PrimitiveMode [AnnotatedVertex v] |
Instances
| Eq v => Eq (Primitive v) | |
| Ord v => Ord (Primitive v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation | |
newtype SimpleContour v #
Constructors
| SimpleContour [AnnotatedVertex v] |
Instances
| Eq v => Eq (SimpleContour v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods (==) :: SimpleContour v -> SimpleContour v -> Bool (/=) :: SimpleContour v -> SimpleContour v -> Bool | |
| Ord v => Ord (SimpleContour v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods compare :: SimpleContour v -> SimpleContour v -> Ordering (<) :: SimpleContour v -> SimpleContour v -> Bool (<=) :: SimpleContour v -> SimpleContour v -> Bool (>) :: SimpleContour v -> SimpleContour v -> Bool (>=) :: SimpleContour v -> SimpleContour v -> Bool max :: SimpleContour v -> SimpleContour v -> SimpleContour v min :: SimpleContour v -> SimpleContour v -> SimpleContour v | |
newtype SimplePolygon v #
Constructors
| SimplePolygon [Primitive v] |
Instances
| Eq v => Eq (SimplePolygon v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods (==) :: SimplePolygon v -> SimplePolygon v -> Bool (/=) :: SimplePolygon v -> SimplePolygon v -> Bool | |
| Ord v => Ord (SimplePolygon v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods compare :: SimplePolygon v -> SimplePolygon v -> Ordering (<) :: SimplePolygon v -> SimplePolygon v -> Bool (<=) :: SimplePolygon v -> SimplePolygon v -> Bool (>) :: SimplePolygon v -> SimplePolygon v -> Bool (>=) :: SimplePolygon v -> SimplePolygon v -> Bool max :: SimplePolygon v -> SimplePolygon v -> SimplePolygon v min :: SimplePolygon v -> SimplePolygon v -> SimplePolygon v | |
data TessWinding #
Constructors
| TessWindingOdd | |
| TessWindingNonzero | |
| TessWindingPositive | |
| TessWindingNegative | |
| TessWindingAbsGeqTwo |
Instances
| Show TessWinding | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods showsPrec :: Int -> TessWinding -> ShowS show :: TessWinding -> String showList :: [TessWinding] -> ShowS | |
| Eq TessWinding | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation | |
| Ord TessWinding | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods compare :: TessWinding -> TessWinding -> Ordering (<) :: TessWinding -> TessWinding -> Bool (<=) :: TessWinding -> TessWinding -> Bool (>) :: TessWinding -> TessWinding -> Bool (>=) :: TessWinding -> TessWinding -> Bool max :: TessWinding -> TessWinding -> TessWinding min :: TessWinding -> TessWinding -> TessWinding | |
type Tessellator (p :: Type -> Type) v = TessWinding -> Tolerance -> Normal3 GLdouble -> Combiner v -> ComplexPolygon v -> IO (p v) #
Constructors
| Triangle (TriangleVertex v) (TriangleVertex v) (TriangleVertex v) |
Instances
| Eq v => Eq (Triangle v) | |
| Ord v => Ord (Triangle v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation | |
type TriangleVertex v = AnnotatedVertex (v, EdgeFlag) #
newtype Triangulation v #
Constructors
| Triangulation [Triangle v] |
Instances
| Eq v => Eq (Triangulation v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods (==) :: Triangulation v -> Triangulation v -> Bool (/=) :: Triangulation v -> Triangulation v -> Bool | |
| Ord v => Ord (Triangulation v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods compare :: Triangulation v -> Triangulation v -> Ordering (<) :: Triangulation v -> Triangulation v -> Bool (<=) :: Triangulation v -> Triangulation v -> Bool (>) :: Triangulation v -> Triangulation v -> Bool (>=) :: Triangulation v -> Triangulation v -> Bool max :: Triangulation v -> Triangulation v -> Triangulation v min :: Triangulation v -> Triangulation v -> Triangulation v | |
data WeightedProperties v #
Constructors
| WeightedProperties (GLfloat, v) (GLfloat, v) (GLfloat, v) (GLfloat, v) |
Instances
| Eq v => Eq (WeightedProperties v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods (==) :: WeightedProperties v -> WeightedProperties v -> Bool (/=) :: WeightedProperties v -> WeightedProperties v -> Bool | |
| Ord v => Ord (WeightedProperties v) | |
Defined in Graphics.Rendering.OpenGL.GLU.Tessellation Methods compare :: WeightedProperties v -> WeightedProperties v -> Ordering (<) :: WeightedProperties v -> WeightedProperties v -> Bool (<=) :: WeightedProperties v -> WeightedProperties v -> Bool (>) :: WeightedProperties v -> WeightedProperties v -> Bool (>=) :: WeightedProperties v -> WeightedProperties v -> Bool max :: WeightedProperties v -> WeightedProperties v -> WeightedProperties v min :: WeightedProperties v -> WeightedProperties v -> WeightedProperties v | |
extractContours :: Storable v => Tessellator PolygonContours v #
tessellate :: Storable v => Tessellator SimplePolygon v #
triangulate :: Storable v => Tessellator Triangulation v #
makeGLDEBUGPROC :: GLDEBUGPROCFunc -> IO (FunPtr GLDEBUGPROCFunc) #
makeGLDEBUGPROCAMD :: GLDEBUGPROCAMDFunc -> IO (FunPtr GLDEBUGPROCAMDFunc) #
makeGLDEBUGPROCARB :: GLDEBUGPROCARBFunc -> IO (FunPtr GLDEBUGPROCARBFunc) #
makeGLDEBUGPROCKHR :: GLDEBUGPROCKHRFunc -> IO (FunPtr GLDEBUGPROCKHRFunc) #
mkGLDEBUGPROC :: GLDEBUGPROCFunc -> IO (FunPtr GLDEBUGPROCFunc) #
mkGLDEBUGPROCAMD :: GLDEBUGPROCAMDFunc -> IO (FunPtr GLDEBUGPROCAMDFunc) #
mkGLDEBUGPROCARB :: GLDEBUGPROCARBFunc -> IO (FunPtr GLDEBUGPROCARBFunc) #
mkGLDEBUGPROCKHR :: GLDEBUGPROCKHRFunc -> IO (FunPtr GLDEBUGPROCKHRFunc) #
class ObjectName a => GeneratableObjectName a where #
Minimal complete definition
Instances
type GLDEBUGPROC = FunPtr GLDEBUGPROCFunc #
type GLDEBUGPROCAMD = FunPtr GLDEBUGPROCAMDFunc #
type GLDEBUGPROCARB = GLDEBUGPROC #
type GLDEBUGPROCARBFunc = GLDEBUGPROCFunc #
type GLDEBUGPROCFunc = GLenum -> GLenum -> GLuint -> GLenum -> GLsizei -> Ptr GLchar -> Ptr () -> IO () #
type GLDEBUGPROCKHR = GLDEBUGPROC #
type GLDEBUGPROCKHRFunc = GLDEBUGPROCFunc #
type GLVULKANPROCNV = FunPtr GLVULKANPROCNVFunc #
type GLVULKANPROCNVFunc = IO () #
type GLbitfield = Word32 #
type GLeglClientBufferEXT = Ptr () #
type GLeglImageOES = Ptr () #
type GLhandleARB = Word32 #
type GLint64EXT = Int64 #
type GLintptrARB = CPtrdiff #
type GLsizeiptr = CPtrdiff #
type GLsizeiptrARB = CPtrdiff #
type GLuint64EXT = Word64 #
type GLvdpauSurfaceNV = GLintptr #
module Graphics.UI.GLUT.Begin
module Graphics.UI.GLUT.Window
module Graphics.UI.GLUT.Overlay
module Graphics.UI.GLUT.Menu
module Graphics.UI.GLUT.Callbacks
module Graphics.UI.GLUT.Colormap
module Graphics.UI.GLUT.State
module Graphics.UI.GLUT.Fonts
module Graphics.UI.GLUT.Objects
module Graphics.UI.GLUT.Debugging
module Graphics.UI.GLUT.GameMode