#include "Dots.h" #include #include #include "vgl.h" #include #include #include #include using namespace std; Dots::Dots() { int i; display = true; return; } Dots::~Dots() { glDeleteBuffers(1, &bufferID); glDeleteVertexArrays(1, &VAONumber); return; } void Dots::CreatePoints(int num) { int i; Vertex v; if (num < 3 or num > 300000) { num = 300; } for(i=0;i 1) { dir = false; } if (timeStep < 0) { dir = true; } if (display) { glEnable(GL_PROGRAM_POINT_SIZE); glUniform1f(tsLoc, timeStep); glBindVertexArray(VAONumber); glDrawArrays(GL_POINTS, 0, points.size()); glBindVertexArray(0); glDisable(GL_PROGRAM_POINT_SIZE); } return; }