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
@ -1431,6 +1431,13 @@ namespace SDL2
|
|||||||
SDL_GLattr attr,
|
SDL_GLattr attr,
|
||||||
int value
|
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)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_GL_SetSwapInterval(int interval);
|
public static extern int SDL_GL_SetSwapInterval(int interval);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user