#define USE_FORGE_CPU_COPY_HELPERS
#include <complex>
#include <cmath>
#include <vector>
#include <iostream>
const unsigned DIMX = 640;
const unsigned DIMY = 480;
const float PI = 3.14159265359;
const float MINIMUM = 1.0f;
const float MAXIMUM = 20.f;
const float STEP    = 2.0f;
const float NELEMS  = (MAXIMUM-MINIMUM+1)/STEP;
const unsigned DPOINTS[] = {5, 5, 5, 15, 15, 5, 15, 15};
using namespace std;
void generatePoints(std::vector<float> &points, std::vector<float> &dirs)
{
    points.clear();
    for (int j=0; j<NELEMS; ++j) {
        float y = MINIMUM + j*STEP;
        for (int i=0; i<NELEMS; ++i) {
            float x = MINIMUM + i*STEP;
            points.push_back(x);
            points.push_back(y);
            dirs.push_back(sin(2*PI*x/10.f));
            dirs.push_back(sin(2*PI*y/10.f));
        }
    }
}
int main(void)
{
    
    chart.
setAxesLimits(MINIMUM-1.0f, MAXIMUM, MINIMUM-1.0f, MAXIMUM);
    divPoints.
setColor(0.9f, 0.9f, 0.0f, 1.f);
    std::vector<float> points;
    std::vector<float> dirs;
    generatePoints(points, dirs);
    do {
    
    releaseGLBuffer(handles[0]);
    releaseGLBuffer(handles[1]);
    releaseGLBuffer(handles[2]);
    return 0;
}