texSubImage2D method

dynamic texSubImage2D(
  1. dynamic target,
  2. dynamic level,
  3. dynamic x,
  4. dynamic y,
  5. dynamic width,
  6. dynamic height,
  7. dynamic format,
  8. dynamic type,
  9. dynamic data,
)

Implementation

texSubImage2D(target, level, x, y, width, height, format, type, data) {
  final dataPtr = getData(data);
  glTexSubImage2D(target, level, x, y, width, height, format, type, dataPtr);
  // calloc.free(dataPtr);
}