[vlc-commits] vlc_opengl: expose vlc_gl_api_type

Alexandre Janniaux git at videolan.org
Fri Jan 29 11:06:21 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Jan 28 12:11:10 2021 +0100| [8fb7688cfef363989268b9cf04b439674938de56] | committer: Alexandre Janniaux

vlc_opengl: expose vlc_gl_api_type

It will be used to determine whether we should use OpenGL or OpenGL ES
during the runtime.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8fb7688cfef363989268b9cf04b439674938de56
---

 include/vlc_opengl.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/vlc_opengl.h b/include/vlc_opengl.h
index 79e165e72b..ffb81a651d 100644
--- a/include/vlc_opengl.h
+++ b/include/vlc_opengl.h
@@ -38,6 +38,11 @@ struct vout_display_cfg;
  */
 typedef struct vlc_gl_t vlc_gl_t;
 
+enum vlc_gl_api_type {
+    VLC_OPENGL,
+    VLC_OPENGL_ES2,
+};
+
 struct vlc_gl_t
 {
     struct vlc_object_t obj;
@@ -77,11 +82,7 @@ struct vlc_gl_t
             const char *(*getExtensionsString)(vlc_gl_t *);
         } wgl;
     };
-};
 
-enum {
-    VLC_OPENGL,
-    VLC_OPENGL_ES2,
 };
 
 /**



More information about the vlc-commits mailing list