DataUser
AbstractTexture
, G2DTextureManager.G2DTexture
, JoGLTextureManager.JoGLTexture
public interface Texture extends DataUser
Modifier and Type | Interface | Description |
---|---|---|
static class |
Texture.Filter |
Enumeration of filtering possibility.
|
static class |
Texture.Wrap |
Enumeration of wrapping possibility.
|
Modifier and Type | Method | Description |
---|---|---|
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 wrappingMode) |
Wrapping mode on the first texture coordinate.
|
void |
setTWrappingMode(Texture.Wrap wrappingMode) |
Wrapping mode on the second texture coordinate.
|
dataUpdated
boolean isValid()
Texture.Wrap getSWrappingMode()
void setSWrappingMode(Texture.Wrap wrappingMode)
wrappingMode
- the new wrapping mode on the first texture coordinate.Texture.Wrap getTWrappingMode()
null
.
For more information on wrapping mode {see Wrap}.void setTWrappingMode(Texture.Wrap wrappingMode)
wrappingMode
- the new wrapping mode on the second texture coordinate.Texture.Filter getMinifyingFilter()
void setMinifyingFilter(Texture.Filter minifyingFilter)
minifyingFilter
- the new minifying filter mode.Texture.Filter getMagnificationFilter()
void setMagnificationFilter(Texture.Filter magnificationFilter)
magnificationFilter
- the new minifying filter mode.TextureDataProvider getDataProvider()
void setDataProvider(TextureDataProvider provider)
provider
- the new texture data provider.void setDrawer(TextureDrawer textureDrawer)
textureDrawer
- the given texture drawer.double getSScaleFactor()
double getTScaleFactor()