Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.23 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Mouse position changes size of a drawn cube
  2. if (Event.Type = sf::Event::Resized)
  3.     glViewport(0,0,Event.Size.Width,Event.Size.Height);
  4.        
  5. if (Event.Type == sf::Event::Resized)
  6.     glViewport(0,0,Event.Size.Width,Event.Size.Height);