Ask and you shall receive
This is where the texture is loaded, those are just strings, and this function executes `loadFromFile` on the texture and saves a reference to it in an hashtable.
assets.loadTexture(GM_GRID_MINI, GRID_MINI);
This is where the texture is set to a Sprite (this->grid is a sf::Sprite, and assets is the hashtable)
this->grid.setTexture(this->data->assets.getTexture(GM_GRID_MINI));
this->grid.setOrigin(halfWidth, halfHeight); // Half the height and width of the sprite
this->grid.setPosition(x, y); // This is simplified, it is not just x and y, but it works fine
And this is where it is displayed:
this->data->window.clear(//COLOR);
this->data->window.draw(this->grid);
this->data->window.display()
I don't know what am I doing wrong