Class GraphicsUtil
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
public static class GraphicsUtil
- Inheritance
-
GraphicsUtil
- Inherited Members
Methods
CompressAstc(ContentProcessorContext, TextureContent, bool)
public static void CompressAstc(ContentProcessorContext context, TextureContent content, bool isSpriteFont)
Parameters
contextContentProcessorContextcontentTextureContentisSpriteFontbool
CompressAti(ContentProcessorContext, TextureContent, bool)
public static void CompressAti(ContentProcessorContext context, TextureContent content, bool isSpriteFont)
Parameters
contextContentProcessorContextcontentTextureContentisSpriteFontbool
CompressColor16Bit(ContentProcessorContext, TextureContent)
public static void CompressColor16Bit(ContentProcessorContext context, TextureContent content)
Parameters
contextContentProcessorContextcontentTextureContent
CompressDxt(ContentProcessorContext, TextureContent, bool)
public static void CompressDxt(ContentProcessorContext context, TextureContent content, bool isSpriteFont)
Parameters
contextContentProcessorContextcontentTextureContentisSpriteFontbool
CompressEtc(ContentProcessorContext, TextureContent, bool)
public static void CompressEtc(ContentProcessorContext context, TextureContent content, bool isSpriteFont)
Parameters
contextContentProcessorContextcontentTextureContentisSpriteFontbool
CompressEtc1(ContentProcessorContext, TextureContent, bool)
public static void CompressEtc1(ContentProcessorContext context, TextureContent content, bool isSpriteFont)
Parameters
contextContentProcessorContextcontentTextureContentisSpriteFontbool
CompressFontDXT3(TextureContent)
public static void CompressFontDXT3(TextureContent content)
Parameters
contentTextureContent
CompressPvrtc(ContentProcessorContext, TextureContent, bool)
public static void CompressPvrtc(ContentProcessorContext context, TextureContent content, bool isSpriteFont)
Parameters
contextContentProcessorContextcontentTextureContentisSpriteFontbool
GetNextPowerOfTwo(int)
Returns the next power of two. Returns same value if already is PoT.
public static int GetNextPowerOfTwo(int value)
Parameters
valueint
Returns
IsPowerOfTwo(int)
public static bool IsPowerOfTwo(int x)
Parameters
xint