net.dzzd.access
Interface ITexture

All Superinterfaces:
IMonitoredSceneObject, ISceneObject
All Known Subinterfaces:
IURLTexture

public interface ITexture
extends ISceneObject

Used for accessing to a Texture.
Texture are a 2D image represented by an array of pixels color.

3DzzD use 32 bit integer to store pixels colors and 32 bit integer array to store Texture.

Since:
1.0
Version:
1.0, 01/01/04
Author:
Bruno Augier
See Also:
ITexture, IProgress, DzzD

Method Summary
 void buildMipMap()
          Compute MipMap for this Texture.
 int[] getPixels()
          Gets this Texture pixel buffer
 int getPixelsHeight()
          Gets this Texture pixel buffer height
 int getPixelsWidth()
          Gets this Texture pixel buffer width
 int getType()
          Gets this Texture type
 void setType(int type)
          Sets this Texture type
 
Methods inherited from interface net.dzzd.access.ISceneObject
build, clearProperties, copy, getBuild, getId, getName, getProperty, getScene, setBuild, setId, setName, setProperty
 
Methods inherited from interface net.dzzd.access.IMonitoredSceneObject
copy
 

Method Detail

buildMipMap

public void buildMipMap()
Compute MipMap for this Texture.
Internaly store multiple reduced version of pixels color array
by recursivly scaling this texture by 50% and storing resulting
pixels array internaly.


getPixels

public int[] getPixels()
Gets this Texture pixel buffer

Returns:
this Texture pixels buffer

getPixelsWidth

public int getPixelsWidth()
Gets this Texture pixel buffer width

Returns:
this Texture pixels buffer width

getPixelsHeight

public int getPixelsHeight()
Gets this Texture pixel buffer height

Returns:
this Texture pixels buffer height

setType

public void setType(int type)
Sets this Texture type

Parameters:
type - this Texture type: DzzD.TT_RGB,DzzD.TT_ARGB,DzzD.TT_NORMAL,DzzD.TT_HNORMAL etc

getType

public int getType()
Gets this Texture type

Returns:
this Texture type: DzzD.TT_RGB,DzzD.TT_ARGB,DzzD.TT_NORMAL,DzzD.TT_HNORMAL etc