glCompressedTexImage3D method

void glCompressedTexImage3D(
  1. int target,
  2. int level,
  3. int internalformat,
  4. int width,
  5. int height,
  6. int depth,
  7. int border,
  8. int imageSize,
  9. TypedData? data,
)

Implementation

void glCompressedTexImage3D(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int depth,
  int border,
  int imageSize,
  TypedData? data,
) {
  switch (data) {
    case null:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, ffi.nullptr);
    case Float64List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
    case Float32List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
    case Int32List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
    case Int16List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
    case Int8List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
    case Uint32List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
    case Uint16List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
    case Uint8List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
    case Uint64List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
    case Int64List d:
      _glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, d.address.cast<ffi.Void>());
  }
}