BufferUtils.createByteBuffer(roundedWidth * roundedHeight * 4);
Image image =
new Image(Image.Format.RGB8, roundedWidth, roundedHeight, data);
// Create the texture which wraps the image
texture = new Texture2D();
logger.fine("Created new texture " + texture);
texture.setImage(image);
texture.setMagnificationFilter(Texture.MagnificationFilter.Bilinear);
texture.setMinificationFilter(
Texture.MinificationFilter.BilinearNoMipMaps);