Sorry the example is incorrect.  The commented lines should not be commented 
out.  Its what I get for copy and paste without thinking.  Need more coffee...

> Thanks for stopping in Kai.
>
> glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
> glEnable(GL_LINE_SMOOTH);
>
> These are legacy line smoothing features.
>
> Line smoothing in Opengl using multisampling is enabled and disabled with the 
> following calls:
>
> glEnable(GL_MULTISAMPLE);
> glDisable(GL_MULTISAMPLE);
>
> However this only turning MSAA on and off.  In order to see the level of AA 
> 1x,2,x,4x, etc you must request N samples via attributes while creating your 
> opengl context
>
> Example attributes to request 4x MSAA: (you pass this array to 
> glxCreateContext)
>                                 int visual_attribs[] = {
>                                         GLX_X_RENDERABLE,True,
>                                         GLX_DRAWABLE_TYPE,GLX_WINDOW_BIT,
>                                         GLX_RENDER_TYPE,GLX_RGBA_BIT,
>                                         GLX_X_VISUAL_TYPE,GLX_TRUE_COLOR,
>                                         GLX_RED_SIZE,8,
>                                         GLX_GREEN_SIZE,8,
>                                         GLX_BLUE_SIZE,8,
>                                         GLX_ALPHA_SIZE,8,
>                                         GLX_DEPTH_SIZE,24,
>                                         GLX_STENCIL_SIZE,8,
>                                         GLX_DOUBLEBUFFER,True,
>                                         //GLX_SAMPLE_BUFFERS  , 1,
>                                         //GLX_SAMPLES         , 4,
>                                         None
>                                 };
>
> What is not clear to me is how to control this step.  I am not sure that I 
> can with fltk 1.3 and if not I need to look into a) what level of AA does 
> fltk 1.3 request b) how I might be able to extend or patch the API to allow 
> me to do this.  It's a trivial few lines of code but my assumption is that 
> fltk 1.3 developers want clients to use calls to "mode" exclusively to affect 
> changes to how the GL context is created.
>
> This is conjecture at this point as I have not looked over the source yet or 
> talked to anyone about how this might work if my initial hunches prove to be 
> true.  I could be very wrong as I am still very new to fltk.
>
> > Am 02.09.09, 18:12 -0700 schrieb Shon Pritchett:
> > > Can I control the level of AA applied somehow?  I believe that's my last 
> > > question and I'll stop bothering you all for a few moons.
> >
> > I am not shure which of the following calls does switch the line smoothing
> > in my open source app, but here they are:
> >    glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
> >    glEnable(GL_LINE_SMOOTH);
> > The above works after the GL context initialisation.
> >
> > Probably OpenGL knows other switches as well.
> >
> > kind regards
> > Kai-Uwe Behrmann
> > --
> > developing for colour management
> > www.behrmann.name + www.oyranos.org
> >
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to