[vala/wip/sdl2: 35/42] sdl2: Attribute GL.ContextFlag with Flags
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/sdl2: 35/42] sdl2: Attribute GL.ContextFlag with Flags
- Date: Sat, 6 Feb 2021 18:00:42 +0000 (UTC)
commit 070a2e76e96f2697534916310ddc4a11eacb6cbd
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]