add option to draw trajectories

This commit is contained in:
2021-01-03 19:55:04 +01:00
parent ec4017bb0f
commit 5326f294ce
9 changed files with 88 additions and 0 deletions

View File

@ -32,4 +32,5 @@ void OpenGLMesh::draw(QOpenGLExtraFunctions *f, const QMatrix4x4 &mat) const {
if (tex) tex->bind();
f->glDrawArrays(GL_TRIANGLES, 0, nverts);
if (tex) tex->release();
f->glBindVertexArray(0);
}