class SFML::Texture

A 2D image stored on the GPU. Used by Sprite (and shapes) to draw textured geometry. Build one with .load:

tex = SFML::Texture.load(“assets/hero.png”) tex = SFML::Texture.load(“assets/tile.png”, smooth: true, repeated: true)