Class TextureExtensions
A set of extensions for converting texture-related types between MLEM and MonoGame.Extended.
public static class TextureExtensions
- Inheritance
-
TextureExtensions
- Inherited Members
Methods
ToExtended(NinePatch)
Converts a MLEM NinePatch to a MonoGame.Extended MonoGame.Extended.Graphics.NinePatch.
public static NinePatch ToExtended(this NinePatch patch)
Parameters
patchNinePatchThe nine patch to convert
Returns
- NinePatch
The converted nine patch
ToExtended(TextureRegion)
Converts a MLEM TextureRegion to a MonoGame.Extended MonoGame.Extended.Graphics.Texture2DRegion.
public static Texture2DRegion ToExtended(this TextureRegion region)
Parameters
regionTextureRegionThe nine patch to convert
Returns
- Texture2DRegion
The converted nine patch
ToMlem(Texture2DRegion)
Converts a MonoGame.Extended MonoGame.Extended.Graphics.Texture2DRegion to a MLEM TextureRegion.
public static TextureRegion ToMlem(this Texture2DRegion region)
Parameters
regionTexture2DRegionThe nine patch to convert
Returns
- TextureRegion
The converted nine patch