Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
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}
FlutterVulkanImage * image
FlutterVulkanImageHandle image
Definition embedder.h:938

References FlutterVulkanImage::image, and image.

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
64
65 return self;
66}
static EGLImage create_egl_image(GLuint texture_id)
FlTexture * texture

References create_egl_image(), self, and texture.

Referenced by fl_framebuffer_new(), and TEST().