texImage2DIf method
void
texImage2DIf()
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);
}
}