21 #ifndef WIREFRAME_TORUS_H
22 #define WIREFRAME_TORUS_H
61 void draw(
float* rotationVector);
static const unsigned int indicesCount
static const unsigned int pointsPerCircleCount
Number of points in one circle.
bool initializeVertexAttribs(void)
Initialize vertex attribute arrays and buffer objects coresponding to them. Make sure that programID ...
float torusRadius
Distance between the center of torus and the center of its tube.
void initializeBufferForIndices(void)
Determine indices needed for a single glDrawElements() call in GL_LINES mode.
Class derived from the Torus abstract class. It manages drawing of a rotating wireframed unicolor tor...
static const unsigned int circlesCount
Number of circles in torus model.
void draw(float *rotationVector)
Draw the torus model.
float circleRadius
Radius of circles that model the tube.
Abstract class that draws torus on the screen. It stores generic data describing the drawn torus: ...
WireframeTorus(float torusRadius, float circleRadius)
Instantiates a representation of a solid torus, using user-provided radius and tube radius...
typedef GLuint(GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC)(GLuint count