Table of Contents

Class TextureExtensions

Namespace
MLEM.Extended.Graphics
Assembly
MLEM.Extended.dll

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

patch NinePatch

The 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

region TextureRegion

The 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

region Texture2DRegion

The nine patch to convert

Returns

TextureRegion

The converted nine patch