Opengl+Qt 可视化文字显示模糊问题
时间:2014-02-12 23:03:28
收藏:0
阅读:839
结果如下,有重影:
debug原因:以下代码调用两次,注释掉一次即可(有效的原因不明,待高手指教)
#if 1
376 glClearColor(settings.backgroundColor.r, settings.backgroundColor.g,
377 settings.backgroundColor.b, settings.backgroundColor.a);
378 glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
379 glColor3f(settings.foregroundColor.r, settings.foregroundColor.g, settings.foregroundColor.b);
380 #endif
修正效果如下:
原文:http://blog.csdn.net/mathgeophysics/article/details/19116355
评论(0)