toIntValue method

int toIntValue()

Implementation

int toIntValue() {
  switch (this) {
    case EglConfigAttribute.alphaMaskSize:
      return EGL_ALPHA_MASK_SIZE;
    case EglConfigAttribute.alphaSize:
      return EGL_ALPHA_SIZE;
    case EglConfigAttribute.bindToTextureRgb:
      return EGL_BIND_TO_TEXTURE_RGB;
    case EglConfigAttribute.bindToTextureRgba:
      return EGL_BIND_TO_TEXTURE_RGBA;
    case EglConfigAttribute.blueSize:
      return EGL_BLUE_SIZE;
    case EglConfigAttribute.bufferSize:
      return EGL_BUFFER_SIZE;
    case EglConfigAttribute.colorBufferType:
      return EGL_COLOR_BUFFER_TYPE;
    case EglConfigAttribute.configCaveat:
      return EGL_CONFIG_CAVEAT;
    case EglConfigAttribute.configId:
      return EGL_CONFIG_ID;
    case EglConfigAttribute.conformant:
      return EGL_CONFORMANT;
    case EglConfigAttribute.depthSize:
      return EGL_DEPTH_SIZE;
    case EglConfigAttribute.greenSize:
      return EGL_GREEN_SIZE;
    case EglConfigAttribute.level:
      return EGL_LEVEL;
    case EglConfigAttribute.luminanceSize:
      return EGL_LUMINANCE_SIZE;
    case EglConfigAttribute.matchNativePixmap:
      return EGL_MATCH_NATIVE_PIXMAP;
    case EglConfigAttribute.nativeRenderable:
      return EGL_NATIVE_RENDERABLE;
    case EglConfigAttribute.maxSwapInterval:
      return EGL_MAX_SWAP_INTERVAL;
    case EglConfigAttribute.minSwapInterval:
      return EGL_MIN_SWAP_INTERVAL;
    case EglConfigAttribute.redSize:
      return EGL_RED_SIZE;
    case EglConfigAttribute.sampleBuffers:
      return EGL_SAMPLE_BUFFERS;
    case EglConfigAttribute.samples:
      return EGL_SAMPLES;
    case EglConfigAttribute.stencilSize:
      return EGL_STENCIL_SIZE;
    case EglConfigAttribute.renderableType:
      return EGL_RENDERABLE_TYPE;
    case EglConfigAttribute.surfaceType:
      return EGL_SURFACE_TYPE;
    case EglConfigAttribute.transparentType:
      return EGL_TRANSPARENT_TYPE;
    case EglConfigAttribute.transparentRedValue:
      return EGL_TRANSPARENT_RED_VALUE;
    case EglConfigAttribute.transparentGreenValue:
      return EGL_TRANSPARENT_GREEN_VALUE;
    case EglConfigAttribute.transparentBlueValue:
      return EGL_TRANSPARENT_BLUE_VALUE;
    default:
      throw UnsupportedError('Unsupported value: $this');
  }
}