Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法只对用OpenGL而不是整个程序绘制的线使用多重采样?提前致谢!
尝试使用 启用抗锯齿线glEnable(GL_LINE_SMOOTH),另外您还可以添加glHint(GL_LINE_SMOOTH_HINT, GL_NICEST). 即使它不是真正的多重采样绘图,这些也可能会为您提供您想要的东西。
glEnable(GL_LINE_SMOOTH)
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST)
不,除非您可以将所有线条绘制到另一个缓冲区中,然后将该缓冲区与您的主绘图结合起来。