C# likes bitfields to have [Flags] annotations

This commit is contained in:
David Gow 2013-04-05 23:20:09 +08:00
parent 0d070851dd
commit 7fe351db62

View file

@ -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,