FLTK logo

STR #2081

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 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | SVN ⇄ GIT ]

STR #2081

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:OpenGL
Summary:add opengl 3 support to fltk
Version:1.4-feature
Created By:indy2718
Assigned To:AlbrechtS
Fix Version:1.4.0
Fix Commit:
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 indy2718
12:55 Nov 03, 2008
opengl3linux.patch
2k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#1 indy2718
12:55 Nov 03, 2008
I request opengl3 in fltk2/fltk.
The patch adds basic opengl3 context creation to fltk2 linux, and it works for me.
My suggestion is to add 2 new modes (no driver support for these yet) for the mode() function
OPENGL3_FORWARD_COMPATIBLE
OPENGL3_DEBUG
  
And by default enable opengl 3 if it's available.
 
 
#2 spitzak
14:54 Nov 09, 2008
Is there an #ifdef that can be used to compile the old code if the OpenGL headers don't define these functions?  
 
#3 indy2718
15:03 Nov 09, 2008
The patch already contains the needed typedefs except for GLXFBConfig.
glext.h should have a macro of GL_VERSION_3_0, and the glxext.h currently does not define the needed function prototypes.
 
 
#4 indy2718
11:11 Mar 02, 2009
The Fl_Gl_Choice.cxx line 248 contains a printf("Success!\n").  I didn't add that in the patch.   Please remove it.


  if (glXGetFBConfigFromVisualSGIX && glXCreateContextAttribsARB) {
    printf("Success!\n");
 
 
#5 AlbrechtS
01:38 Mar 03, 2009
Please note: Although this is (currently) classified as 1.4-feature, the supplied patch (which is written for FLTK 2) has been applied to FLTK 2 with some small modifications (including the mentioned printf) in svn -r 6511 (OpenGL/Fl_Gl_Choice.cxx).

We should look at this when someone considers this for FLTK 1.x.
 
 
#6 indy2718
09:46 Mar 05, 2009
Thanks.  Can someone please delete line 248 of OpenGL/Fl_Gl_Choice.cxx in fltk 2 (svn HEAD)

   printf("Success!\n");
 
 
#7 AlbrechtS
00:02 Mar 06, 2009
Done (commented out in svn -r 6671).  
 
#8 AlbrechtS
16:31 Jan 15, 2023
Fixed in Git repository.

As written above, the request regarding FLTK 2 was fulfilled.

FLTK 1.4 (git master) supports OpenGL 3, hence this STR can be closed.
Please see documentation or ask in fltk.general if there are questions.
https://groups.google.com/g/fltkgeneral

If there is still need for a patch to add more OpenGL 3 functionality then fltk.coredev is the place to discuss this.
https://groups.google.com/g/fltkcoredev
 
     

Return to Bugs & Features ]

 
 

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'.