toInt method

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case TextureAccess.static_:
      return SDL_TextureAccess.SDL_TEXTUREACCESS_STATIC;
    case TextureAccess.streaming:
      return SDL_TextureAccess.SDL_TEXTUREACCESS_STREAMING;
    case TextureAccess.target:
      return SDL_TextureAccess.SDL_TEXTUREACCESS_TARGET;
  }
}