Commit 88c169ea by Philipp Adolf

Remove unused method addRegular

parent 8298651c
......@@ -22,21 +22,6 @@ Mesh::SubdivEntry::~SubdivEntry()
*/
}
void Mesh::SubdivEntry::addRegular(QVector<unsigned int>& Indices){
indicesRegular = Indices;
indices.clear();
for (int var = 0; var < 12; ++var) {
qDebug()<<indicesRegular[var];
}
f->glGenBuffers(1, &IB_Regular);
f->glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, IB_Regular);
f->glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(unsigned int) * indicesRegular.size(), &indicesRegular[0], GL_STATIC_DRAW);
}
void Mesh::SubdivEntry::updateIndices() {
f->glDeleteBuffers(1, &IB_handle);
f->glGenBuffers(1, &IB_handle);
......
......@@ -73,7 +73,6 @@ public:
QVector<unsigned int>& Indices_irregular);
void init(QOpenGLFunctions_4_3_Core *f,GLuint VB_handle,QVector<Vertex>& Vertices,
QVector<unsigned int>& Indices_irregular, QVector<unsigned int>& patches);
void addRegular(QVector<unsigned int>& Indices);
void updateIndices();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment