Copyright | (c) Sven Panne 2002-2019 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module corresponds to section 3.8.4 (Texture Parameters), section 3.8.7 (Texture Wrap Mode), section 3.8.8 (Texture Minification), and section 3.8.9 (Texture Magnification) of the OpenGL 2.1 specs.
Synopsis
- data TextureFilter
- type MinificationFilter = (TextureFilter, Maybe TextureFilter)
- type MagnificationFilter = TextureFilter
- textureFilter :: ParameterizedTextureTarget t => t -> StateVar (MinificationFilter, MagnificationFilter)
- data Repetition
- data Clamping
- textureWrapMode :: ParameterizedTextureTarget t => t -> TextureCoordName -> StateVar (Repetition, Clamping)
- textureBorderColor :: ParameterizedTextureTarget t => t -> StateVar (Color4 GLfloat)
- type LOD = GLfloat
- textureObjectLODBias :: ParameterizedTextureTarget t => t -> StateVar LOD
- maxTextureLODBias :: GettableStateVar LOD
- textureLODRange :: ParameterizedTextureTarget t => t -> StateVar (LOD, LOD)
- textureMaxAnisotropy :: ParameterizedTextureTarget t => t -> StateVar GLfloat
- maxTextureMaxAnisotropy :: GettableStateVar GLfloat
- textureLevelRange :: ParameterizedTextureTarget t => t -> StateVar (Level, Level)
- generateMipmap :: ParameterizedTextureTarget t => t -> StateVar Capability
- depthTextureMode :: ParameterizedTextureTarget t => t -> StateVar PixelInternalFormat
- textureCompareMode :: ParameterizedTextureTarget t => t -> StateVar (Maybe ComparisonFunction)
- textureCompareFailValue :: ParameterizedTextureTarget t => t -> StateVar GLclampf
- data TextureCompareOperator
- textureCompareOperator :: ParameterizedTextureTarget t => t -> StateVar (Maybe TextureCompareOperator)
Documentation
data TextureFilter Source #
Instances
Eq TextureFilter Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Filter (==) :: TextureFilter -> TextureFilter -> Bool # (/=) :: TextureFilter -> TextureFilter -> Bool # | |
Ord TextureFilter Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Filter compare :: TextureFilter -> TextureFilter -> Ordering # (<) :: TextureFilter -> TextureFilter -> Bool # (<=) :: TextureFilter -> TextureFilter -> Bool # (>) :: TextureFilter -> TextureFilter -> Bool # (>=) :: TextureFilter -> TextureFilter -> Bool # max :: TextureFilter -> TextureFilter -> TextureFilter # min :: TextureFilter -> TextureFilter -> TextureFilter # | |
Show TextureFilter Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Filter showsPrec :: Int -> TextureFilter -> ShowS # show :: TextureFilter -> String # showList :: [TextureFilter] -> ShowS # |
type MinificationFilter = (TextureFilter, Maybe TextureFilter) Source #
type MagnificationFilter = TextureFilter Source #
textureFilter :: ParameterizedTextureTarget t => t -> StateVar (MinificationFilter, MagnificationFilter) Source #
data Repetition Source #
Instances
Eq Repetition Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Parameters (==) :: Repetition -> Repetition -> Bool # (/=) :: Repetition -> Repetition -> Bool # | |
Ord Repetition Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Parameters compare :: Repetition -> Repetition -> Ordering # (<) :: Repetition -> Repetition -> Bool # (<=) :: Repetition -> Repetition -> Bool # (>) :: Repetition -> Repetition -> Bool # (>=) :: Repetition -> Repetition -> Bool # max :: Repetition -> Repetition -> Repetition # min :: Repetition -> Repetition -> Repetition # | |
Show Repetition Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Parameters showsPrec :: Int -> Repetition -> ShowS # show :: Repetition -> String # showList :: [Repetition] -> ShowS # |
textureWrapMode :: ParameterizedTextureTarget t => t -> TextureCoordName -> StateVar (Repetition, Clamping) Source #
textureBorderColor :: ParameterizedTextureTarget t => t -> StateVar (Color4 GLfloat) Source #
textureObjectLODBias :: ParameterizedTextureTarget t => t -> StateVar LOD Source #
textureLODRange :: ParameterizedTextureTarget t => t -> StateVar (LOD, LOD) Source #
textureMaxAnisotropy :: ParameterizedTextureTarget t => t -> StateVar GLfloat Source #
textureLevelRange :: ParameterizedTextureTarget t => t -> StateVar (Level, Level) Source #
generateMipmap :: ParameterizedTextureTarget t => t -> StateVar Capability Source #
Note: OpenGL 3.1 deprecated this texture parameter, use
generateMipmap'
instead.
textureCompareMode :: ParameterizedTextureTarget t => t -> StateVar (Maybe ComparisonFunction) Source #
textureCompareFailValue :: ParameterizedTextureTarget t => t -> StateVar GLclampf Source #
data TextureCompareOperator Source #