0 Members and 1 Guest are viewing this topic.
#include<SFML/Graphics.hpp>int main(){ sf::VideoMode Vmode(640,480,32); sf::RenderWindow Window(Vmode,"Hello There"); sf::Text text("Something"); while(Window.IsOpened()) { sf::Event Event; while(Window.GetEvent(Event)) { if(Event.Type == sf::Event::Closed || Event.Key.Code == sf::Key::Escape) { Window.Close(); } } Window.Clear(); Window.Draw(text); Window.Display(); } return 0;}
In function 'int main()':line 6 error: 'Text' is not a member of 'sf'line 6 error: expected ';' before 'text'line 18 error: 'text' was not declared in this scope
Are you sure that you have SFML 2.0 headers?
Idk
QuoteIdkWhich version of SFML are you using? You must know that
The code in your first message is 2.0. You probably read the wrong documentation or tutorials.
Quote from: "Laurent"The code in your first message is 2.0. You probably read the wrong documentation or tutorials.Oh really wow so then how do you make text in sfml 2.0?