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:: No Line Numbers


glBlend stuff by Scouse
1
 
    glEnable(GL_BLEND);
    glColor4f(0.0f,0.0f,1.0f,0.5f);
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

    glBegin(GL_QUADS);
        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);
    glEnd();
    glDisable(GL_BLEND);