private void loadDX10Header() throws IOException {
        int dxgiFormat = in.readInt();
        setPixelFormat(dxgiFormat);

        compressed = true;

        int resDim = in.readInt();
        if (resDim == DX10DIM_TEXTURE3D) {
            texture3D = true;
        }
        int miscFlag = in.readInt();
        int arraySize = in.readInt();
        if (is(miscFlag, DX10MISC_TEXTURECUBE)) {
            // mark texture as cube
            if (arraySize != 6) {
                throw new IOException("Cubemaps should consist of 6 images!");
            }
        }

        in.skipBytes(4); // skip reserved value
    }
<code>DDSLoader</code> is an image loader that reads in a DirectX DDS file.
Supports DXT1, DXT3, DXT5, RGB, RGBA, Grayscale, Alpha pixel formats.
2D images, mipmapped 2D images, and cubemaps.

@author Gareth Jenkins-Jones
@author Kirill Vainer
@version $Id: DDSLoader.java,v 2.0 2008/8/15
jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java