|
ContRap-Libraries
|
Class GLSphere represents spheres in the three-dimensional space. More...
#include <glsphere.h>
Public Member Functions | |
| GLSphere (const GLVertex &position, double r=0.01) | |
| Constructor from the coordinates of the sphere and radius. | |
| ~GLSphere () | |
| Destructor. | |
| void | make_display_list (int flags) const |
| Draws the sphere into an OpenGL display list. | |
| double & | get_radius () |
| Accessor to the radius of the sphere. | |
| GLPrimitiveType | get_type () const |
| Type of the primitive. | |
Class GLSphere represents spheres in the three-dimensional space.
| crp::GLSphere::GLSphere | ( | const GLVertex & | position, |
| double | r = 0.01 |
||
| ) |
Constructor from the coordinates of the sphere and radius.
Position of the primitive
| r | Radius of the sphere |
| crp::GLSphere::~GLSphere | ( | ) |
Destructor.
| double& crp::GLSphere::get_radius | ( | ) | [inline] |
Accessor to the radius of the sphere.
| GLPrimitiveType crp::GLSphere::get_type | ( | ) | const [inline, virtual] |
| void crp::GLSphere::make_display_list | ( | int | flags | ) | const [virtual] |
Draws the sphere into an OpenGL display list.
| flags | Style flags used to filter out drawing |
Implements crp::GLPrimitive.
1.7.3