com.threerings.opengl.renderer
Class TextureCubeMap

java.lang.Object
  extended by com.threerings.opengl.renderer.Texture
      extended by com.threerings.opengl.renderer.TextureCubeMap

public class TextureCubeMap
extends Texture

A cube map texture.


Field Summary
static int[] FACE_TARGETS
          The targets for each face.
 
Constructor Summary
TextureCubeMap(Renderer renderer)
          Creates a new texture.
 
Method Summary
 int getHeight()
          Returns the height of the texture.
 int getWidth()
          Returns the width of the texture.
 void setCompressedImage(int target, int level, int format, int size, boolean border, ByteBuffer data)
          Sets a single compressed mipmap level of a single face of this texture.
 void setImage(int target, int level, int format, int size, boolean border, int dformat, int dtype, ByteBuffer data)
          Sets a single mipmap level of a single face of this texture.
 void setImages(int format, boolean border, BufferedImage[] images, boolean premultiply, boolean rescale, boolean mipmap)
          Sets this texture to the supplied images.
 void setImages(int format, boolean border, BufferedImage image, int sdivs, int tdivs, boolean premultiply, boolean rescale, boolean mipmap)
          Sets this texture to the supplied image.
 void setImages(int format, int size, boolean border, boolean mipmap)
          Sets this texture to a set of empty images with the specified format and dimension.
 void setImages(int level, int format, boolean border, BufferedImage[] images, boolean premultiply, boolean rescale)
          Sets a single mipmap level of this texture.
 void setImages(int level, int format, boolean border, BufferedImage image, int sdivs, int tdivs, boolean premultiply, boolean rescale)
          Sets a single mipmap level of this texture.
 void setImages(int level, int format, int size, boolean border)
          Sets a single mipmap level of this texture.
 
Methods inherited from class com.threerings.opengl.renderer.Texture
delete, generateMipmap, getDepth, getFormat, getId, getTarget, hasAlpha, isDepth, setBorderColor, setCompare, setCompareFunc, setCompareMode, setDepthMode, setFilters, setGenerateMipmaps, setMagFilter, setMaxAnisotropy, setMinFilter, setWrap, setWrap, setWrapR, setWrapS, setWrapT
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACE_TARGETS

public static final int[] FACE_TARGETS
The targets for each face.

Constructor Detail

TextureCubeMap

public TextureCubeMap(Renderer renderer)
Creates a new texture.

Method Detail

setImages

public void setImages(int format,
                      int size,
                      boolean border,
                      boolean mipmap)
Sets this texture to a set of empty images with the specified format and dimension.

Parameters:
mipmap - if true, generate a complete mipmap chain.

setImages

public void setImages(int level,
                      int format,
                      int size,
                      boolean border)
Sets a single mipmap level of this texture.


setImage

public void setImage(int target,
                     int level,
                     int format,
                     int size,
                     boolean border,
                     int dformat,
                     int dtype,
                     ByteBuffer data)
Sets a single mipmap level of a single face of this texture.


setCompressedImage

public void setCompressedImage(int target,
                               int level,
                               int format,
                               int size,
                               boolean border,
                               ByteBuffer data)
Sets a single compressed mipmap level of a single face of this texture.


setImages

public void setImages(int format,
                      boolean border,
                      BufferedImage[] images,
                      boolean premultiply,
                      boolean rescale,
                      boolean mipmap)
Sets this texture to the supplied images.

Parameters:
mipmap - if true, generate a complete mipmap chain.

setImages

public void setImages(int level,
                      int format,
                      boolean border,
                      BufferedImage[] images,
                      boolean premultiply,
                      boolean rescale)
Sets a single mipmap level of this texture.


setImages

public void setImages(int format,
                      boolean border,
                      BufferedImage image,
                      int sdivs,
                      int tdivs,
                      boolean premultiply,
                      boolean rescale,
                      boolean mipmap)
Sets this texture to the supplied image.

Parameters:
mipmap - if true, generate a complete mipmap chain.

setImages

public void setImages(int level,
                      int format,
                      boolean border,
                      BufferedImage image,
                      int sdivs,
                      int tdivs,
                      boolean premultiply,
                      boolean rescale)
Sets a single mipmap level of this texture.


getWidth

public int getWidth()
Description copied from class: Texture
Returns the width of the texture.

Specified by:
getWidth in class Texture

getHeight

public int getHeight()
Description copied from class: Texture
Returns the height of the texture.

Specified by:
getHeight in class Texture


Copyright © 2011. All Rights Reserved.