SHARE
TWEET

Untitled

a guest Aug 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main() {
  2.  
  3.  RenderWindow window(VideoMode(600, 600), "halp pls", Style::Close | Style::Titlebar);
  4.  Font font;
  5.  
  6.  font.loadFromFile("C:\Users\Darien Miller\Desktop\fonts\ARCADE_I.ttf");
  7.  Text t("Darien", font);
  8.  
  9.  while (window.isOpen()) {
  10.      Event e;
  11.      while (window.pollEvent(e)){
  12.          if (e.type == Event::Closed)
  13.              window.close();
  14.      }
  15.  
  16.      window.clear();
  17.      window.draw(t);//This is where the error occurred!
  18.      window.display();
  19.  }
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top