-
- /*
- 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();
-
- glColor4f(1.0,0.0,0.0,0.5);
-
- glBindTexture(GL_TEXTURE_2D, 0);
- glColor4v(c1.data());
-
- glRectd(-cosstate, -sinstate, sinstate, cosstate);
- glRectf(0.0f, 0.0f, sinstate, cosstate);
-
- font->bind();
-
- font->getTileCoords('c', 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();
-
- font->getTileCoords('h', coords);
-
- 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();
-
- font->getTileCoords('a', coords);
-
- glBegin(GL_QUADS);
- glTexCoord2f(coords[0], coords[1]);
- glVertex3f(-1.0, -1.0, 0.0);
- glTexCoord2f(coords[2], coords[3]);
- glVertex3f(0.0, -1.0, 0.0);
- glTexCoord2f(coords[4], coords[5]);
- glVertex3f(0.0, 0.0, 0.0);
- glTexCoord2f(coords[6], coords[7]);
- glVertex3f(-1.0, 0.0, 0.0);
- glEnd();
-
- font->getTileCoords('z', coords);
-
- glBegin(GL_QUADS);
- glTexCoord2f(coords[0], coords[1]);
- glVertex3(0.0, -1.0, 0.0);
- glTexCoord2f(coords[2], coords[3]);
- glVertex3(1.0, -1.0, 0.0);
- glTexCoord2f(coords[4], coords[5]);
- glVertex3(1.0, 0.0, 0.0);
- glTexCoord2f(coords[6], coords[7]);
- glVertex3(0.0, 0.0, 0.0);
- glEnd();
-
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glDisable(GL_DEPTH_TEST);
-
- glBindTexture(GL_TEXTURE_2D, 0);
- glColor4f(0.0f, 0.0f, 0.0f, 1.0f);
-
- glBegin(GL_LINES);
- glVertex2f(0.0f, 0.0f);
- glVertex2v(interp.getState(alpha).data());
- glEnd();
-
- glColor4f(0.0f, 0.0f, 0.0f, fadeIn.getState(alpha));
- glRectf(-1.0f, -1.0f, 1.0f, 1.0f);
-
- glDisable(GL_BLEND);
- glEnable(GL_DEPTH_TEST);*/