Advertisement
Guest User

Untitled

a guest
Jun 1st, 2013
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //Global.h
  2.  
  3. //globals container
  4.  
  5. #ifndef GLOBAL_H
  6. #define GLOBAL_H
  7.  
  8. #include <SFML/Graphics.hpp>
  9. #include <random>
  10.  
  11. struct Global
  12. {
  13. static sf::RenderWindow window;
  14.  
  15. static int blocksWide;
  16. static int blocksTall;
  17. static int blockSize;
  18.  
  19. static const int desiredBlocksWide;
  20. static const int desiredBlocksTall;
  21. };
  22.  
  23. #endif
  24.  
  25. //Global.cpp
  26.  
  27. #include "Global.h"
  28.  
  29. sf::RenderWindow Global::window; //throws here
  30.  
  31. int Global::blocksWide = 0;
  32. int Global::blocksTall = 0;
  33.  
  34. int Global::blockSize;
  35.  
  36. const int Global::desiredBlocksWide = 20;
  37. const int Global::desiredBlocksTall = 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement