-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Expand file tree
/
Copy pathfl_egl_image.h
More file actions
37 lines (29 loc) · 885 Bytes
/
fl_egl_image.h
File metadata and controls
37 lines (29 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_EGL_IMAGE_H_
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_EGL_IMAGE_H_
#include <epoxy/egl.h>
#include <glib-object.h>
G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE(FlEGLImage, fl_egl_image, FL, EGL_IMAGE, GObject)
/**
* 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.
*/
FlEGLImage* fl_egl_image_new(GLuint texture);
/**
* fl_egl_image_get_image:
* @image: an #FlEGLImage.
*
* Gets the EGL image managed by this object.
*
* Returns: the EGL image.
*/
EGLImage fl_egl_image_get_image(FlEGLImage* image);
G_END_DECLS
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_EGL_IMAGE_H_