texSubImage2DIf method
void
texSubImage2DIf(
- dynamic target,
- dynamic level,
- dynamic x,
- dynamic y,
- dynamic glFormat,
- dynamic glType,
- dynamic image,
Implementation
void texSubImage2DIf(target, level, x, y, glFormat, glType, image) {
if (kIsWeb) {
texSubImage2DNoSize(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);
}
}