Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A Texture
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 toManagedPtr :: GLTexture -> ManagedPtr 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 gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe GLTexture -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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, forceFloating, freezeNotify, getv, invalidateContents, invalidateSize, isFloating, notify, notifyByPspec, ref, refSink, release, runDispose, saveToPng, snapshot, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCurrentImage, getData, getFlags, 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 |
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.