3dpcp/.svn/pristine/b1/b1bc1502cbb4f13ec34ae92490e742f43a9e350d.svn-base

26 lines
421 B
Text
Raw Normal View History

2012-09-16 12:33:11 +00:00
/*
* 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;
}