gi-gdk-4.0.5: Gdk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Objects.GLTexture

Description

A GdkTexture representing a GL texture object.

Synopsis

Exported types

newtype GLTexture Source #

Memory-managed wrapper type.

Constructors

GLTexture (ManagedPtr GLTexture) 

Instances

Instances details
Eq GLTexture Source # 
Instance details

Defined in GI.Gdk.Objects.GLTexture

GObject GLTexture Source # 
Instance details

Defined in GI.Gdk.Objects.GLTexture

ManagedPtrNewtype GLTexture Source # 
Instance details

Defined in GI.Gdk.Objects.GLTexture

Methods

toManagedPtr :: GLTexture -> ManagedPtr GLTexture

TypedObject GLTexture Source # 
Instance details

Defined in GI.Gdk.Objects.GLTexture

Methods

glibType :: IO GType

HasParentTypes GLTexture Source # 
Instance details

Defined in GI.Gdk.Objects.GLTexture

IsGValue (Maybe GLTexture) Source #

Convert GLTexture to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gdk.Objects.GLTexture

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe GLTexture -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe GLTexture)

type ParentTypes GLTexture Source # 
Instance details

Defined in GI.Gdk.Objects.GLTexture

type ParentTypes GLTexture = '[Texture, Object, Paintable, Icon, LoadableIcon]

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

Instances details
(GObject o, IsDescendantOf GLTexture o) => IsGLTexture o Source # 
Instance details

Defined in GI.Gdk.Objects.GLTexture

toGLTexture :: (MonadIO m, IsGLTexture o) => o -> m GLTexture Source #

Cast to GLTexture, for types for which this is known to be safe. For general casts, use castTo.

Methods

new

gLTextureNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsGLContext a) 
=> a

context: a GdkGLContext

-> Word32

id: the ID of a texture that was created with context

-> Int32

width: the nominal width of the texture

-> Int32

height: the nominal height of the texture

-> DestroyNotify

destroy: a destroy notify that will be called when the GL resources are released

-> Ptr ()

data: data that gets passed to destroy

-> m GLTexture

Returns: A newly-created GdkTexture

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

gLTextureRelease Source #

Arguments

:: (HasCallStack, MonadIO m, IsGLTexture a) 
=> a

self: a GdkTexture wrapping a GL texture

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