16
Moderator
#1
Code:
glRasterPos2i(0, 0);
    std::string s = "Some text";
    void * font = GLUT_BITMAP_9_BY_15;

    for (std::string::iterator i = s.begin(); i != s.end(); ++i)
    {
        char c = *i;
        glutBitmapCharacter(font, c);
    }
    glEnable(GL_TEXTURE_2D);
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)