texImage2DIf method

void texImage2DIf(
  1. int target,
  2. int level,
  3. int internalformat,
  4. int format,
  5. int type,
  6. dynamic image,
)

Implementation

void texImage2DIf(int target, int level, int internalformat, int format, int type, image) {
  if (kIsWeb) {
    texImage2DNoSize(target, level, internalformat, format, type, image.data);
  }
  else {
    texImage2D(target, level, internalformat, image.width, image.height, 0, format, type, image.data);
  }
}