gi-gdk-4.0.1: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Objects.GLTexture

Description

No description available in the introspection data.

Synopsis

Exported types

newtype GLTexture Source #

Memory-managed wrapper type.

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

Methods

gobjectType :: IO GType #

IsGValue GLTexture Source #

Convert GLTexture to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gdk.Objects.GLTexture

HasParentTypes GLTexture Source # 
Instance details

Defined in GI.Gdk.Objects.GLTexture

type ParentTypes GLTexture Source # 
Instance details

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

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.

noGLTexture :: Maybe GLTexture Source #

A convenience alias for Nothing :: Maybe GLTexture.

Methods

Overloaded methods

new

gLTextureNew Source #

Arguments

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

context: a GLContext

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

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 Texture wrapping a GL texture

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