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.12 (Texture Objects) of the OpenGL 2.1 specs.
Synopsis
- newtype TextureObject = TextureObject GLuint
- textureBinding :: BindableTextureTarget t => t -> StateVar (Maybe TextureObject)
- textureResident :: ParameterizedTextureTarget t => t -> GettableStateVar Bool
- areTexturesResident :: [TextureObject] -> IO ([TextureObject], [TextureObject])
- type TexturePriority = GLclampf
- texturePriority :: ParameterizedTextureTarget t => t -> StateVar TexturePriority
- prioritizeTextures :: [(TextureObject, TexturePriority)] -> IO ()
- generateMipmap' :: ParameterizedTextureTarget t => t -> IO ()
Documentation
newtype TextureObject Source #
Instances
textureBinding :: BindableTextureTarget t => t -> StateVar (Maybe TextureObject) Source #
textureResident :: ParameterizedTextureTarget t => t -> GettableStateVar Bool Source #
areTexturesResident :: [TextureObject] -> IO ([TextureObject], [TextureObject]) Source #
type TexturePriority = GLclampf Source #
texturePriority :: ParameterizedTextureTarget t => t -> StateVar TexturePriority Source #
prioritizeTextures :: [(TextureObject, TexturePriority)] -> IO () Source #
generateMipmap' :: ParameterizedTextureTarget t => t -> IO () Source #
Generate mipmaps for the specified texture target. Note that from OpenGL
3.1 onwards you should use this function instead of the texture parameter
generateMipmap
.