Method

GdkGLTextureBuilderset_format

unstable since: 4.12

Declaration [src]

void
gdk_gl_texture_builder_set_format (
  GdkGLTextureBuilder* self,
  GdkMemoryFormat format
)

Description [src]

Sets the format of the texture. The default is GDK_MEMORY_R8G8B8A8_PREMULTIPLIED.

The format is the preferred format the texture data should be downloaded to. The format must be supported by the GL version of GdkGLTextureBuilder:context.

Setting the right format is particularly useful when using high bit depth textures to preserve the bit depth, to set the correct value for unpremultiplied textures and to make sure opaque textures are treated as such.

Available since: 4.12

org.gdk.Method.set_propertyformat
Sets propertyGdk.GLTextureBuilder:format

Parameters

format

Type: GdkMemoryFormat

The texture’s format.