Aiv.Fast2D.Texture.SetRepeatX C# (CSharp) Method

SetRepeatX() public method

public SetRepeatX ( bool repeat = true ) : void
repeat bool
return void
        public void SetRepeatX(bool repeat = true)
        {
            this.Bind();
            GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureWrapS, repeat ? (int)TextureWrapMode.Repeat : (int)TextureWrapMode.ClampToEdge);
        }