RenderContextBase.CreateTexture2D (Image, textureFilteringFunctionType, textureFilteringFunctionType, Boolean, Boolean, Boolean, Boolean) Method
Public MustOverride Function CreateTexture2D( _
ByVal image As Image, _
Optional ByVal minFunc As textureFilteringFunctionType = textureFilteringFunctionType.Linear, _
Optional ByVal magFunc As textureFilteringFunctionType = textureFilteringFunctionType.Linear, _
Optional ByVal anisotropicFiltering As Boolean = true, _
Optional ByVal enlargeIfSizeNotSupported As Boolean = false, _
Optional ByVal repeatX As Boolean = true, _
Optional ByVal repeatY As Boolean = true _
) As TextureBase
This language is not supported or no code example is available.
public abstract TextureBase CreateTexture2D(
Image image,
textureFilteringFunctionType minFunc = textureFilteringFunctionType.Linear,
textureFilteringFunctionType magFunc = textureFilteringFunctionType.Linear,
bool anisotropicFiltering = true,
bool enlargeIfSizeNotSupported = false,
bool repeatX = true,
bool repeatY = true
)
This language is not supported or no code example is available.
Parameters
- image
- Image
The image
- minFunc
- textureFilteringFunctionType
Minification function
- magFunc
- textureFilteringFunctionType
Magnification function
- anisotropicFiltering
- bool
If true, enables anisotropic filtering for mipmapping
- enlargeIfSizeNotSupported
- bool
If true, the image is put in a bigger image (with some empty border, keeping the original size of image) when the image is not power of two and the hardware does not support it. Else it is resized to a smaller power of two size.
- repeatX
- bool
If true, the texture is repeated in the X direction
- repeatY
- bool
If true, the texture is repeated in the Y direction