Class

CoglTexture2D

Description [src]

final class Cogl.Texture2D : Cogl.Texture
{
  /* No available fields */
}

Functions for creating and manipulating 2D textures

These functions allow low-level 2D textures to be allocated. These differ from sliced textures for example which may internally be made up of multiple 2D textures, or atlas textures where Cogl must internally modify user texture coordinates before they can be used by the GPU.

Hierarchy

hierarchy this CoglTexture2D ancestor_0 CoglTexture ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Ancestors

Constructors

cogl_texture_2d_new_from_bitmap

Creates a low-level CoglTexture2D texture based on data residing in a CoglBitmap.

cogl_texture_2d_new_from_data

Creates a low-level CoglTexture2D texture based on data residing in memory.

cogl_texture_2d_new_with_format

Creates a low-level CoglTexture2D texture with a given width and height that your GPU can texture from directly.

cogl_texture_2d_new_with_size

Creates a low-level CoglTexture2D texture with a given width and height that your GPU can texture from directly.

Instance methods

Methods inherited from CoglTexture (18)
cogl_texture_allocate

Explicitly allocates the storage for the given texture which allows you to be sure that there is enough memory for the texture and if not then the error can be handled gracefully.

cogl_texture_foreach_in_region

Allows you to manually iterate the low-level textures that define a given region of a high-level CoglTexture.

cogl_texture_get_components

Queries what components the given texture stores internally as set via cogl_texture_set_components().

cogl_texture_get_context
No description available.

cogl_texture_get_data

Copies the pixel data from a cogl texture to system memory.

cogl_texture_get_format
No description available.

cogl_texture_get_gl_texture

Queries the GL handles for a GPU side texture through its CoglTexture.

cogl_texture_get_height

Queries the height of a cogl texture.

cogl_texture_get_premultiplied

Queries the pre-multiplied alpha status for internally stored red, green and blue components for the given texture as set by cogl_texture_set_premultiplied().

cogl_texture_get_width

Queries the width of a cogl texture.

cogl_texture_is_get_data_supported
No description available.

cogl_texture_is_sliced

Queries if a texture is sliced (stored as multiple GPU side tecture objects).

cogl_texture_set_auto_mipmap

Sets whether the texture will automatically update the smaller mipmap levels after any part of level 0 is updated. The update will only occur whenever the texture is used for drawing with a texture filter that requires the lower mipmap levels. An application should disable this if it wants to upload its own data for the other levels. By default auto mipmapping is enabled.

cogl_texture_set_components

Affects the internal storage format for this texture by specifying what components will be required for sampling later.

cogl_texture_set_data

texture a CoglTexture. Sets all the pixels for a given mipmap level by copying the pixel data pointed to by the data argument into the given texture.

cogl_texture_set_premultiplied

Affects the internal storage format for this texture by specifying whether red, green and blue color components should be stored as pre-multiplied alpha values.

cogl_texture_set_region

Sets the pixels in a rectangular subregion of texture from an in-memory buffer containing pixel data.

cogl_texture_set_region_from_bitmap

Copies a specified source region from bitmap to the position (src_x, src_y) of the given destination texture handle.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Properties inherited from CoglTexture (6)
Cogl.Texture:context
No description available.

Cogl.Texture:format
No description available.

Cogl.Texture:height
No description available.

Cogl.Texture:is-primitive
No description available.

Cogl.Texture:loader
No description available.

Cogl.Texture:width
No description available.

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.

Class structure

struct CoglTexture2DClass {
  /* no available fields */
}

No description available.