texSubImage2D2 method

dynamic texSubImage2D2(
  1. dynamic x,
  2. dynamic y,
  3. dynamic width,
  4. dynamic height,
  5. dynamic data,
)

Implementation

texSubImage2D2(x, y, width, height, data) {
  final dataPtr = toPointer(data);
  glTexSubImage2D(
      TEXTURE_2D, 0, x, y, width, height, RGBA, UNSIGNED_BYTE, dataPtr);
  calloc.free(dataPtr);
}