texSubImage2D_IF method
void
texSubImage2D_IF(
- dynamic target,
- dynamic level,
- dynamic x,
- dynamic y,
- dynamic glFormat,
- dynamic glType,
- dynamic image,
Implementation
void texSubImage2D_IF(target, level, x, y, glFormat, glType, image) {
if (kIsWeb) {
texSubImage2D_NOSIZE(gl.TEXTURE_2D, 0, 0, 0, glFormat, glType, image.data);
} else {
texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, image.width, image.height, glFormat, glType, image.data);
}
}