// CBall.h // // Author: Josh Jenkins // Inertia Productions 2003 // http://homepages.ihug.com.au/~grom #include #include // Header File For The OpenGL32 Library #include // Glu32 header for quadrics class CBall { public: float x, y, z; // Top-left position on screen float xi, yi, zi; // Movement vector float radius; float color[3]; CBall(); // constructor ~CBall(); // destructor Draw(); // Draw to opengl screen Reset(); // Reset ball position and vector Update(); // Update ball's position with vector private: GLUquadricObj *sphere; // Storage for quadratic object };