<opengl>通过反走样消除锯齿

procedureopenGLdraw;
begin

glEnable(GL_LINE_SMOOTH);                           //设置反走样
glHint(GL_LINE_SMOOTH_HINT,GL_NICEST);              //设置反走样


‍ glColor4f(1.0,1.0,0.0,1.0);                    // 设置黄色,透明度为100%
glLineWidth(10);                              // 设置线的宽度
glBegin(GL_LINE_STRIP);                       // 画线
    glvertex3f(-3,0.5,0);
    glVertex3f(0,0.8,0);
    glVertex3f(3,-0.5,0);
glEnd();                                                                  //            
end;

posted @ 2012-11-29 11:29  白条围巾  阅读(3323)  评论(0编辑  收藏  举报