I am programming Pac-man in C++ SDL and I want to show the score on the screen.
My score is a class:
entite.score += 10;
entite.scoreTotal += 10;
and then I call them to the main.
To write a texte I use this function :
afficherTexte(screenSurface, "Score", 255, 255, 255, "./Polices/crackman.ttf", 30, 30, 540);
but I don't know how to show on screen variables of the type class.