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()
Texture
public Texture.Wrap getSWrappingMode()
Texture
getSWrappingMode
in interface Texture
public void setSWrappingMode(Texture.Wrap sWrappingMode)
Texture
setSWrappingMode
in interface Texture
sWrappingMode
- the new wrapping mode on the first texture coordinate.public Texture.Wrap getTWrappingMode()
Texture
null
.
For more information on wrapping mode {see Wrap}.getTWrappingMode
in interface Texture
public void setTWrappingMode(Texture.Wrap tWrappingMode)
Texture
setTWrappingMode
in interface Texture
tWrappingMode
- the new wrapping mode on the second texture coordinate.public Texture.Filter getMinifyingFilter()
Texture
getMinifyingFilter
in interface Texture
public void setMinifyingFilter(Texture.Filter minifyingFilter)
Texture
setMinifyingFilter
in interface Texture
minifyingFilter
- the new minifying filter mode.public Texture.Filter getMagnificationFilter()
Texture
getMagnificationFilter
in interface Texture
public void setMagnificationFilter(Texture.Filter magnificationFilter)
Texture
setMagnificationFilter
in interface Texture
magnificationFilter
- the new minifying filter mode.public TextureDataProvider getDataProvider()
Texture
getDataProvider
in interface Texture
public void setDataProvider(TextureDataProvider provider)
Texture
setDataProvider
in interface Texture
provider
- the new texture data provider.public void setDrawer(TextureDrawer textureDrawer)
Texture
public void dataUpdated()
DataUser
dataUpdated
in interface DataUser
public double getSScaleFactor()
Texture
getSScaleFactor
in interface Texture
public double getTScaleFactor()
Texture
getTScaleFactor
in interface Texture