G
Gernot Frisch
Hi,
I have a class that has a funtion "DrawMe".
Now, I want to make this function work on 2 different argument types
that provide all the same methods:
class ASCIIDraw
{
MoveTo();
DrawTo();
};
class GDIDraw
{
MoveTo();
DrawTo();
};
class MyDraw
{
template<class T>DoDraw(T& DrawObject);
};
(How) can I do this?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
I have a class that has a funtion "DrawMe".
Now, I want to make this function work on 2 different argument types
that provide all the same methods:
class ASCIIDraw
{
MoveTo();
DrawTo();
};
class GDIDraw
{
MoveTo();
DrawTo();
};
class MyDraw
{
template<class T>DoDraw(T& DrawObject);
};
(How) can I do this?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com