Table of Contents

Interface IRegionTextureAtlas

Namespace
BSGameLib.Game.Textures
Assembly
BSGameLib.Game.dll

A texture atlas whose items are named regions, added to it by name, rather than a grid.

public interface IRegionTextureAtlas : ITextureAtlas, ITexture
Inherited Members

Methods

AddRegion(string, int, int, int, int)

Adds a region named name at (x, y) that is width by height pixels, and returns it. If a region of that name exists, that region is returned and nothing is added.

TextureRegion AddRegion(string name, int x, int y, int width, int height)

Parameters

name string
x int
y int
width int
height int

Returns

TextureRegion

AddRegions(TextureRegion[])

Adds each of regionArray to the atlas.

void AddRegions(TextureRegion[] regionArray)

Parameters

regionArray TextureRegion[]