Jump to content

  • Log In with Google      Sign In   
  • Create Account


How do you create a DirectX7 wrapper in C++


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Posted 06 October 1999 - 10:00 AM

Can it be done without writing a function for every DirectX function, or can you use some COM trick to make it easier?

Sponsor:

#2 mason   Members   -  Reputation: 128

Posted 06 October 1999 - 10:00 AM

Yep, wrap every function.

You can't "derive" anything from COM, regardless of language, because COM has no support for virtual functions. To get true C++ style objects, make a new class, wrap all the DirectX calls into similarly named functions, then derive / make virtual whatever you want.

Or, be lazy and just expose the interface directly in your base class.

Mason McCuskey
Spin Studios
www.spin-studios.com





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS