proj home

Files   Classes   Functions   Hierarchy  

gobjgluSphere Class Reference

Draw a sphere. More...

#include <gobj.h>

Inheritance diagram for gobjgluSphere:
Collaboration diagram for gobjgluSphere:

List of all members.

Public Member Functions

 gobjgluSphere (GLUquadricObj *&qobj_, GLdouble radius_, GLint slices_, GLint stacks_)
void draw ()
 Draw the object.

Public Attributes

GLUquadricObj *& qobj
GLdouble radius
GLint slices
GLint stacks


Detailed Description

Draw a sphere.

Example
From http://in4k.untergrund.net/index.php?title=Mega_Small_(Almost_Free)_Geometry
gluSphere (q, 0.8, 20, 20);    // a sphere
gluSphere (q, 0.8, 20, 20);    // a smartie ...when scaled of course
gluSphere (q, 0.8, 20, 20);    // an ellipsoid...same here, fix later
gluSphere (q, 0.8, 3, 20);     // a seed like shape?
gluSphere (q, 0.8, 4, 20);     // an ikea paper lamp?
gluSphere (q, 0.8, 4, 2);      // diamond
gluSphere (q, 0.8, 3, 3);      // triangular crystal
gluSphere (q, 0.8, 6, 3);      // quartz crystal

Definition at line 1327 of file gobj.h.


Constructor & Destructor Documentation

gobjgluSphere::gobjgluSphere ( GLUquadricObj *&  qobj_,
GLdouble  radius_,
GLint  slices_,
GLint  stacks_ 
) [inline]

Definition at line 1340 of file gobj.h.

01345     : qobj(qobj_), radius(radius_), slices(slices_), 
01346     stacks(stacks_) {}


Member Function Documentation

void gobjgluSphere::draw (  )  [inline, virtual]

Draw the object.

Implements gobj.

Definition at line 1348 of file gobj.h.

References GOBJDEBUGCODE, qobj, radius, slices, and stacks.

01349     { GOBJDEBUGCODE gluSphere(qobj,radius,slices,stacks); }


Member Data Documentation

GLUquadricObj* & gobjgluSphere::qobj

Definition at line 1331 of file gobj.h.

Referenced by draw().

Definition at line 1333 of file gobj.h.

Referenced by draw().

Definition at line 1335 of file gobj.h.

Referenced by draw().

Definition at line 1337 of file gobj.h.

Referenced by draw().


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:50:00 2011 for Chelton Evans Source by  doxygen 1.5.8