[vlc-devel] [PATCH 1/4] vlc_opengl: expose vlc_gl_api_type

Alexandre Janniaux ajanni at videolabs.io
Thu Jan 28 11:11:10 UTC 2021


It will be used to determine whether we should use OpenGL or OpenGL ES
during the runtime.
---
 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,
 };
 
 /**
-- 
2.30.0



More information about the vlc-devel mailing list