|
-
May 5th, 2013, 11:30 PM
#1
Pass a handle to a function
codeguru forum,
Visual C++ 2010
This is all very new to me.
I'm using SFML with Visual C++ and need to pass a handle to
a function. I've tried to find this on the web with no luck.
The handle happens to be a sprite defined as:
sf::Sprite Numbers(MyNumbers);
Now I want to pass "Numbers" to a function.
-
-
getFrame(Numbers);
-
-
???? getFrame(??????)
{
Numbers.SetSubRect(sf::IntRect(0,0,63,63));
return ????
}
How do I do this?
Thanks for any reply.
jerryd
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|