toInt method

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case GLContextResetNotification.noNotification:
      return SDL_GLContextResetNotification
          .SDL_GL_CONTEXT_RESET_NO_NOTIFICATION;
    case GLContextResetNotification.loseContext:
      return SDL_GLContextResetNotification.SDL_GL_CONTEXT_RESET_LOSE_CONTEXT;
  }
}