Umm nvm.. I have a problem with coding. So, so far ive been coding in one file, the main.cpp . But ive noticed that when i was programming a game, it got way too confusing for one file. So then i made a class named Player. So now i had Player.h and Player.cpp . There were so much problems that i encountered. I want to organize it is that i will have the functions of Player all in that class. So Move() for example. Display() to display the player. But in order to display the player, you need a renderwindow object . Now this is where i got errors. When i put that Display() took an arguement of sf::RenderWindow() (i did this arguement because in the main function i would pass my renderwindow object that id already made into the parameters) and therefor it would draw it. But in the header file of Player, i dont know how to define a function that takes that arguement. I tried putting this:
void Display(sf::RenderWindow(sf::VideoMode(int,int,int), string);
Then in player.cpp i did this:
void Player::Display(sf::RenderWindow(sf::VideoMode(int,int,int), string);
The reason i put int int int and string is because the videomode takes those arguements and the string is for the title. So i got errors. Basically what i need is a way to organize my code into different files. Thats the whole thing. I just gave the above because its the main problem im having is putting variables of sf into the files..Thanks in advance!