Capsule Primitive.
More...
#include <primitive.h>
|
|
| Capsule (double length, double radius) |
| | Specifies length and radius.
|
| |
|
| Capsule (const Vector3 &start, const Vector3 &end, double radius) |
| | Specifies start and end coordinates, as well as radius.
|
| |
| | Primitive () |
| | Default constructor. More...
|
| |
|
virtual void | draw () |
| | Draw primitive and its children.
|
| |
| | Object () |
| | Default constructor. More...
|
| |
| template<class T > |
| T * | attach (T *child) |
| | Add child to list of sub-objects. More...
|
| |
|
|
void | make (double length, double radius) |
| |
|
void | quad (const Vector3 &v1, double z1, const Vector3 &v2, double z2, const Vector3 &v3, double z3, const Vector3 &v4, double z4) |
| |
|
void | triangle (const Vector3 &v1, double z1, const Vector3 &v2, double z2, const Vector3 &v3, double z3) |
| |
|
void | vertex (const Vector3 &v, double z) |
| |
| double | align (const Vector3 &start, const Vector3 &end) |
| | Align primitive along axis. More...
|
| |
|
virtual void | normal (const Vector3 &v) |
| | Sets norm for subsequent vertices.
|
| |
|
virtual void | vertex (const Vector3 &v) |
| | Enters vertex into display list.
|
| |
| virtual void | quad (const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, const Vector3 &v4) |
| | Draws a four-sided polygon using two triangles. More...
|
| |
|
virtual void | triangle (const Vector3 &v1, const Vector3 &v2, const Vector3 &v3) |
| | Draws triangle.
|
| |
Capsule Primitive.
A capsule is a cylinder with rounded endcaps.
The documentation for this class was generated from the following file: