Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbekarlsson committed Dec 29, 2017
1 parent af9eb35 commit 51e5969
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libninage/src/utils/Model3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
Model3D::Model3D() {}

void Model3D::draw() {
std::vector<std::vector<float>>::iterator it;

glPushMatrix();

glColor3f(255, 255, 255);

glBegin(GL_POLYGON);
for (std::vector<std::vector<float>>::iterator it = this->vertices.begin(); it != this->vertices.end(); ++it) {
//for (std::vector<float>::iterator itt = (*it).begin(); itt != (*it).end(); ++itt) {
//
//}

for (it = this->vertices.begin(); it != this->vertices.end(); ++it) {
glVertex3f((*it)[0], (*it)[1], (*it)[2]);

}

glEnd();
glPopMatrix();
}

0 comments on commit 51e5969

Please sign in to comment.