#include "Lines.h" #include #include using namespace std; void Lines::SetNumber(int count) { num = count; if (num < 3 or num > 300000) { num = 300; } return; } void Lines::Init() { int i; Vertex v; float theta; float dTheta; dTheta = 2*M_PI / (num); // initial point is the origin. v.position[0] = 0; v.position[1] = 0; v.color[0] = 0; v.color[0] = 0; v.color[0] = 0; points.push_back(v); theta = 0; for(i=0;i