Method

CoglTextureget_gl_texture

Declaration [src]

gboolean
cogl_texture_get_gl_texture (
  CoglTexture* texture,
  unsigned int* out_gl_handle,
  unsigned int* out_gl_target
)

Description [src]

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

If the texture is spliced the data for the first sub texture will be queried.

Parameters

out_gl_handle unsigned int*
 

Pointer to return location for the textures GL handle, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
out_gl_target unsigned int*
 

Pointer to return location for the GL target type, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: gboolean
 

TRUE if the handle was successfully retrieved, FALSE if the handle was invalid.