SFML RenderWindow question.

I can't figure out how to draw stuff from seperate classes for example:
I declare the window in main() I make a class and header file named menu. I make the default font and text string in the menu.cpp. How do I draw the text from another class onto the window because I'm going to be making games and I don't understand this yet but will need too, thanks

-Bacon
Last edited on
You don't have any code, so I can't give you specific advice, but if you have something you can draw to and some text, you can just write something like:
1
2
sf::Text txt;
render_target.draw(txt);
Topic archived. No new replies allowed.