Reputation: 1211
Is there a way to just use multisampling on just lines drawn with OpenGL and not with the entire program? Thanks in advance!
Upvotes: 3
Views: 748
Reputation: 46041
Try to enable anti-aliased lines with glEnable(GL_LINE_SMOOTH)
, plus you can also add a glHint(GL_LINE_SMOOTH_HINT, GL_NICEST)
. These might get you what you want even it's not true multisampled drawing.
Upvotes: 4
Reputation: 56377
No, unless you can draw all lines into another buffer and then combine this buffer with your main drawing.
Upvotes: 1