pub unsafe fn create_context_attributes(
hdc: HDC,
share_context: Option<HGLRC>,
integer_attributes: &[ContextAttribute],
) -> Option<HGLRC>Expand description
Create a new OpenGL context with the given attributes. See https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/refs/heads/main/extensions/ARB/WGL_ARB_create_context.txt
ยงNotes
This wraps ffi::wglCreateContextAttribsARB.
Make sure that integer_attributes is not empty and ends with IntegerAttribute::End.