C# Class Engine.Objects.TextureAtlas

Afficher le fichier Open project: Radnen/sphere-sfml Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public GetImageAt ( uint index ) : Image
index uint
Résultat Image

Refresh() public méthode

public Refresh ( ) : void
Résultat void

SetImageAt() public méthode

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
Résultat void

TextureAtlas() public méthode

public TextureAtlas ( TextureAtlas copy ) : System
copy TextureAtlas
Résultat System

TextureAtlas() public méthode

public TextureAtlas ( uint size ) : System
size uint
Résultat System

Update() public méthode

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