Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype GLTexture = GLTexture (ManagedPtr GLTexture)
- class (GObject o, IsDescendantOf GLTexture o) => IsGLTexture o
- toGLTexture :: (MonadIO m, IsGLTexture o) => o -> m GLTexture
- noGLTexture :: Maybe GLTexture
- gLTextureNew :: (HasCallStack, MonadIO m, IsGLContext a) => a -> Word32 -> Int32 -> Int32 -> DestroyNotify -> Ptr () -> m GLTexture
- gLTextureRelease :: (HasCallStack, MonadIO m, IsGLTexture a) => a -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq GLTexture Source # | |
GObject GLTexture Source # | |
Defined in GI.Gdk.Objects.GLTexture gobjectType :: IO GType # | |
IsGValue GLTexture Source # | Convert |
HasParentTypes GLTexture Source # | |
Defined in GI.Gdk.Objects.GLTexture | |
type ParentTypes GLTexture Source # | |
Defined in GI.Gdk.Objects.GLTexture |
class (GObject o, IsDescendantOf GLTexture o) => IsGLTexture o Source #
Type class for types which can be safely cast to GLTexture
, for instance with toGLTexture
.
Instances
(GObject o, IsDescendantOf GLTexture o) => IsGLTexture o Source # | |
Defined in GI.Gdk.Objects.GLTexture |
toGLTexture :: (MonadIO m, IsGLTexture o) => o -> m GLTexture Source #
Methods
Overloaded methods
new
:: (HasCallStack, MonadIO m, IsGLContext a) | |
=> a |
|
-> Word32 |
|
-> Int32 |
|
-> Int32 |
|
-> DestroyNotify |
|
-> Ptr () |
|
-> m GLTexture | Returns: A newly-created |
Creates a new texture for an existing GL texture.
Note that the GL texture must not be modified until destroy
is called,
which will happen when the GdkTexture object is finalized, or due to
an explicit call of gLTextureRelease
.
release
:: (HasCallStack, MonadIO m, IsGLTexture a) | |
=> a |
|
-> m () |
Releases the GL resources held by a GLTexture
that
was created with gLTextureNew
.
The texture contents are still available via the
textureDownload
function, after this function
has been called.