From 70c4d742c8d6d01133ca4f135710813be5d8b5a1 Mon Sep 17 00:00:00 2001 From: ollipekka Date: Sat, 3 Aug 2013 21:39:08 +0300 Subject: [PATCH 1/2] Unified naming conventions with the native SDL2 library and introduced SDL_GLprofile. --- src/SDL2.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/SDL2.cs b/src/SDL2.cs index 4bdfa15..03e9f4f 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -597,8 +597,16 @@ namespace SDL2 SDL_GL_CONTEXT_MINOR_VERSION, SDL_GL_CONTEXT_EGL, SDL_GL_CONTEXT_FLAGS, - SDL_GL_PROFILE_MASK, - SDL_GL_SHARE_WITH_CURRENT_CONTEXT + SDL_GL_CONTEXT_PROFILE_MASK, + SDL_GL_SHARE_WITH_CURRENT_CONTEXT + } + + [Flags] + public enum SDL_GLprofile + { + SDL_GL_CONTEXT_PROFILE_CORE = 0x0001, + SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 0x0002, + SDL_GL_CONTEXT_PROFILE_ES = 0x0004 } public enum SDL_WindowEventID : byte From 82aae4d7224f00c87ad6e773a7abd9a1cab75e52 Mon Sep 17 00:00:00 2001 From: ollipekka Date: Sat, 3 Aug 2013 21:41:48 +0300 Subject: [PATCH 2/2] Fixed leading whitespace in indent. --- src/SDL2.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SDL2.cs b/src/SDL2.cs index 03e9f4f..120a8d0 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -597,8 +597,8 @@ namespace SDL2 SDL_GL_CONTEXT_MINOR_VERSION, SDL_GL_CONTEXT_EGL, SDL_GL_CONTEXT_FLAGS, - SDL_GL_CONTEXT_PROFILE_MASK, - SDL_GL_SHARE_WITH_CURRENT_CONTEXT + SDL_GL_CONTEXT_PROFILE_MASK, + SDL_GL_SHARE_WITH_CURRENT_CONTEXT } [Flags]