FerretEngine/src/Graphics/SpriteSheet.cs
/// <summary>
/// Returns the sprite in the [index] position in the
/// SpriteSheet.
/// </summary>
/// <returns></returns>
Returns the sprite in the [index] position in the
SpriteSheet.
Returns the sprite in the [ index ] position in the SpriteSheet .
public Sprite GetSprite(int index)
        {
            int sprX = index % _spritesWide;
            int sprY = index / _spritesWide;
            return GetSprite(sprX, sprY);
        }
public Sprite GetSprite ( int index ) { int sprX = index % _spritesWide ; int sprY = index / _spritesWide ; return GetSprite ( sprX , sprY ) ; }
Returns the sprite in the [index] position in the
SpriteSheet.
Returns the sprite in the [ index ] position in the SpriteSheet .
None
index
int