| Flutter Linux Embedder |

fl_opengl_manager.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_OPENGL_MANAGER_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_OPENGL_MANAGER_H_
7
8 #include <glib-object.h>
9
10 G_BEGIN_DECLS
11
12 G_DECLARE_FINAL_TYPE(FlOpenGLManager,
13 fl_opengl_manager,
14 FL,
15 OPENGL_MANAGER,
16 GObject)
17
18 /**
19 * fl_opengl_manager_new:
20 *
21 * Creates an object that allows Flutter to render by OpenGL ES.
22 *
23 * Returns: a new #FlOpenGLManager.
24 */
25 FlOpenGLManager* fl_opengl_manager_new();
26
27 /**
28 * fl_opengl_manager_make_current:
29 * @manager: an #FlOpenGLManager.
30 *
31 * Makes the rendering context current.
32 *
33 * Returns: %TRUE if the context made current.
34 */
35 gboolean fl_opengl_manager_make_current(FlOpenGLManager* manager);
36
37 /**
38 * fl_opengl_manager_make_resource_current:
39 * @manager: an #FlOpenGLManager.
40 *
41 * Makes the resource rendering context current.
42 *
43 * Returns: %TRUE if the context made current.
44 */
45 gboolean fl_opengl_manager_make_resource_current(FlOpenGLManager* manager);
46
47 /**
48 * fl_opengl_manager_clear_current:
49 * @manager: an #FlOpenGLManager.
50 *
51 * Clears the current rendering context.
52 *
53 * Returns: %TRUE if the context cleared.
54 */
55 gboolean fl_opengl_manager_clear_current(FlOpenGLManager* manager);
56
57 G_END_DECLS
58
59 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_OPENGL_MANAGER_H_
FL
FL
Definition: fl_binary_messenger.cc:27
fl_opengl_manager_new
FlOpenGLManager * fl_opengl_manager_new()
Definition: fl_opengl_manager.cc:70
fl_opengl_manager_make_current
gboolean fl_opengl_manager_make_current(FlOpenGLManager *manager)
Definition: fl_opengl_manager.cc:76
fl_opengl_manager_clear_current
gboolean fl_opengl_manager_clear_current(FlOpenGLManager *manager)
Definition: fl_opengl_manager.cc:86
fl_opengl_manager_make_resource_current
gboolean fl_opengl_manager_make_resource_current(FlOpenGLManager *manager)
Definition: fl_opengl_manager.cc:81
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlOpenGLManager, fl_opengl_manager, FL, OPENGL_MANAGER, GObject) FlOpenGLManager *fl_opengl_manager_new()