FLTK logo

[fltk.general] FL_MULTISAMPLE seems to be ignored on Windows

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.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

FL_MULTISAMPLE seems to be ignored on Windows Mo_Al_ Sep 28, 2022  
  Hello

I've been playing around adding widgets to an Fl_Gl_Window, I'm aware its being work on still. I noticed that passing FL_MULTISAMPLE does provide anti-aliasing on Linux (X11) and MacOS but not on Windows.

#include <FL/Fl.H>
#include <FL/Enumerations.H>
#include <FL/Fl_Gl_Window.H>
#include <FL/Fl_Line_Dial.H>

int main() {
    auto win = new Fl_Gl_Window(400, 300);
    win->mode(FL_MULTISAMPLE);
    win->box(FL_FLAT_BOX);
    win->begin();
    auto dial = new Fl_Line_Dial(100, 50, 200, 200, "");
    dial->selection_color(FL_BLUE);
    dial->color(FL_RED);
    dial->box(FL_OFLAT_BOX);
    win->end();
    win->show();
    return Fl::run();
}

windows:
winmultisample.jpg

Linux (X11):
linmutli.jpg

Also win->mode(FL_OPENGL3 | FL_MULTISAMPLE); 
would break antialiasing on MacOS, whereas removing the FL_OPENGL3 fixes it.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/67b88776-2bbf-4e9c-a94c-6e65614a9967n%40googlegroups.com.
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'.