Hi,
I have a small question about design, implemented in C++ of course ;)
I have a set of objects A, B and C, which are pure C++ code (no GUI,
I/O, ...). I need to draw them on screen (using OpenGL), but i don't
want to put my OpenGL methods in my class A, B and C.
How can i do that ? Using an aggregate object member of my class, using
derivation, ... ?
Thanks.
I have a small question about design, implemented in C++ of course ;)
I have a set of objects A, B and C, which are pure C++ code (no GUI,
I/O, ...). I need to draw them on screen (using OpenGL), but i don't
want to put my OpenGL methods in my class A, B and C.
How can i do that ? Using an aggregate object member of my class, using
derivation, ... ?
Thanks.
Comment