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


box by eMCee
        glColor3f(1,1,1);
        glBindTexture(GL_TEXTURE_2D, g_texture[0]);
        glBegin(GL_QUADS);
            glTexCoord2f(0.0f, 0.0f); glVertex3f(-200, 0.0f,  200.0f); // bottom left
            glTexCoord2f(3.0f, 0.0f); glVertex3f(200.0f, 0.0f,  200.0f); // bottom right
            glTexCoord2f(3.0f, 3.0f); glVertex3f(200.0f,  50.0f,  200.0f); // top right
            glTexCoord2f(0.0f, 3.0f); glVertex3f(-200,  50.0f,  200.0f); // top left
        glEnd();

            
        glColor3f(1.0f, 1.0f, 1.0f);
        glBindTexture(GL_TEXTURE_2D, g_texture[0]);
        glBegin(GL_QUADS);
            glTexCoord2f(0.0f, 0.0f); glVertex3f(-200, 0.0f,  -200.0f); // bottom left
            glTexCoord2f(3.0f, 0.0f); glVertex3f(200.0f, 0.0f,  -200.0f); // bottom right
            glTexCoord2f(3.0f, 3.0f); glVertex3f(200.0f,  50.0f,  -200.0f); // top right
            glTexCoord2f(0.0f, 3.0f); glVertex3f(-200,  50.0f,  -200.0f); // top left
        glEnd();

        glColor3f(1.0f, 1.0f, 1.0f);
        glBindTexture(GL_TEXTURE_2D, g_texture[0]);
        glBegin(GL_QUADS);
            glTexCoord2f(0.0f, 0.0f); glVertex3f(-200, 0.0f,  200.0f); // bottom left
            glTexCoord2f(1.0f, 0.0f); glVertex3f(-200.0f, 0.0f,  -200.0f); // bottom right
            glTexCoord2f(1.0f, 1.0f); glVertex3f(-200.0f,  50.0f,  200.0f); // top right
            glTexCoord2f(0.0f, 1.0f); glVertex3f(-200,  50.0f,  -200.0f); // top left
        glEnd();