Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
A GdkTexture representing a GL texture object.
Synopsis
- newtype GLTexture = GLTexture (ManagedPtr GLTexture)
- class (GObject o, IsDescendantOf GLTexture o) => IsGLTexture o
- toGLTexture :: (MonadIO m, IsGLTexture o) => o -> m 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 | |
ManagedPtrNewtype GLTexture Source # | |
Defined in GI.Gdk.Objects.GLTexture | |
TypedObject GLTexture Source # | |
Defined in GI.Gdk.Objects.GLTexture | |
HasParentTypes GLTexture Source # | |
Defined in GI.Gdk.Objects.GLTexture | |
IsGValue (Maybe GLTexture) Source # | Convert |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, computeConcreteSize, download, equal, forceFloating, freezeNotify, getv, hash, invalidateContents, invalidateSize, isFloating, load, loadAsync, loadFinish, notify, notifyByPspec, ref, refSink, release, runDispose, saveToPng, saveToPngBytes, saveToTiff, saveToTiffBytes, serialize, snapshot, stealData, stealQdata, thawNotify, toString, unref, watchClosure.
Getters
getCurrentImage, getData, getFlags, getFormat, getHeight, getIntrinsicAspectRatio, getIntrinsicHeight, getIntrinsicWidth, getProperty, getQdata, getWidth.
Setters
new
:: (HasCallStack, MonadIO m, IsGLContext a) | |
=> a |
|
-> Word32 |
|
-> Int32 |
|
-> Int32 |
|
-> DestroyNotify |
|
-> Ptr () |
|
-> m GLTexture | Returns: A newly-created
|
Deprecated: (Since version 4.12)GLTextureBuilder
supersedes this functionand provides extended functionality for creating GL textures.
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 GdkGLTexture
.
The texture contents are still available via the
textureDownload
function, after this
function has been called.