All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.Texture2D

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.NodeComponent
                   |
                   +----java.media.j3d.Texture
                           |
                           +----java.media.j3d.Texture2D

public class Texture2D
extends Texture
Texture2D is a subclass of Texture class. It extends Texture class by adding a constructor and a mutator method for setting a 2D texture image.


Constructor Index

 o Texture2D()
Constructs a texture object using default values.
 o Texture2D(int, int, int, int)
Constructs an empty Texture2D object with specified mipmapMode format, width and height.

Constructors

 o Texture2D
 public Texture2D()
Constructs a texture object using default values.

 o Texture2D
 public Texture2D(int mipmapMode,
                  int format,
                  int width,
                  int height)
Constructs an empty Texture2D object with specified mipmapMode format, width and height. Image at level 0 must be set by the application using 'setImage' method. If mipmapMode is set to MULTI_LEVEL_MIPMAP, images for ALL levels must be set.

Parameters:
mipmapMode - type of mipmap for this Texture: One of BASE_LEVEL, MULTI_LEVEL_MIPMAP.
format - data format of Textures saved in this object. One of INTENSITY, LUMINANCE, ALPHA, LUMINANCE_ALPHA, RGB, RGBA.
width - width of image at level 0. Must be power of 2.
height - height of image at level 0. Must be power of 2.
Throws: IllegalArgumentException
if width or height are NOT power of 2 OR invalid format/mipmapMode is specified.

All Packages  Class Hierarchy  This Package  Previous  Next  Index