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