toGLContextResetNotification method
Convert from a SDL_GLContextResetNotification
member.
Implementation
GLContextResetNotification toGLContextResetNotification() {
switch (this) {
case SDL_GLContextResetNotification.SDL_GL_CONTEXT_RESET_NO_NOTIFICATION:
return GLContextResetNotification.noNotification;
case SDL_GLContextResetNotification.SDL_GL_CONTEXT_RESET_LOSE_CONTEXT:
return GLContextResetNotification.loseContext;
default:
throw SdlError(
this,
'Unrecognised `SDL_GLContextResetNotification` member.',
);
}
}