Class DataTextureAtlasExtensions
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
contentContentManagerThe content manager to use for loading
texturePathstringThe path to the texture file
infoPathstringThe path, including extension, to the atlas info file, or null if "
texturePath.atlas" should be usedpivotRelativeboolIf 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