Flutter Linux Embedder
fl_egl_image.h File Reference
#include <epoxy/egl.h>
#include <glib-object.h>

Go to the source code of this file.

Functions

G_BEGIN_DECLS FlEGLImage * fl_egl_image_new (GLuint texture)
 
EGLImage fl_egl_image_get_image (FlEGLImage *image)
 

Function Documentation

◆ fl_egl_image_get_image()

EGLImage fl_egl_image_get_image ( FlEGLImage *  image)

fl_egl_image_get_image: an #FlEGLImage.

Gets the EGL image managed by this object.

Returns: the EGL image.

Definition at line 68 of file fl_egl_image.cc.

68  {
69  g_return_val_if_fail(FL_IS_EGL_IMAGE(image), EGL_NO_IMAGE_KHR);
70  return image->image;
71 }

Referenced by fl_framebuffer_create_sibling(), and TEST().

◆ fl_egl_image_new()

G_BEGIN_DECLS FlEGLImage* fl_egl_image_new ( GLuint  texture)

fl_egl_image_new: @texture: the texture to create an EGL image for.

Creates an object that manages an EGL image.

Returns: a new #FlEGLImage.

Definition at line 59 of file fl_egl_image.cc.

59  {
60  FlEGLImage* self =
61  FL_EGL_IMAGE(g_object_new(fl_egl_image_get_type(), nullptr));
62 
63  self->image = create_egl_image(texture);
64 
65  return self;
66 }
static EGLImage create_egl_image(GLuint texture_id)
Definition: fl_egl_image.cc:16

References create_egl_image().

Referenced by fl_framebuffer_new(), and TEST().