You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
421 B
C++
26 lines
421 B
C++
/*
|
|
* 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;
|
|
}
|