Interface Texture
-
- All Superinterfaces:
DataUser
- All Known Implementing Classes:
AbstractTexture,G2DTextureManager.G2DTexture,JoGLTextureManager.JoGLTexture
public interface Texture extends DataUser
- Author:
- Pierre Lando
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTexture.FilterEnumeration of filtering possibility.static classTexture.WrapEnumeration of wrapping possibility.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextureDataProvidergetDataProvider()Texture data provider getter.Texture.FiltergetMagnificationFilter()Magnification filter getter.Texture.FiltergetMinifyingFilter()Minifying filter getter.doublegetSScaleFactor()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.WrapgetSWrappingMode()Wrapping mode on the first texture coordinate getter.doublegetTScaleFactor()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.WrapgetTWrappingMode()Wrapping mode on the second dimension getter.booleanisValid()Texture validity getter.voidsetDataProvider(TextureDataProvider provider)Texture data provider setter.voidsetDrawer(TextureDrawer textureDrawer)Set the texture data provider as a drawn texture data provider.voidsetMagnificationFilter(Texture.Filter magnificationFilter)Magnification filter mode setter.voidsetMinifyingFilter(Texture.Filter minifyingFilter)Minifying filter mode setter.voidsetSWrappingMode(Texture.Wrap wrappingMode)Wrapping mode on the first texture coordinate.voidsetTWrappingMode(Texture.Wrap wrappingMode)Wrapping mode on the second texture coordinate.-
Methods inherited from interface org.scilab.forge.scirenderer.data.DataUser
dataUpdated
-
-
-
-
Method Detail
-
isValid
boolean isValid()
Texture validity getter.- Returns:
- true is this texture is valid and can be used for rendering.
-
getSWrappingMode
Texture.Wrap getSWrappingMode()
Wrapping mode on the first texture coordinate getter. For more information on wrapping mode {see Wrap}.- Returns:
- the wrapping mode on the first texture coordinate.
-
setSWrappingMode
void setSWrappingMode(Texture.Wrap wrappingMode)
Wrapping mode on the first texture coordinate.- Parameters:
wrappingMode- the new wrapping mode on the first texture coordinate.
-
getTWrappingMode
Texture.Wrap getTWrappingMode()
Wrapping mode on the second dimension getter. If the texture dimension is 1, this method will returnnull. For more information on wrapping mode {see Wrap}.- Returns:
- the wrapping mode on the second dimension.
-
setTWrappingMode
void setTWrappingMode(Texture.Wrap wrappingMode)
Wrapping mode on the second texture coordinate.- Parameters:
wrappingMode- the new wrapping mode on the second texture coordinate.
-
getMinifyingFilter
Texture.Filter getMinifyingFilter()
Minifying filter getter.- Returns:
- the used minifying filter.
-
setMinifyingFilter
void setMinifyingFilter(Texture.Filter minifyingFilter)
Minifying filter mode setter.- Parameters:
minifyingFilter- the new minifying filter mode.
-
getMagnificationFilter
Texture.Filter getMagnificationFilter()
Magnification filter getter.- Returns:
- the used magnification filter.
-
setMagnificationFilter
void setMagnificationFilter(Texture.Filter magnificationFilter)
Magnification filter mode setter.- Parameters:
magnificationFilter- the new minifying filter mode.
-
getDataProvider
TextureDataProvider getDataProvider()
Texture data provider getter.- Returns:
- the texture data provider.
-
setDataProvider
void setDataProvider(TextureDataProvider provider)
Texture data provider setter. The texture is set to 'no up to date'.- Parameters:
provider- the new texture data provider.
-
setDrawer
void setDrawer(TextureDrawer textureDrawer)
Set the texture data provider as a drawn texture data provider.- Parameters:
textureDrawer- the given texture drawer.
-
getSScaleFactor
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).- Returns:
- the scale factor for the s-coordinate
-
getTScaleFactor
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).- Returns:
- the scale factor for the t-coordinate
-
-