com.threerings.opengl.util
Class DDSLoader

java.lang.Object
  extended by com.threerings.opengl.util.DDSLoader

public class DDSLoader
extends Object

Provides a means of loading texture data from DirectDraw Surface (DDS) files. Note: Currently, this class does not do any format conversions, so it will fail for formats not supported by the OpenGL implementation. We may need to decompress or swizzle textures in unsupported formats.


Constructor Summary
DDSLoader()
           
 
Method Summary
static void load(File file, Texture1D texture, boolean border)
          Loads a 1D texture from the supplied file.
static void load(File file, Texture2D texture, boolean border)
          Loads a 2D texture from the supplied file.
static void load(File file, Texture3D texture, boolean border)
          Loads a 3D texture from the supplied file.
static void load(File file, TextureCubeMap texture, boolean border)
          Loads a cube map texture from the supplied file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDSLoader

public DDSLoader()
Method Detail

load

public static void load(File file,
                        Texture1D texture,
                        boolean border)
                 throws IOException
Loads a 1D texture from the supplied file.

Throws:
IOException

load

public static void load(File file,
                        Texture2D texture,
                        boolean border)
                 throws IOException
Loads a 2D texture from the supplied file.

Throws:
IOException

load

public static void load(File file,
                        Texture3D texture,
                        boolean border)
                 throws IOException
Loads a 3D texture from the supplied file.

Throws:
IOException

load

public static void load(File file,
                        TextureCubeMap texture,
                        boolean border)
                 throws IOException
Loads a cube map texture from the supplied file.

Throws:
IOException


Copyright © 2011. All Rights Reserved.