texImage2D_IF method

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

Implementation

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