Last change
on this file since 2843 was
2837,
checked in by ldelgass, 12 years ago
|
More misc. cleanups
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Rev | Line | |
---|
[2798] | 1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
[953] | 2 | /* |
---|
| 3 | * ---------------------------------------------------------------------- |
---|
| 4 | * Sphere.h : Sphere class |
---|
| 5 | * |
---|
| 6 | * ====================================================================== |
---|
| 7 | * AUTHOR: Wei Qiao <qiaow@purdue.edu> |
---|
| 8 | * Purdue Rendering and Perceptualization Lab (PURPL) |
---|
| 9 | * |
---|
| 10 | * Copyright (c) 2004-2006 Purdue Research Foundation |
---|
| 11 | * |
---|
| 12 | * See the file "license.terms" for information on usage and |
---|
| 13 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
| 14 | * ====================================================================== |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | #ifndef _SPHERE_H_ |
---|
| 18 | #define _SPHERE_H_ |
---|
| 19 | |
---|
[2822] | 20 | #include <GL/glew.h> |
---|
| 21 | #include <GL/glu.h> |
---|
| 22 | |
---|
[1984] | 23 | #include "Trace.h" |
---|
[953] | 24 | |
---|
| 25 | #include "Color.h" |
---|
| 26 | #include "Renderable.h" |
---|
| 27 | |
---|
[2822] | 28 | class Sphere : public Renderable |
---|
| 29 | { |
---|
[953] | 30 | public: |
---|
| 31 | Sphere(float x, float y, float z, float r, float g, float b, float _radius, |
---|
| 32 | int _stack, int _slice); |
---|
[2822] | 33 | |
---|
| 34 | virtual ~Sphere(); |
---|
| 35 | |
---|
[953] | 36 | void set_vertical_res(int _stack); |
---|
| 37 | void set_horizontal_res(int _slice); |
---|
| 38 | |
---|
| 39 | //display the sphere |
---|
| 40 | void draw(GLUquadric* q); |
---|
| 41 | void render(); |
---|
[2837] | 42 | |
---|
| 43 | float radius; |
---|
| 44 | Color color; |
---|
| 45 | int stack; |
---|
| 46 | int slice; |
---|
[953] | 47 | }; |
---|
| 48 | |
---|
| 49 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.