Changeset 1508


Ignore:
Timestamp:
Jun 21, 2012, 3:44:23 PM (8 years ago)
Author:
rez
Message:

glclear: set opacity to 0.5f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/neercs/video/render.cpp

    r1503 r1508  
    388388
    389389    /* Clear the back buffer */
    390     glClearColor(screen_color.r, screen_color.g, screen_color.b, 1.0f);
     390    glEnable(GL_BLEND);
     391    glBlendFunc(GL_SRC_COLOR,GL_DST_ALPHA);
     392    glClearColor(screen_color.r, screen_color.g, screen_color.b, 0.5f);
    391393    glClearDepth(1.0f); // set depth buffer
    392394    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
     
    398400    text_render->Blit(border_top, screen_size - border_bottom);
    399401
    400     glEnable(GL_BLEND);
    401402    //if(polygon) glEnable(GL_LINE_SMOOTH); else glDisable(GL_LINE_SMOOTH);
    402403    glLineWidth((polygon)?2.0f:1.0f);
     
    408409    glLoadMatrixf(&m[0][0]);
    409410    glMatrixMode(GL_MODELVIEW);
    410 
    411     glEnable(GL_BLEND);
    412411    // draw dos
    413412    if(dos_flag)
Note: See TracChangeset for help on using the changeset viewer.