Texture Class Reference

Base class representing a texture. More...

Inheritance diagram for Texture:
PixelBuffer Texture2D TextureCube

List of all members.

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.

Detailed Description

Base class representing a texture.


Member Function Documentation

TextureFilter GetFilter ( )

Obtains the texture filter.

Returns:
Structure representing the texture filter
float GetMaxAnisotropy ( )

Obtains the maximum value of the anisotropic filter.

Returns:
Maximum value of the anisotropic filter (from 1.0f)
TextureWrap GetWrap ( )

Obtains the texture wrap.

Returns:
Structure representing the texture wrap
void SetFilter ( TextureFilterMode  mode)

Sets the texture filter.

Parameters:
modeTexture 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.

Parameters:
magEnlarged texture filter mode
minReduced texture filter mode
mipMipmap 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.

Parameters:
filterStructure 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.

Parameters:
anisotropyMaximum 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.

Parameters:
sS coordinate texture wrap mode
tT 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.

Parameters:
modeTexture 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.

Parameters:
wrapStructure 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.

Returns:
Clones 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.