Class TextureProfile
- 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
ContentProcessorContextThe processor context.
content
TextureContentThe content to be compressed.
format
TextureProcessorOutputFormatThe user requested format for compression.
isSpriteFont
boolIf 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
TargetPlatformThe platform target for textures.
Returns
PlatformCompressTexture(ContentProcessorContext, TextureContent, TextureProcessorOutputFormat, bool)
protected abstract void PlatformCompressTexture(ContentProcessorContext context, TextureContent content, TextureProcessorOutputFormat format, bool isSpriteFont)
Parameters
context
ContentProcessorContextcontent
TextureContentformat
TextureProcessorOutputFormatisSpriteFont
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
ContentProcessorContextThe processor context.
format
TextureProcessorOutputFormatThe desired texture format.
requiresPowerOfTwo
boolTrue if the texture format requires power-of-two dimensions.
requiresSquare
boolTrue 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