texImage3DNormal method

void texImage3DNormal(
  1. int target,
  2. int level,
  3. int internalformat,
  4. int width,
  5. int height,
  6. int depth,
  7. int border,
  8. int format,
  9. int type,
  10. dynamic data,
)

Implementation

void texImage3DNormal(int target, int level, int internalformat, int width,
    int height, int depth, int border, int format, int type, data) {
  Pointer<Int8> nativeBuffer;
  if (data != null) {
    nativeBuffer = calloc<Int8>(data.length);
    nativeBuffer.asTypedList(data.length).setAll(0, data);
    glTexImage3D(target, level, internalformat, width, height, depth, border,
        format, type, nativeBuffer.cast<Void>());
    calloc.free(nativeBuffer);
  } else {
    glTexImage3D(target, level, internalformat, width, height, depth, border,
        format, type, nullptr);
  }
}