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 eMCee
    glBegin(GL_QUADS);
        glEnable(GL_BLEND);
        glColor4f(0.0f,0.0f,1.0f,0.5f);
        glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
        glVertex3f(-10.0f, 5.0f, -40.0f);
        glVertex3f(-10.0f, 10.0f, -40.0f);
        glVertex3f(-10.0f, 10.0f, -35.0f);
        glVertex3f(-10.0f, 5.0f, -35.0f);
        glDisable(GL_BLEND);
    glEnd();