Copyright | (c) Sven Panne 2002-2016 |
---|---|
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.
- 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 #
type MinificationFilter = (TextureFilter, Maybe TextureFilter) Source #
type MagnificationFilter = TextureFilter Source #
textureFilter :: ParameterizedTextureTarget t => t -> StateVar (MinificationFilter, MagnificationFilter) Source #
data Repetition Source #
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 #