I've worked on this for the past few days and it works perfectly, but I want to be sure that it isn't overcomplicated or a bad idea.
I will put here the header and source files.
The logic is that the sprites are put into a multimap, sorted by texture, and then rendered all at once to minimize openGL calls.
Any criticism or different approach is welcome!