Alright, so I know that this may seem a beginner's problem to the most of you, and I am indeed a beginner when it comes to sfml and C++ as a whole; but with that being said, I didn't manage to find a solution to this problem anywhere else.
It's a pretty simple problem:
Let's suppose I have my main(), where I render some window named "window".
Now I create a class (I use visual studio), in which I want to have one of the member functions draw something in the window. If I add the line "window.draw(sprite);" to the function in the class, this obviously generates the error "Identifier 'window' not declared".
So I ask: How am I supposed to have my member function draw something in the main()'s "window"?
I thank you all in advance.