FLTK logo

Multisample antialiasing

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.opengl  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Multisample antialiasing Adrian Boeing Jul 09, 2012  
 
Hi,

I'd like to add anti-aliasing to my OpenGL FLTK 1.3 window.

I've created the window as follows:
    Visualization_box(int x,int y,int w,int h, const char *l=0)
    : Fl_Gl_Window(x,y,w,h,l) {
        m_zoom = 1.0;
        mode(FL_MULTISAMPLE|FL_DOUBLE|mode());
    }
But this has no effect.

I have also not been able to find how to set the number of multisamples with FLTK.

The equivalent SDL code I'm trying to achieve via FLTK would be:
   SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
   SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
which works fine on my platform (OSX).

Does anyone know how to enable antialiasing with FLTK for OSX?

Thanks,
-Adrian
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.