From 694eaef99c25c4f94c4f2d5ffe6598bcca6674fc Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 29 Sep 2022 12:04:17 +0200 Subject: Doc: more details about installation of GLEW. --- documentation/src/opengl.dox | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/documentation/src/opengl.dox b/documentation/src/opengl.dox index d1a36be11..7b544d2aa 100644 --- a/documentation/src/opengl.dox +++ b/documentation/src/opengl.dox @@ -550,7 +550,7 @@ and OpenGL 3. To access OpenGL 3.0 (or higher versions), use the FL_OPENGL3 flag when calling Fl_Gl_Window::mode(int a) or glutInitDisplayMode(). -On the Windows, X11, and Wayland platforms, FLTK creates contexts +On the Windows and Linux platforms, FLTK creates contexts implementing the highest OpenGL version supported by the hardware. Such contexts may also be compatible with lower OpenGL versions. Access to functions from OpenGL @@ -561,14 +561,31 @@ necessary to install the GLEW library (see below). On the macOS platform, MacOS 10.7 or above is required; GLEW is possible but not necessary. FLTK creates contexts for OpenGL versions 1 and 2 without the FL_OPENGL3 -flag and for OpenGL versions 3.2 and above with it. - -\par GLEW installation (X11, Wayland, and Windows platforms) -GLEW is available as a package for most Linux distributions and in source -form at http://glew.sourceforge.net/. -For the Windows platform, a Visual Studio static library (glew32.lib) can -be downloaded from the same web site; a MinGW-style static library (libglew32.a) -can be built from source with the make command. +flag and for OpenGL versions 3.2 and above (but not below) with it. + +\par GLEW installation (Linux and Windows platforms) +FLTK needs a header file, \c GL/glew.h, and a library, \c libGLEW.* or +equivalent, to support OpenGL 3 and above. +
These can be obtained for most Linux distributions +by installing package libglew-dev. +
For the Windows platform : + \par Source-level changes for OpenGL 3: \li Put this in all OpenGL-using source files (instead of \#include , -- cgit v1.2.3