cogl/texture: Expose Texture.get_context
Would be useful for next commit Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3977>
This commit is contained in:
parent
75c7ced752
commit
5f5448b180
2 changed files with 8 additions and 3 deletions
|
@ -328,9 +328,6 @@ void
|
|||
_cogl_texture_copy_internal_format (CoglTexture *src,
|
||||
CoglTexture *dest);
|
||||
|
||||
CoglContext *
|
||||
cogl_texture_get_context (CoglTexture *texture);
|
||||
|
||||
CoglTextureLoader *
|
||||
cogl_texture_get_loader (CoglTexture *texture);
|
||||
|
||||
|
|
|
@ -474,4 +474,12 @@ cogl_texture_set_auto_mipmap (CoglTexture *texture,
|
|||
COGL_EXPORT CoglPixelFormat
|
||||
cogl_texture_get_format (CoglTexture *texture);
|
||||
|
||||
/**
|
||||
* cogl_texture_get_context:
|
||||
*
|
||||
* Returns: (transfer none): The associated %CoglContext
|
||||
*/
|
||||
COGL_EXPORT CoglContext *
|
||||
cogl_texture_get_context (CoglTexture *texture);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
Loading…
Reference in a new issue