Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ setTextureRect()

void Flint::Sprite::setTextureRect ( const IntRect & rect)

Set the source rectangle (sub-region) within the texture.

Parameters
rectInteger pixel rectangle in texture space.