TextureContentΒΆ

class TextureContent : ContentItem

Provides a base class for all texture objects.

readonly MipmapChainCollection Faces

Collection of image faces that hold a single mipmap chain for a regular 2D texture, six chains for a cube map, or an arbitrary number for volume and array textures.

public void ConvertBitmapType(System.Type newBitmapType)

Converts all bitmaps for this texture to a different format.

Parameters:
  • newBitmapType (System.Type) – Type being converted to. The new type must be a subclass of BitmapContent, such as PixelBitmapContent or DxtBitmapContent.
public void GenerateMipmaps(bool overwriteExistingMipmaps)

Generates a full set of mipmaps for the texture.

Parameters:
  • overwriteExistingMipmaps (bool) – true if the existing mipmap set is replaced with the new set; false otherwise.
public abstract void Validate(System.Nullable<GraphicsProfile> targetProfile)

Verifies that all contents of this texture are present, correct and match the capabilities of the device.

Parameters:
  • targetProfile (System.Nullable<GraphicsProfile>) – The profile identifier that defines the capabilities of the device.