Class: Gdk::GLTextureBuilder
- Inherits:
-
Object
- Object
- Gdk::GLTextureBuilder
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#build(destroy, data) ⇒ Gdk::Texture
Builds a new
GdkTexturewith the values set up in the builder. -
#context ⇒ Gdk::GLContext
The context owning the texture.
-
#context=(context) ⇒ Gdk::GLContext
The context owning the texture.
-
#format ⇒ Gdk::MemoryFormat
The format when downloading the texture.
-
#format=(format) ⇒ Gdk::MemoryFormat
The format when downloading the texture.
-
#has_mipmap ⇒ Boolean
Gets whether the texture has a mipmap.
-
#has_mipmap=(has_mipmap) ⇒ Boolean
If the texture has a mipmap.
-
#has_mipmap? ⇒ Boolean
If the texture has a mipmap.
-
#height ⇒ Integer
The height of the texture.
-
#height=(height) ⇒ Integer
The height of the texture.
-
#id ⇒ Integer
The texture ID to use.
-
#id=(id) ⇒ Integer
The texture ID to use.
-
#initialize ⇒ Gdk::GLTextureBuilder
constructor
Creates a new texture builder.
-
#sync ⇒ GObject
An optional
GLSyncobject. -
#sync=(sync) ⇒ GObject
An optional
GLSyncobject. -
#update_region ⇒ cairo::Region
The update region for [propertyGdk.GLTextureBuilder:update-texture].
-
#update_region=(update_region) ⇒ cairo::Region
The update region for [propertyGdk.GLTextureBuilder:update-texture].
-
#update_texture ⇒ Gdk::Texture
The texture [propertyGdk.GLTextureBuilder:update-region] is an update for.
-
#update_texture=(update_texture) ⇒ Gdk::Texture
The texture [propertyGdk.GLTextureBuilder:update-region] is an update for.
-
#width ⇒ Integer
The width of the texture.
-
#width=(width) ⇒ Integer
The width of the texture.
Constructor Details
#initialize ⇒ Gdk::GLTextureBuilder
Creates a new texture builder.
Instance Method Details
#build(destroy, data) ⇒ Gdk::Texture
Builds a new GdkTexture with the values set up in the builder.
The destroy function gets called when the returned texture gets released;
either when the texture is finalized or by an explicit call to
[methodGdk.GLTexture.release]. It should release all GL resources associated
with the texture, such as the [propertyGdk.GLTextureBuilder:id] and the
[propertyGdk.GLTextureBuilder:sync].
Note that it is a programming error to call this function if any mandatory property has not been set.
It is possible to call this function multiple times to create multiple textures, possibly with changing properties in between.
#context ⇒ Gdk::GLContext
The context owning the texture.
#context=(context) ⇒ Gdk::GLContext
The context owning the texture.
#format ⇒ Gdk::MemoryFormat
The format when downloading the texture.
#format=(format) ⇒ Gdk::MemoryFormat
The format when downloading the texture.
#has_mipmap ⇒ Boolean
Gets whether the texture has a mipmap.
#has_mipmap=(has_mipmap) ⇒ Boolean
If the texture has a mipmap.
#has_mipmap? ⇒ Boolean
If the texture has a mipmap.
#height ⇒ Integer
The height of the texture.
#height=(height) ⇒ Integer
The height of the texture.
#id ⇒ Integer
The texture ID to use.
#id=(id) ⇒ Integer
The texture ID to use.
#sync ⇒ GObject
An optional GLSync object.
If this is set, GTK will wait on it before using the texture.
#sync=(sync) ⇒ GObject
An optional GLSync object.
If this is set, GTK will wait on it before using the texture.
#update_region ⇒ cairo::Region
The update region for [propertyGdk.GLTextureBuilder:update-texture].
#update_region=(update_region) ⇒ cairo::Region
The update region for [propertyGdk.GLTextureBuilder:update-texture].
#update_texture ⇒ Gdk::Texture
The texture [propertyGdk.GLTextureBuilder:update-region] is an update for.
#update_texture=(update_texture) ⇒ Gdk::Texture
The texture [propertyGdk.GLTextureBuilder:update-region] is an update for.
#width ⇒ Integer
The width of the texture.
#width=(width) ⇒ Integer
The width of the texture.