1
General / Getting an object from another file
« on: April 14, 2011, 03:08:45 am »
I haven't known C++ for long. I am learning by making a game with SFML.
I tried making a pointer of the instance of the sf::RenderWindow class. I couldn't quite get it to work. I also tried declaring the instance inside of my Window class, but I couldn't access it in my Input.cpp, so I just put it inside of an unnamed namespace (learned that from someone else's code).
I tried making a pointer of the instance of the sf::RenderWindow class. I couldn't quite get it to work. I also tried declaring the instance inside of my Window class, but I couldn't access it in my Input.cpp, so I just put it inside of an unnamed namespace (learned that from someone else's code).