#include <Torus.h>
Inheritance diagram for Torus2:
Public Member Functions | |
Torus2 (double radius_t, double radius_p, int n_sides, int n_rings) | |
~Torus2 () | |
double | GetBoundingRadius () |
BoundingBox | GetBoundingBox () |
void | SetTexture (GLuint texture_id) |
Private Member Functions | |
Torus2 () | |
void | Construct () |
Private Attributes | |
double | r_t |
double | r_p |
int | n_sides |
int | n_rings |
float * | data |
GLuint * | indices |
A textured torus using vertex arrays.
Definition at line 72 of file Torus.h.
|
Constuctor: Brings the object into a consistent state.
|
|
Destructor. |
|
Hide the default constructor. |
|
Constructs the data for the torus (vertex data, index data and normals). |
|
Implementation of the GetBoundingBox routine. Reimplemented from VertexArrayObject. |
|
Implementation of the GetBoundingRadius routine. Reimplemented from VertexArrayObject. |
|
Associates a texture with this torus. |
|
Internal pointer to the vertex data. |
|
Internal pointer to the index data. |
|
Internally stores the number of rings that make up the torus. |
|
Internally stores the number of sides per ring. |
|
Internally stores the p parameter of the torus. |
|
Internally stores the t parameter of the torus. |