2
« on: March 10, 2013, 08:54:05 pm »
Hello, I am new to C++ and needless to say, SFML. I have a really basic question regarding the object initialization. While I have no experience with C++, I have been developing with PHP for 7+ years so I do have a understanding of programming fundamentals.
As an example:
sf::VideoMode videoMode(320,240);
sf::Window window(videoMode,"Basic Display Window");
Are these statements initializing the variables and then immediately running the constructor method with the given parameters? It just looks a little foreign to me and I would expect something more similar to.
sf::VideoMode viewMode = new sf::VideoMode(320,240);
sf::Window window = new sf:Window(videoMode,"Basic Display Window");
Any articles that you might be able to link to as well would be greatly appreciated.