C# Class Engine.Objects.TextureAtlas

Datei anzeigen Open project: Radnen/sphere-sfml Class Usage Examples

Public Methods

Method Description
GetImageAt ( uint index ) : Image
Refresh ( ) : void
SetImageAt ( uint index, Image img ) : void

This will clip the image, replacing the atlas graphic. In order to change the physical bounds, see update(image[]).

TextureAtlas ( TextureAtlas copy ) : System
TextureAtlas ( uint size ) : System
Update ( Image images, bool clear = false ) : void

Packs the images in the image list into a single texture.

Method Details

GetImageAt() public method

public GetImageAt ( uint index ) : Image
index uint
return Image

Refresh() public method

public Refresh ( ) : void
return void

SetImageAt() public method

This will clip the image, replacing the atlas graphic. In order to change the physical bounds, see update(image[]).
public SetImageAt ( uint index, Image img ) : void
index uint
img Image
return void

TextureAtlas() public method

public TextureAtlas ( TextureAtlas copy ) : System
copy TextureAtlas
return System

TextureAtlas() public method

public TextureAtlas ( uint size ) : System
size uint
return System

Update() public method

Packs the images in the image list into a single texture.
public Update ( Image images, bool clear = false ) : void
images Image
clear bool
return void