OpenGL-3.0.3.0: A binding for the OpenGL graphics system

Copyright | (c) Sven Panne 2002-2019
License | BSD3
Maintainer | Sven Panne <svenpanne@gmail.com>
Stability | stable
Portability | portable
Safe Haskell | None
Language | Haskell2010

Graphics.Rendering.OpenGL.GL.Texturing.Objects

Description

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 #

Constructors

TextureObject GLuint |

#### Instances

Instances details

GeneratableObjectName TextureObject Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Texturing.TextureObject Methods genObjectName :: MonadIO m => m TextureObject Source # genObjectNames :: MonadIO m => Int -> m [TextureObject] Source #
ObjectName TextureObject Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Texturing.TextureObject Methods isObjectName :: MonadIO m => TextureObject -> m Bool Source # deleteObjectName :: MonadIO m => TextureObject -> m () Source # deleteObjectNames :: MonadIO m => [TextureObject] -> m () Source #
CanBeLabeled TextureObject Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Texturing.TextureObject Methods objectLabel :: TextureObject -> StateVar (Maybe String) Source #
Show TextureObject Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Texturing.TextureObject Methods showsPrec :: Int -> TextureObject -> ShowS Source # show :: TextureObject -> String Source # showList :: [TextureObject] -> ShowS Source #
Eq TextureObject Source # |
Instance details Defined in Graphics.Rendering.OpenGL.GL.Texturing.TextureObject Methods (==) :: TextureObject -> TextureObject -> Bool Source # (/=) :: TextureObject -> TextureObject -> Bool Source #
Ord TextureObject Source # |

Instance details

Defined in Graphics.Rendering.OpenGL.GL.Texturing.TextureObject

Methods

compare :: TextureObject -> TextureObject -> Ordering Source #

(<) :: TextureObject -> TextureObject -> Bool Source #

(<=) :: TextureObject -> TextureObject -> Bool Source #

(>) :: TextureObject -> TextureObject -> Bool Source #

(>=) :: TextureObject -> TextureObject -> Bool Source #

max :: TextureObject -> TextureObject -> TextureObject Source #

min :: TextureObject -> TextureObject -> TextureObject Source #

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`.