Jump to content
  • Advertisement
Sign in to follow this  

Managed Wrappers and Inheritence

This topic is 4288 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

Hi, I have another managed wrapper question (promise I'll go away soon! :D). I have in my unmanaged classes Node and Light classes. Light inherits from Node. If I create a MLight wrapper class (managed light) it works fine, but there are some unmanaged functions in other classes where I need to be able to pass any type of node... these functions too need wrappers. If I create an MNode class then I can have my functions look good to take any type of node (MNode), but that means I have to inherit MLight from MNode. Doing so means MNode will create a node instance that is not necessary since creating MLight create the unmanaged Light class that already contains all the inherited node information. I guess my question then is, what is the best way to handle inheritence when writing wrappers? I hope my explanation above made some kind of sense. Thanks! Rael

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!