Table of Contents

Class TextureContent

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly
MonoGame.Framework.Content.Pipeline.dll

Provides a base class for all texture objects.

public abstract class TextureContent : ContentItem
Inheritance
TextureContent
Derived
Inherited Members

Constructors

TextureContent(MipmapChainCollection)

Initializes a new instance of TextureContent with the specified face collection.

protected TextureContent(MipmapChainCollection faces)

Parameters

faces MipmapChainCollection

Mipmap chain containing the face collection.

Properties

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 MipmapChainCollection Faces { get; }

Property Value

MipmapChainCollection

Methods

ConvertBitmapType(Type)

Converts all bitmaps for this texture to a different format.

public void ConvertBitmapType(Type newBitmapType)

Parameters

newBitmapType Type

Type being converted to. The new type must be a subclass of BitmapContent, such as PixelBitmapContent or DxtBitmapContent.

GenerateMipmaps(bool)

Generates a full set of mipmaps for the texture.

public virtual void GenerateMipmaps(bool overwriteExistingMipmaps)

Parameters

overwriteExistingMipmaps bool

true if the existing mipmap set is replaced with the new set; false otherwise.

Validate(GraphicsProfile?)

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

public abstract void Validate(GraphicsProfile? targetProfile)

Parameters

targetProfile GraphicsProfile?

The profile identifier that defines the capabilities of the device.