From 7fe351db622cb7714dac77eb785efea5898cb228 Mon Sep 17 00:00:00 2001 From: David Gow Date: Fri, 5 Apr 2013 23:20:09 +0800 Subject: [PATCH] C# likes bitfields to have [Flags] annotations --- src/SDL2.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index 445d5de..bcbb6f4 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -359,6 +359,7 @@ namespace SDL2 #region SDL_video.h /* Actually, this is from SDL_blendmode.h */ + [Flags] public enum SDL_BlendMode { SDL_BLENDMODE_NONE = 0x00000000, @@ -413,6 +414,7 @@ namespace SDL2 SDL_WINDOWEVENT_CLOSE, } + [Flags] public enum SDL_WindowFlags { SDL_WINDOW_FULLSCREEN = 0x00000001, @@ -829,6 +831,7 @@ namespace SDL2 #region SDL_render.h + [Flags] public enum SDL_RendererFlags { SDL_RENDERER_SOFTWARE = 0x00000001, @@ -837,6 +840,7 @@ namespace SDL2 SDL_RENDERER_TARGETTEXTURE = 0x00000008 } + [Flags] public enum SDL_RendererFlip { SDL_FLIP_NONE = 0x00000000, @@ -851,6 +855,7 @@ namespace SDL2 SDL_TEXTUREACCESS_TARGET } + [Flags] public enum SDL_TextureModulate { SDL_TEXTUREMODULATE_NONE = 0x00000000,