glCompressedTexImage2D method

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

Implementation

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