cogl: Add API to get the texture from an offscreen
https://bugzilla.gnome.org/show_bug.cgi?id=768976
This commit is contained in:
parent
7f0e6b9b4b
commit
c498bce9e4
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user