Add overload to SDL_GL_SetAttribute which accepts the SDL_GLprofile enum to prevent having to cast.
This commit is contained in:
parent
dd6f7face8
commit
48e13433b3
@ -1432,6 +1432,13 @@ namespace SDL2
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user