+ glMatrixMode(GL_PROJECTION);
+ glPopMatrix();
+ glMatrixMode(GL_MODELVIEW);
+ glPopMatrix();
+
+ /*
+ glLoadIdentity();
+
+ someChar->getTilemap().bind();
+ glColor3f(1.0, 1.0, 1.0);
+
+ Mf::Tilemap::Index heroFrame = someChar->getAnimation().getFrame();
+
+ Mf::Scalar coords[8];
+ someChar->getTilemap().getTileCoords(heroFrame, coords);
+
+ glBegin(GL_QUADS);
+ glTexCoord2f(coords[0], coords[1]);
+ glVertex3f(-1.0, 0.0, 0.0);
+ glTexCoord2f(coords[2], coords[3]);
+ glVertex3f(0.0, 0.0, 0.0);
+ glTexCoord2f(coords[4], coords[5]);
+ glVertex3f(0.0, 1.0, 0.0);
+ glTexCoord2f(coords[6], coords[7]);
+ glVertex3f(-1.0, 1.0, 0.0);
+ glEnd();
+
+
+ someChar->getTilemap().getTileCoords(heroFrame, coords,
+ Mf::Tilemap::REVERSE);
+
+ glBegin(GL_QUADS);
+ glTexCoord2f(coords[0], coords[1]);
+ glVertex3f(0.0, 0.0, 0.0);
+ glTexCoord2f(coords[2], coords[3]);
+ glVertex3f(1.0, 0.0, 0.0);
+ glTexCoord2f(coords[4], coords[5]);
+ glVertex3f(1.0, 1.0, 0.0);
+ glTexCoord2f(coords[6], coords[7]);
+ glVertex3f(0.0, 1.0, 0.0);
+ glEnd();