About shapes and texture

https://www.sfml-dev.org/tutorials/2.5/graphics-shape.php Can SDL achieve the effect of the third picture in the URL link,shapes can be textured.It still uses the rect function to display, but the image displayed is circular or other shape.

No, you can pre-render shapes though, but real time will be very costly.

I wonder if a custom blendmode could be used here, just make a simple alpha mask in your desired shape, and blend them so that it uses your texture for color and your mask for alpha.

At that point, though, you wouldn’t be gaining much advantage over just rendering the texture in the desired shape in an image editor anyway.