Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Quadric.cpp

Go to the documentation of this file.
00001 #include "Quadric.h"
00002 
00003 Quadric::Quadric(float rad, Color new_color, int type)
00004 {
00005     quadObj = gluNewQuadric();
00006     radius = rad;
00007     stacks = slices = 20;
00008     q_color = new Color(new_color.color[0], new_color.color[1], new_color.color[2], new_color.color[3]);
00009 }
00010 
00011 void Quadric::Draw()
00012 {
00013     glMaterialfv(GL_FRONT, GL_DIFFUSE, q_color->color);
00014     gluSphere(quadObj, radius, slices, stacks);
00015 }

Generated on Thu Apr 21 18:06:30 2005 for Basic Rendering Engine by  doxygen 1.4.1