#include "Spiral.h" #include #include "vgl.h" #include using namespace std; Spiral::Spiral() { int i; float r = 0; float angle = 0; theta = 0; display = true; for(i=0;i 360) { theta = 0; } } void Spiral::ToggleDisplay() { display = !display; return; } void Spiral::Display() { if (display) { glUniform1f(thetaLocation, theta*M_PI/180.0); glBindVertexArray(VAONumber); glDrawArrays(GL_LINE_STRIP, 0, MAX_POINTS); glBindVertexArray(0); } return; }