Table of Contents

Class GraphicsUtil

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Graphics
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[]

CompressAti(ContentProcessorContext, TextureContent, bool)

public static void CompressAti(ContentProcessorContext context, TextureContent content, bool isSpriteFont)

Parameters

context ContentProcessorContext
content TextureContent
isSpriteFont bool

CompressColor16Bit(ContentProcessorContext, TextureContent)

public static void CompressColor16Bit(ContentProcessorContext context, TextureContent content)

Parameters

context ContentProcessorContext
content TextureContent

CompressDxt(ContentProcessorContext, TextureContent, bool)

public static void CompressDxt(ContentProcessorContext context, TextureContent content, bool isSpriteFont)

Parameters

context ContentProcessorContext
content TextureContent
isSpriteFont bool

CompressEtc1(ContentProcessorContext, TextureContent, bool)

public static void CompressEtc1(ContentProcessorContext context, TextureContent content, bool isSpriteFont)

Parameters

context ContentProcessorContext
content TextureContent
isSpriteFont 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 ContentProcessorContext
content TextureContent
isSpriteFont 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

int

IsPowerOfTwo(int)

public static bool IsPowerOfTwo(int x)

Parameters

x int

Returns

bool