tiny_gl/wgl/ffi/
enums.rs

1use crate::gl::ffi::GLint;
2
3// See https://www.khronos.org/registry/OpenGL/extensions/ARB/WGL_ARB_create_context.txt for more information.
4// See https://www.khronos.org/registry/OpenGL/extensions/ARB/WGL_ARB_pixel_format.txt for more information.
5
6/// True if the pixel format can be used with a window. The
7/// <iLayerPlane> parameter is ignored if this attribute is
8/// specified.
9pub const WGL_DRAW_TO_WINDOW_ARB: GLint = 0x2001;
10
11/// Indicates whether the pixel format is supported by the driver.
12/// If this is set to WGL_NO_ACCELERATION_ARB then only the software
13/// renderer supports this pixel format; if this is set to
14/// WGL_GENERIC_ACCELERATION_ARB then the pixel format is supported
15/// by an MCD driver; if this is set to WGL_FULL_ACCELERATION_ARB
16/// then the pixel format is supported by an ICD driver.
17pub const WGL_ACCELERATION_ARB: GLint = 0x2003;
18
19/// True if OpenGL is supported.
20pub const WGL_SUPPORT_OPENGL_ARB: GLint = 0x2010;
21
22/// True if the color buffer has back/front pairs.
23pub const WGL_DOUBLE_BUFFER_ARB: GLint = 0x2011;
24
25/// The type of pixel data. This can be set to WGL_TYPE_RGBA_ARB or
26/// WGL_TYPE_COLORINDEX_ARB.
27pub const WGL_PIXEL_TYPE_ARB: GLint = 0x2013;
28
29/// The number of color bitplanes in each color buffer. For RGBA
30/// pixel types, it is the size of the color buffer, excluding the
31/// alpha bitplanes. For color-index pixels, it is the size of the
32/// color index buffer.
33pub const WGL_COLOR_BITS_ARB: GLint = 0x2014;
34pub const WGL_ALPHA_BITS_ARB: GLint = 0x201B;
35pub const WGL_DEPTH_BITS_ARB: GLint = 0x2022;
36pub const WGL_STENCIL_BITS_ARB: GLint = 0x2023;
37
38pub const WGL_NO_ACCELERATION_ARB: GLint = 0x2025;
39pub const WGL_GENERIC_ACCELERATION_ARB: GLint = 0x2026;
40pub const WGL_FULL_ACCELERATION_ARB: GLint = 0x2027;
41pub const WGL_TYPE_RGBA_ARB: GLint = 0x202B;
42
43pub const WGL_SAMPLE_BUFFERS_ARB: GLint = 0x2041;
44pub const WGL_SAMPLES_ARB: GLint = 0x2042;
45
46pub const WGL_CONTEXT_MAJOR_VERSION_ARB: GLint = 0x2091;
47pub const WGL_CONTEXT_MINOR_VERSION_ARB: GLint = 0x2092;
48pub const WGL_CONTEXT_LAYER_PLANE_ARB: GLint = 0x2093;
49pub const WGL_CONTEXT_FLAGS_ARB: GLint = 0x2094;
50
51pub const ERROR_INVALID_VERSION_ARB: GLint = 0x2095;
52pub const ERROR_INVALID_PROFILE_ARB: GLint = 0x2096;
53
54pub const WGL_CONTEXT_PROFILE_MASK_ARB: GLint = 0x9126;
55
56pub const WGL_CONTEXT_CORE_PROFILE_BIT_ARB: GLint = 0x0001;
57pub const WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB: GLint = 0x0002;
58
59pub const WGL_CONTEXT_DEBUG_BIT_ARB: GLint = 0x0001;
60pub const WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB: GLint = 0x0002;