Table of Contents

Class DataTextureAtlasExtensions

Namespace
MLEM.Data
Assembly
MLEM.Data.dll

A set of extension methods for dealing with DataTextureAtlas.

public static class DataTextureAtlasExtensions
Inheritance
DataTextureAtlasExtensions
Inherited Members

Methods

LoadTextureAtlas(ContentManager, string, string, bool)

Loads a DataTextureAtlas from the given texture and texture data file. For more information on data texture atlases, see the DataTextureAtlas type documentation.

public static DataTextureAtlas LoadTextureAtlas(this ContentManager content, string texturePath, string infoPath = null, bool pivotRelative = false)

Parameters

content ContentManager

The content manager to use for loading

texturePath string

The path to the texture file

infoPath string

The path, including extension, to the atlas info file, or null if "texturePath.atlas" should be used

pivotRelative bool

If this value is true, then the pivot points passed in the info file will be relative to the coordinates of the texture region, not relative to the entire texture's origin.

Returns

DataTextureAtlas

A new data texture atlas with the given settings