Table of Contents

Class TextureProfile

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly
MonoGame.Framework.Content.Pipeline.dll
public abstract class TextureProfile
Inheritance
TextureProfile
Inherited Members

Methods

ConvertTexture(ContentProcessorContext, TextureContent, TextureProcessorOutputFormat, bool)

Performs conversion of the texture content to the correct format.

public void ConvertTexture(ContentProcessorContext context, TextureContent content, TextureProcessorOutputFormat format, bool isSpriteFont)

Parameters

context ContentProcessorContext

The processor context.

content TextureContent

The content to be compressed.

format TextureProcessorOutputFormat

The user requested format for compression.

isSpriteFont bool

If the texture has represents a sprite font, i.e. is greyscale and has sharp black/white contrast.

ForPlatform(TargetPlatform)

Find the profile for this target platform.

public static TextureProfile ForPlatform(TargetPlatform platform)

Parameters

platform TargetPlatform

The platform target for textures.

Returns

TextureProfile

PlatformCompressTexture(ContentProcessorContext, TextureContent, TextureProcessorOutputFormat, bool)

protected abstract void PlatformCompressTexture(ContentProcessorContext context, TextureContent content, TextureProcessorOutputFormat format, bool isSpriteFont)

Parameters

context ContentProcessorContext
content TextureContent
format TextureProcessorOutputFormat
isSpriteFont bool

Requirements(ContentProcessorContext, TextureProcessorOutputFormat, out bool, out bool)

Determines if the texture format will require power-of-two dimensions and/or equal width and height.

public abstract void Requirements(ContentProcessorContext context, TextureProcessorOutputFormat format, out bool requiresPowerOfTwo, out bool requiresSquare)

Parameters

context ContentProcessorContext

The processor context.

format TextureProcessorOutputFormat

The desired texture format.

requiresPowerOfTwo bool

True if the texture format requires power-of-two dimensions.

requiresSquare bool

True if the texture format requires equal width and height.

Supports(TargetPlatform)

Returns true if this profile supports texture processing for this platform.

public abstract bool Supports(TargetPlatform platform)

Parameters

platform TargetPlatform

Returns

bool