SFML.Net
Sprite Constructor (Texture, IntRect) |
Construct the sprite from a source texture
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

public Sprite( Texture texture, IntRect rectangle )
Public Sub New ( texture As Texture, rectangle As IntRect )
public: Sprite( Texture^ texture, IntRect rectangle )
new : texture : Texture * rectangle : IntRect -> Sprite
Parameters
- texture
- Type: SFML.GraphicsTexture
Source texture to assign to the sprite - rectangle
- Type: SFML.GraphicsIntRect
Sub-rectangle of the texture to assign to the sprite
