hello,
I have a performance problem with my program, i'm using a class that i use multiple (up to 2048) times. Graphics of the class are drawn in the class.
The graphics consists in a vertex array and some dynamic string text that are processed in the class. To use text, i load the font for each instance of the class, wich is not optimal. As loading 2048 times the same font is not a good idea.
What i want to do is to make the class use a font that is out of the class in order to load it only once. But, i really don't even know where to start. I tried to make the font a pointer, but could not make it work.
What can i do to load an external sf::font in a class ?
thanks by advance
RLF