public class AbstractTexture extends java.lang.Object implements Texture
Texture.Filter, Texture.Wrap| Modifier and Type | Field and Description |
|---|---|
protected TextureDataProvider |
textureDataProvider
Texture data provider.
|
protected boolean |
upToDate
True if the data are up to date.
|
| Constructor and Description |
|---|
AbstractTexture()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dataUpdated()
Notify for data update.
|
TextureDataProvider |
getDataProvider()
Texture data provider getter.
|
Texture.Filter |
getMagnificationFilter()
Magnification filter getter.
|
Texture.Filter |
getMinifyingFilter()
Minifying filter getter.
|
double |
getSScaleFactor()
2D-Texture coordinates must be modified according to the real texture dimension which can differ from
the textureSize (with certains GC, a texture must have a size which is a power-of-two).
|
Texture.Wrap |
getSWrappingMode()
Wrapping mode on the first texture coordinate getter.
|
double |
getTScaleFactor()
2D-Texture coordinates must be modified according to the real texture dimension which can differ from
the textureSize (with certains GC, a texture must have a size which is a power-of-two).
|
Texture.Wrap |
getTWrappingMode()
Wrapping mode on the second dimension getter.
|
boolean |
isValid()
Texture validity getter.
|
void |
setDataProvider(TextureDataProvider provider)
Texture data provider setter.
|
void |
setDrawer(TextureDrawer textureDrawer)
Set the texture data provider as a drawn texture data provider.
|
void |
setMagnificationFilter(Texture.Filter magnificationFilter)
Magnification filter mode setter.
|
void |
setMinifyingFilter(Texture.Filter minifyingFilter)
Minifying filter mode setter.
|
void |
setSWrappingMode(Texture.Wrap sWrappingMode)
Wrapping mode on the first texture coordinate.
|
void |
setTWrappingMode(Texture.Wrap tWrappingMode)
Wrapping mode on the second texture coordinate.
|
protected TextureDataProvider textureDataProvider
protected boolean upToDate
public boolean isValid()
Texturepublic Texture.Wrap getSWrappingMode()
TexturegetSWrappingMode in interface Texturepublic void setSWrappingMode(Texture.Wrap sWrappingMode)
TexturesetSWrappingMode in interface TexturesWrappingMode - the new wrapping mode on the first texture coordinate.public Texture.Wrap getTWrappingMode()
Texturenull.
For more information on wrapping mode {see Wrap}.getTWrappingMode in interface Texturepublic void setTWrappingMode(Texture.Wrap tWrappingMode)
TexturesetTWrappingMode in interface TexturetWrappingMode - the new wrapping mode on the second texture coordinate.public Texture.Filter getMinifyingFilter()
TexturegetMinifyingFilter in interface Texturepublic void setMinifyingFilter(Texture.Filter minifyingFilter)
TexturesetMinifyingFilter in interface TextureminifyingFilter - the new minifying filter mode.public Texture.Filter getMagnificationFilter()
TexturegetMagnificationFilter in interface Texturepublic void setMagnificationFilter(Texture.Filter magnificationFilter)
TexturesetMagnificationFilter in interface TexturemagnificationFilter - the new minifying filter mode.public TextureDataProvider getDataProvider()
TexturegetDataProvider in interface Texturepublic void setDataProvider(TextureDataProvider provider)
TexturesetDataProvider in interface Textureprovider - the new texture data provider.public void setDrawer(TextureDrawer textureDrawer)
Texturepublic void dataUpdated()
DataUserdataUpdated in interface DataUserpublic double getSScaleFactor()
TexturegetSScaleFactor in interface Texturepublic double getTScaleFactor()
TexturegetTScaleFactor in interface Texture