[vala/wip/sdl2: 21/28] sdl2: Attribute GL.ContextFlag with Flags




commit 9e4d644ea3e100f177a6410edf656829488e26e2
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Jan 25 17:40:09 2021 +0100

    sdl2: Attribute GL.ContextFlag with Flags

 vapi/sdl2.vapi | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/vapi/sdl2.vapi b/vapi/sdl2.vapi
index 0d89af276..240d37974 100644
--- a/vapi/sdl2.vapi
+++ b/vapi/sdl2.vapi
@@ -3246,9 +3246,16 @@ namespace SDL {
                                CORE, COMPATIBILITY, ES;
                        }// GLprofile
 
-                       [CCode (cname = "SDL_GLcontextFlag", cprefix = "SDL_GL_CONTEXT_", cheader_filename = 
"SDL2/SDL_video.h")]
+                       [Flags, CCode (cname = "SDL_GLcontextFlag", cprefix = "SDL_GL_CONTEXT_", 
cheader_filename = "SDL2/SDL_video.h")]
                        public enum ContextFlag {
-                               DEBUG_FLAG, FORWARD_COMPATIBLE_FLAG, ROBUST_ACCESS_FLAG, RESET_ISOLATION_FLAG
+                               [CCode (cname = "SDL_GL_CONTEXT_DEBUG_FLAG")]
+                               DEBUG,
+                               [CCode (cname = "SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG")]
+                               FORWARD_COMPATIBLE,
+                               [CCode (cname = "SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG")]
+                               ROBUST_ACCESS,
+                               [CCode (cname = "SDL_GL_CONTEXT_RESET_ISOLATION_FLAG")]
+                               RESET_ISOLATION
                        }
                        [CCode (cname = "SDL_GL_LoadLibrary")]
                        public static int load_library (string path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]