FLTK logo

[fltk.coredev] Re: Problems with two macOS opengl3 windows drawing widgets with opengl2 ( bad draw and crashes on exit)

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

Re: Problems with two macOS opengl3 windows drawing widgets with opengl2 ( bad draw and crashes on exit) "'melcher.... Nov 22, 2022  
  Manolo schrieb am Dienstag, 22. November 2022 um 19:34:59 UTC+1:
Le mardi 22 novembre 2022 à 12:18:01 UTC+1, Matthias a écrit :
I traced the code and it uses a method switch_to_GL1() in the OpenGL graphics driver that I don't understand. I'll have to hand this to Manolo. As an aside, if we implement a second OpenGL3 graphics driver, I can reimplement the FLTK drawing calls to use GL3 instead of GL1, so there is no need for this context switching. Manolo?

Is this proposal  to implement, say, class Fl_OpenGL3_Graphics_Driver that would use GL3 in addition
to the existing GL1-based class Fl_OpenGL_Graphics_Driver, and to use the new driver to draw into GL3 windows ?

Exactly. It's a great use for drivers.
 
That would remove indeed the need for the context switching. Please, notice this driver would not be necessary
under X11 and Windows. Notice also the need for a solution for text drawing compatible with both GL1 and GL3 contexts.

Hmm, so you can mix OGL and OGL3 on other platforms? I don't know much about OGL3, except that I really need to learn it ;-)

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/6596f440-1158-446d-be35-841a75da02d2n%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'.