Commit e6e3b59f by Kai Westerkamp

so nen zwischending halt

parent 5a700c96
......@@ -106,6 +106,8 @@ void Subdivision::subdivide(Mesh *mesh, int level) {
QVector<unsigned int> irregular_ib;
trianglesToIB(irregular, irregular_ib);
updateIrregularForDraw(irregular, irregular_ib, result);
QVector<unsigned int> patches;
getPatchIndexBuffer(regular, neighbors, patches);
qCDebug(log_subdiv) << "patches" << patches.length();
......@@ -892,3 +894,14 @@ void Subdivision::runEdgeShader(GLuint size, GLuint vb_handle, GLuint edge_indic
edgeShader->release();
}
void Subdivision::updateIrregularForDraw(const QVector<Triangle> &triangles,const QVector<unsigned int> &ib, Result result){
result.vertex_buffer_irregular_draw.resize(result.vertex_buffer);
for (int i = 0; i < ib.length(); ++i) {
}
}
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