From bad956cdd63de444a061ff754b99c633e11438c3 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 19 Dec 2025 16:22:28 +0100 Subject: Add Fl_Gl_Window 32 bit depth buffer option. --- FL/Enumerations.H | 3 ++- FL/Fl_Gl_Window.H | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'FL') diff --git a/FL/Enumerations.H b/FL/Enumerations.H index 92cfac612..a2434bb19 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -1226,7 +1226,8 @@ enum Fl_Mode { FL_MULTISAMPLE= 128, FL_STEREO = 256, FL_FAKE_SINGLE = 512, // Fake single buffered windows using double-buffer - FL_OPENGL3 = 1024 + FL_OPENGL3 = 1024, + FL_DEPTH32 = 2048, }; // image alpha blending diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H index 65ae1b12c..e81fa212d 100644 --- a/FL/Fl_Gl_Window.H +++ b/FL/Fl_Gl_Window.H @@ -150,7 +150,8 @@ public: - \c FL_DOUBLE - double buffered - \c FL_ACCUM - accumulation buffer - \c FL_ALPHA - alpha channel in color - - \c FL_DEPTH - depth buffer + - \c FL_DEPTH - any depth buffer (or set FL_DEPTH32 for at least 32 bits) + - \c FL_DEPTH32 - depth buffer with at least 32 bits - \c FL_STENCIL - stencil buffer - \c FL_MULTISAMPLE - multisample antialiasing - \c FL_OPENGL3 - use OpenGL version 3.0 or more. -- cgit v1.2.3