00001 #ifndef COMPOSED_OBJECT_ 00002 #define COMPOSED_OBJECT_ 00003 00004 #include <stdio.h> 00005 #include <windows.h> 00006 #include <GL/gl.h> 00007 #include <GL/glu.h> 00008 #include <GL/glut.h> 00009 00010 #include "RawObject.h" 00011 00018 class ComposedObject : public RawObject 00019 { 00020 public: 00024 ComposedObject (); 00025 00029 ~ComposedObject (); 00030 00036 void AddObject (RawObject * object); 00037 00041 void Draw (); 00042 00043 private: 00044 00048 typedef struct ComponentElem 00049 { 00050 ComponentElem * next; 00051 RawObject * object; 00052 }Components; 00053 00055 Components * first_component; 00056 }; 00057 00058 #endif