GlEnable GL_LINE_SMOOTH

BlitzMax Forums/BlitzMax Beginners Area/GlEnable GL_LINE_SMOOTH

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In answer to my own question, yes, it does.

Function enableLineSmoothing(size:Double) 'size is the size of the line
glEnable (GL_LINE_SMOOTH);
glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glHint (GL_LINE_SMOOTH_HINT, GL_NICEST);
glLineWidth (size);
End Function

What do you have against using SetColor? Is it just that you prefer using the 1.0 method instead of the 255? As far as I know, the 1.0 just gets converted into the 255, resulting in an extra, albeit tiny, step.

Thanks for your help. After I finish my current project, I'm going to make an all-vector game based on Gravitar.