public void BeginDraw(IRenderTarget target, TextureSlice?viewport = null, // TODO Matrix4x4?transformMatrix = null, SamplerState samplerState = SamplerState.LinearClamp) { this.target = target.ToSFML(); this.transform = transformMatrix.HasValue ? transformMatrix.Value.ToSFML() : Transform.Identity; }