Skip to content

Commit 070c789

Browse files
committed
REVIEWED: Some flags for window/context creation attributes
1 parent e79603d commit 070c789

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/platforms/rcore_desktop_win32.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,25 @@ static PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = NULL;
171171
#define WGL_DEPTH_BITS_ARB 0x2022
172172
#define WGL_STENCIL_BITS_ARB 0x2023
173173
#define WGL_TYPE_RGBA_ARB 0x202b
174+
175+
// Context acceleration types
174176
#define WGL_NO_ACCELERATION_ARB 0x2025 // OpenGL 1.1 GDI software rasterizer
175177
#define WGL_GENERIC_ACCELERATION_ARB 0x2026
176178
#define WGL_FULL_ACCELERATION_ARB 0x2027 // OpenGL hardware-accelerated, using GPU-drivers provided by vendor
177179

180+
// WGL_ARB_multisample extension supported
181+
#define WGL_SAMPLE_BUFFERS_ARB 0x2041 // Multisampling: 1 if multisample buffers are supported
182+
#define WGL_SAMPLES_ARB 0x2042 // Multisampling: Number of samples per pixel (4, 8, 16)
183+
184+
// WGL_ARB_framebuffer_sRGB extension supported
185+
#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20a9 // GL_TRUE if the framebuffer can do sRGB conversion
186+
178187
#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
179188
#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
180189
#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
181190
#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
182191
#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
183192
#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
184-
#define WGL_SAMPLE_BUFFERS_ARB 0x2041
185-
#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20a9
186-
#define WGL_TRANSPARENT_ARB 0x200A
187193

188194
//----------------------------------------------------------------------------------
189195
// Types and Structures Definition

0 commit comments

Comments
 (0)