/** * load level 0 explicitly with null pointer to enable * mipmapping when level 0 is not the base level */ void updateTextureDimensions(Canvas3D cv) { if(images[0][0] != null) { updateTextureImage(cv, 0, maxLevels, 0, format, images[0][0].getImageFormatTypeIntValue(false), width, height, boundaryWidth, images[0][0].getImageDataTypeIntValue(), null); } }
@Override void updateTextureDimensions(Canvas3D cv) { if(images[0][0] != null) { updateTextureImage(cv, maxLevels, 0, 0, format, images[0][0].getImageFormatTypeIntValue(false), width, height, depth, boundaryWidth, images[0][0].getImageDataTypeIntValue(), null); } }
/** * Load level 0 explicitly with null data pointer to allow * mipmapping when level 0 is not the base level */ @Override void updateTextureDimensions(Canvas3D cv) { if(images[0][0] != null) { // All faces should have the same image format and type. int imageFormat = images[0][0].getImageFormatTypeIntValue(false); int imageType = images[0][0].getImageDataTypeIntValue(); for (int i = 0; i < 6; i++) { updateTextureImage(cv, i, maxLevels, 0, format, imageFormat, width, height, boundaryWidth, imageType, null); } } }
@Override void reloadTextureImage(Canvas3D cv, int face, int level, ImageComponentRetained image, int numLevels) { /* System.err.println("Texture3D.reloadTextureImage: level= " + level + " image.imageYup= " + image.imageYup + " w= " + image.width + " h= " + image.height + " d= " + depth + " numLevels= " + numLevels); */ // Texture3D does not need to support Raster ImageComponentRetained.ImageData imageData = image.getImageData(false); updateTextureImage(cv, 0, numLevels, level, format, image.getImageFormatTypeIntValue(false), image.width, image.height, depth, boundaryWidth, image.getImageDataTypeIntValue(), imageData.get()); }
@Override void reloadTextureSubImage(Canvas3D cv, int level, int face, ImageComponentUpdateInfo info, ImageComponentRetained image) { int x = info.x, y = info.y, z = info.z, width = info.width, height = info.height; int xoffset = x; int yoffset = y; // Texture3D does not need to support Raster ImageComponentRetained.ImageData imageData = image.getImageData(false); updateTextureSubImage(cv, 0, level, xoffset, yoffset, z, format, image.getImageFormatTypeIntValue(false), xoffset, yoffset, z, image.width, image.height, width, height, 1, image.getImageDataTypeIntValue(), imageData.get()); }
format, image.getImageFormatTypeIntValue(useAsRaster), imageData.getWidth(), imageData.getHeight(), boundaryWidth, image.getImageDataTypeIntValue(), imageData.get());
xoffset, yoffset, image.width, width, height, image.getImageDataTypeIntValue(), imageData.get());