| 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 void fl_opengl_manager_make_current(FlOpenGLManager* manager);
34
35 /**
36 * fl_opengl_manager_make_resource_current:
37 * @manager: an #FlOpenGLManager.
38 *
39 * Makes the resource rendering context current.
40 */
41 void fl_opengl_manager_make_resource_current(FlOpenGLManager* manager);
42
43 /**
44 * fl_opengl_manager_clear_current:
45 * @manager: an #FlOpenGLManager.
46 *
47 * Clears the current rendering context.
48 */
49 void fl_opengl_manager_clear_current(FlOpenGLManager* manager);
50
51 G_END_DECLS
52
53 #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
void fl_opengl_manager_make_current(FlOpenGLManager *manager)
Definition: fl_opengl_manager.cc:76
fl_opengl_manager_clear_current
void fl_opengl_manager_clear_current(FlOpenGLManager *manager)
Definition: fl_opengl_manager.cc:86
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlOpenGLManager, fl_opengl_manager, FL, OPENGL_MANAGER, GObject) FlOpenGLManager *fl_opengl_manager_new()
fl_opengl_manager_make_resource_current
void fl_opengl_manager_make_resource_current(FlOpenGLManager *manager)
Definition: fl_opengl_manager.cc:81