diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-12-19 16:22:28 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-12-19 16:23:46 +0100 |
| commit | bad956cdd63de444a061ff754b99c633e11438c3 (patch) | |
| tree | 39669ceacac1a0224b2bea34d7cfe92e1e1f24f8 /FL | |
| parent | 63c0ef5681e869ceea908fe73f6c66bcd3bf442a (diff) | |
Add Fl_Gl_Window 32 bit depth buffer option.
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Enumerations.H | 3 | ||||
| -rw-r--r-- | FL/Fl_Gl_Window.H | 3 |
2 files changed, 4 insertions, 2 deletions
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. |
