GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


A Paste by MystikIce
glBindTexture(GL_TEXTURE_2D, texture[0]);
    glBegin(GL_QUADS);
        glTexCoord2d(0.0, 0.0);
        glVertex3f(-5.0f, 0.0f, -5.0f);
        glTexCoord2d(1.0, 0.0);
        glVertex3f(-5.0f, 0.0f, 5.0f);
        glTexCoord2d(1.0, 1.0);
        glVertex3f(5.0f, 0.0f, 5.0f);
        glTexCoord2d(0.0, 1.0);
        glVertex3f(5.0f, 0.0f, -5.0f);
    glEnd();