mirror of
https://github.com/brl/mutter.git
synced 2025-08-02 14:44:40 +00:00
cogl: Add API to get the texture from an offscreen
https://bugzilla.gnome.org/show_bug.cgi?id=768976
This commit is contained in:
@@ -705,6 +705,12 @@ cogl_offscreen_new_with_texture (CoglTexture *texture)
|
||||
return _cogl_offscreen_new_with_texture_full (texture, 0, 0);
|
||||
}
|
||||
|
||||
CoglTexture *
|
||||
cogl_offscreen_get_texture (CoglOffscreen *offscreen)
|
||||
{
|
||||
return offscreen->texture;
|
||||
}
|
||||
|
||||
static void
|
||||
_cogl_offscreen_free (CoglOffscreen *offscreen)
|
||||
{
|
||||
|
@@ -167,6 +167,12 @@ COGL_DEPRECATED_FOR (cogl_object_unref)
|
||||
void
|
||||
cogl_offscreen_unref (void *offscreen);
|
||||
|
||||
/**
|
||||
* cogl_offscreen_get_texture: (skip)
|
||||
*/
|
||||
CoglTexture *
|
||||
cogl_offscreen_get_texture (CoglOffscreen *offscreen);
|
||||
|
||||
COGL_END_DECLS
|
||||
|
||||
#endif /* __COGL_OFFSCREEN_H__ */
|
||||
|
Reference in New Issue
Block a user