Aviatrix3D
2.1.0

org.j3d.aviatrix3d
Interface TextureSource

All Known Subinterfaces:
MultipassTextureSource, OffscreenTextureSource, PBufferTextureSource
All Known Implementing Classes:
ByteBufferTextureComponent2D, ByteBufferTextureComponent3D, ByteTextureComponent1D, ByteTextureComponent2D, ByteTextureComponent3D, ImageTextureComponent2D, ImageTextureComponent3D, MultipassTextureComponent, TextureComponent, TextureComponent1D, TextureComponent2D, TextureComponent3D

public interface TextureSource

Marker interface representing a class that provides source data for a Texture object.

The source can come from many different places, such as external data images, streams etc), or dynamically generated (multipass rendering). All texture objects require a source of data, and a single source can be added to multiple texture objects.

It is not intended that this interface be used directly as there is not much directly usable information. Derived versions of this interface will provide more interesting and source-specific behaviour.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Field Summary
static int FORMAT_BGR
          Specifies the source is in Windows BGR format
static int FORMAT_BGRA
          Specifies the source is in Windows BGRA format
static int FORMAT_INTENSITY_ALPHA
          Specifies the source is in 2-component Intensity-Alpha format
static int FORMAT_LUMINANCE_ALPHA
          Specifies the source is in 2-component Luminance--Alpha format
static int FORMAT_RGB
          Specifies the source is in RGB format
static int FORMAT_RGBA
          Specifies the source is in RGBA format
static int FORMAT_SINGLE_COMPONENT
          Specifies the source is in 1-component Intensity or Alpha format
 
Method Summary
 int getFormat(int level)
          Get the format of this image at the given mipmap level.
 int getNumLevels()
          Get the number of levels for the mipmapping in this source.
 int getWidth()
          Get the width of this image.
 

Field Detail

FORMAT_RGB

static final int FORMAT_RGB
Specifies the source is in RGB format

See Also:
Constant Field Values

FORMAT_RGBA

static final int FORMAT_RGBA
Specifies the source is in RGBA format

See Also:
Constant Field Values

FORMAT_BGR

static final int FORMAT_BGR
Specifies the source is in Windows BGR format

See Also:
Constant Field Values

FORMAT_BGRA

static final int FORMAT_BGRA
Specifies the source is in Windows BGRA format

See Also:
Constant Field Values

FORMAT_INTENSITY_ALPHA

static final int FORMAT_INTENSITY_ALPHA
Specifies the source is in 2-component Intensity-Alpha format

See Also:
Constant Field Values

FORMAT_LUMINANCE_ALPHA

static final int FORMAT_LUMINANCE_ALPHA
Specifies the source is in 2-component Luminance--Alpha format

See Also:
Constant Field Values

FORMAT_SINGLE_COMPONENT

static final int FORMAT_SINGLE_COMPONENT
Specifies the source is in 1-component Intensity or Alpha format

See Also:
Constant Field Values
Method Detail

getWidth

int getWidth()
Get the width of this image.

Returns:
the width.

getNumLevels

int getNumLevels()
Get the number of levels for the mipmapping in this source.

Returns:
The number of levels.

getFormat

int getFormat(int level)
Get the format of this image at the given mipmap level.

Parameters:
level - The mipmap level to get the format for
Returns:
the format.

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org