Add overload to SDL_GL_SetAttribute which accepts the SDL_GLprofile enum to prevent having to cast.

This commit is contained in:
smack0007 2018-07-19 17:46:57 +02:00 committed by Ethan Lee
parent dd6f7face8
commit 48e13433b3

View file

@ -1431,6 +1431,13 @@ namespace SDL2
SDL_GLattr attr,
int value
);
public static int SDL_GL_SetAttribute(
SDL_GLattr attr,
SDL_GLprofile profile
) {
return SDL_GL_SetAttribute(attr, (int)profile);
}
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_GL_SetSwapInterval(int interval);