16
Graphics / Passing an SFML handle to a function
« on: May 07, 2013, 10:25:00 pm »
SFML forum,
SFML 1.6 Visual C++ 2010
I have some working SFML programs and need to find out how
to pass a handle to a function.
How do I do this?
jerryd
SFML 1.6 Visual C++ 2010
I have some working SFML programs and need to find out how
to pass a handle to a function.
int main()
{
sf::RenderWindow Screen(sf::VideoMode(640, 480, 16), "SFML Window");
-
???? function(Screen);
-
return EXIT_SUCCESS;
} // end of main
???? function(sf::???)
{
-
want to do some "Screen" commands in this function
-
-
return ???
} // end function(sf:???)
{
sf::RenderWindow Screen(sf::VideoMode(640, 480, 16), "SFML Window");
-
???? function(Screen);
-
return EXIT_SUCCESS;
} // end of main
???? function(sf::???)
{
-
want to do some "Screen" commands in this function
-
-
return ???
} // end function(sf:???)
How do I do this?
jerryd