private Texture2D createAtlasTextureInternal(final int width, final int height) throws Exception {
        // re-use pre-defined initial data instead of creating a new buffer
        initialData.rewind();

        Texture2D texture = new Texture2D(new com.jme3.texture.Image(Format.RGBA8, width, height, initialData, ColorSpace.sRGB));
        texture.setMinFilter(MinFilter.NearestNoMipMaps);
        texture.setMagFilter(MagFilter.Nearest);
        return texture;
    }
Whether or not to overwrite previously used atlas space with blank data.
Setting to true will result in slower performance, but may be useful in
debugging when visually inspecting the atlas, since there will not be
portions of old images visible in currently unused atlas space.

@param shouldFill true&rarr;overwrite with blank data, false&rarr;don't
overwrite
jme3-niftygui/src/main/java/com/jme3/niftygui/JmeBatchRenderBackend.java