Jump to content
  • Advertisement
Sign in to follow this  
Marko T

Passing custom objects to functions

This topic is 1969 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I made a class for pixel perfect collision, but for it to work, i must send the entire object to it. How can i pass an entire object to a function. whati s the general name for objects, like integrals have int and so on. Or how can i send the specific part of the spritesheet to the function. Im using imageicon to draw the images on the board , adn all the movement and stuff is done with image icons.

So how to i send objects ingonito or how i send parts of imageicon?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!