SFML.Graphics.Sprite.Sprite C# (CSharp) Method

Sprite() public method

Construct the sprite from a source texture
public Sprite ( Texture texture, IntRect rectangle ) : System
texture Texture Source texture to assign to the sprite
rectangle IntRect Sub-rectangle of the texture to assign to the sprite
return System
        public Sprite(Texture texture, IntRect rectangle) :
            base(sfSprite_create())
        {
            Texture = texture;
            TextureRect = rectangle;
        }

Same methods

Sprite::Sprite ( ) : System
Sprite::Sprite ( Sprite copy ) : System
Sprite::Sprite ( Texture texture ) : System