   Templated DirectX game class library
  I''m currently working on a DirectX game class library, and I was wondering if anybody thought it would be a good idea to use a template. That way, the user can use DirectX 8 or 9, etc. Thanks   /*I use DirectX 8.1 and C++ (Microsoft Visual C++ 6.0 Professional edition)*/ 
  directx 9 supports different functions with different names than directx 8 does, so you won''t be able to get a template that will support either, unfortunately.I would look into creating wrapper classes for each API you want to support.  I think the effect you are trying for can be better achieved through properties of inheritance than through templates.HTH ;  I know that DirectX 9 uses different functions, but since it is COM base, all of the basic functions are the same (this is what I read in a book anyway). So DirectX 8 and DirectX 9 are created in the same way. So the user would template the basic engine and inherit from it, including thier own functions. Thanks for the reply.   /*I use DirectX 8.1 and C++ (Microsoft Visual C++ 6.0 Professional edition)*/ 