3dpcp/.svn/pristine/b1/b1bc1502cbb4f13ec34ae92490e742f43a9e350d.svn-base
2012-09-16 14:33:11 +02:00

25 lines
421 B
Text

/*
* vertexArray implementation
*
* Copyright (C) Jan Elseberg
*
* Released under the GPL version 3.
*
*/
#include "show/vertexarray.h"
GLuint vertexArray::nameCounter = 0;
vertexArray::vertexArray(int _numPointsToRender) :
numPointsToRender(_numPointsToRender)
{
array = new GLfloat[numPointsToRender * 3];
nameCounter++;
name = nameCounter;
}
vertexArray::~vertexArray()
{
delete [] array;
}