Class
GdkGLTextureBuilder
since: 4.12
Description [src]
final class Gdk.GLTextureBuilder : GObject.Object
{
/* No available fields */
}
GdkGLTextureBuilder
is a builder used to construct GdkTexture
objects from
GL textures.
The operation is quite simple: Create a texture builder, set all the necessary
properties - keep in mind that the properties GdkGLTextureBuilder:context
,
GdkGLTextureBuilder:id
, GdkGLTextureBuilder:width
, and
GdkGLTextureBuilder:height
are mandatory - and then call
gdk_gl_texture_builder_build()
to create the new texture.
GdkGLTextureBuilder
can be used for quick one-shot construction of
textures as well as kept around and reused to construct multiple textures.
Available since: 4.12
Instance methods
gdk_gl_texture_builder_build
Builds a new GdkTexture
with the values set up in the builder.
since: 4.12
gdk_gl_texture_builder_get_color_state
Gets the color state previously set via gdk_gl_texture_builder_set_color_state().
since: 4.16
gdk_gl_texture_builder_get_context
Gets the context previously set via gdk_gl_texture_builder_set_context()
or
NULL
if none was set.
since: 4.12
gdk_gl_texture_builder_get_format
Gets the format previously set via gdk_gl_texture_builder_set_format().
since: 4.12
gdk_gl_texture_builder_get_height
Gets the height previously set via gdk_gl_texture_builder_set_height()
or
0 if the height wasn’t set.
since: 4.12
gdk_gl_texture_builder_get_id
Gets the texture id previously set via gdk_gl_texture_builder_set_id()
or
0 if the id wasn’t set.
since: 4.12
gdk_gl_texture_builder_get_sync
Gets the GLsync
previously set via gdk_gl_texture_builder_set_sync().
since: 4.12
gdk_gl_texture_builder_get_update_region
Gets the region previously set via gdk_gl_texture_builder_set_update_region()
or
NULL
if none was set.
since: 4.12
gdk_gl_texture_builder_get_update_texture
Gets the texture previously set via gdk_gl_texture_builder_set_update_texture()
or
NULL
if none was set.
since: 4.12
gdk_gl_texture_builder_get_width
Gets the width previously set via gdk_gl_texture_builder_set_width()
or
0 if the width wasn’t set.
since: 4.12
gdk_gl_texture_builder_set_context
Sets the context to be used for the texture. This is the context that owns the texture.
since: 4.12
gdk_gl_texture_builder_set_format
Sets the format of the texture. The default is GDK_MEMORY_R8G8B8A8_PREMULTIPLIED
.
since: 4.12
gdk_gl_texture_builder_set_has_mipmap
Sets whether the texture has a mipmap. This allows the renderer and other users of the generated texture to use a higher quality downscaling.
since: 4.12
gdk_gl_texture_builder_set_id
Sets the texture id of the texture. The texture id must remain unmodified
until the texture was finalized. See gdk_gl_texture_builder_build()
for a longer discussion.
since: 4.12
gdk_gl_texture_builder_set_update_region
Sets the region to be updated by this texture. Together with
GdkGLTextureBuilder:update-texture
this describes an
update of a previous texture.
since: 4.12
gdk_gl_texture_builder_set_update_texture
Sets the texture to be updated by this texture. See
gdk_gl_texture_builder_set_update_region()
for an explanation.
since: 4.12
Properties
Gdk.GLTextureBuilder:update-region
The update region for GdkGLTextureBuilder:update-texture
.
since: 4.12
Gdk.GLTextureBuilder:update-texture
The texture GdkGLTextureBuilder:update-region
is an update for.
since: 4.12
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.