Changeset 11894


Ignore:
Timestamp:
08/12/11 08:38:01 (13 years ago)
Author:
lyard
Message:
added anti-aliasing
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/BasicGlCamera.cc

    r11865 r11894  
    121121        glDisable(GL_DEPTH_TEST);
    122122        glDisable(GL_CULL_FACE);
     123
     124        glEnable (GL_LINE_SMOOTH);
     125        glEnable (GL_BLEND);
     126        glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
     127        glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
     128
    123129    }
    124130    void BasicGlCamera::resizeGL(int cWidth, int cHeight)
  • trunk/FACT++/gui/QCameraWidget.cc

    r11880 r11894  
    2323        pixelContourColour[1] = 0.1f;
    2424        pixelContourColour[2] = 0.1f;
    25         patchesCoulour[0] = 0.15f;
    26         patchesCoulour[1] = 0.15f;
    27         patchesCoulour[2] = 0.15f;
     25        patchesCoulour[0] = 0.1f;
     26        patchesCoulour[1] = 0.1f;
     27        patchesCoulour[2] = 0.1f;
    2828        highlightedPatchesCoulour[0] = 0.6f;
    2929        highlightedPatchesCoulour[1] = 0.6f;
Note: See TracChangeset for help on using the changeset viewer.