Base class representing a texture. More...
Public Member Functions | |
override Object | ShallowClone () |
Creates a copy of the texture. | |
TextureFilter | GetFilter () |
Obtains the texture filter. | |
void | SetFilter (TextureFilter filter) |
Sets the texture filter. | |
void | SetFilter (TextureFilterMode mode) |
Sets the texture filter. | |
void | SetFilter (TextureFilterMode mag, TextureFilterMode min, TextureFilterMode mip) |
Sets the texture filter. | |
TextureWrap | GetWrap () |
Obtains the texture wrap. | |
void | SetWrap (TextureWrap wrap) |
Sets the texture wrap. | |
void | SetWrap (TextureWrapMode mode) |
Sets the texture wrap. | |
void | SetWrap (TextureWrapMode s, TextureWrapMode t) |
Sets the texture wrap. | |
float | GetMaxAnisotropy () |
Obtains the maximum value of the anisotropic filter. | |
void | SetMaxAnisotropy (float anisotropy) |
Sets the maximum value of the anisotropic filter. |
Base class representing a texture.
TextureFilter GetFilter | ( | ) |
Obtains the texture filter.
float GetMaxAnisotropy | ( | ) |
Obtains the maximum value of the anisotropic filter.
TextureWrap GetWrap | ( | ) |
Obtains the texture wrap.
void SetFilter | ( | TextureFilterMode | mode | ) |
Sets the texture filter.
mode | Texture filter mode |
Sets the texture filter. If the device is not supported, note that the linear filter of the half float texture will not function.
void SetFilter | ( | TextureFilterMode | mag, |
TextureFilterMode | min, | ||
TextureFilterMode | mip | ||
) |
Sets the texture filter.
mag | Enlarged texture filter mode |
min | Reduced texture filter mode |
mip | Mipmap texture filter mode |
Sets the texture filter. If the device is not supported, note that the linear filter of the half float texture will not function.
void SetFilter | ( | TextureFilter | filter | ) |
Sets the texture filter.
filter | Structure representing the texture filter |
Sets the texture filter. If the device is not supported, note that the linear filter of the half float texture will not function.
void SetMaxAnisotropy | ( | float | anisotropy | ) |
Sets the maximum value of the anisotropic filter.
anisotropy | Maximum value of the anisotropic filter (from 1.0f) |
Sets the maximum value of the anisotropic filter. If the device is not supported, note that the anisotropic filter will not function.
void SetWrap | ( | TextureWrapMode | s, |
TextureWrapMode | t | ||
) |
Sets the texture wrap.
s | S coordinate texture wrap mode |
t | T coordinate texture wrap mode |
Sets the texture wrap. Note that textures that are not a power of 2 will always operate in clamp mode.
void SetWrap | ( | TextureWrapMode | mode | ) |
Sets the texture wrap.
mode | Texture wrap mode |
Sets the texture wrap. Note that textures that are not a power of 2 will always operate in clamp mode.
void SetWrap | ( | TextureWrap | wrap | ) |
Sets the texture wrap.
wrap | Structure representing the texture wrap |
Sets the texture wrap. Note that textures that are not a power of 2 will always operate in clamp mode.
override Object ShallowClone | ( | ) | [virtual] |
Creates a copy of the texture.
Creates a copy of the texture. The 2 textures will then share unmanaged resources. When Dispose() is called for all copies, the shared unmanaged resources will be freed.
Reimplemented from PixelBuffer.
Reimplemented in Texture2D, and TextureCube.