From 153b175d907cdc506f3b3de159ebca7830b7e2e3 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 21 Aug 2018 07:45:32 +0000 Subject: Better doc for using OpenGL version 3. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/src/opengl.dox | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'documentation') diff --git a/documentation/src/opengl.dox b/documentation/src/opengl.dox index 7e75e82b7..91983f0c9 100644 --- a/documentation/src/opengl.dox +++ b/documentation/src/opengl.dox @@ -460,13 +460,17 @@ 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 and Unix/Linux platforms, FLTK creates contexts -implementing the highest OpenGL version supported by the hardware, -which are also compatible with lower OpenGL versions. Thus, FLTK allows -source code targeting any version of OpenGL. Access to functions from OpenGL +implementing the highest OpenGL version supported by the hardware. +Such contexts may also be compatible with lower OpenGL versions. +Access to functions from OpenGL versions above 1.1 requires to load function pointers at runtime on these platforms. FLTK recommends to use the GLEW library to perform this. It is therefore -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. +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 (Unix/Linux and Windows platforms) GLEW is available as a package for most Linux distributions and in source -- cgit v1.2.3