Reputation: 1011
WGL seems to depend on GDI which is now deprecated. Is WGL required, and if not, how do I initialize OpenGL without it in a non-deprecated way?
Upvotes: 2
Views: 1567
Reputation: 162164
Yes, WGL is the only API to create OpenGL contexts in Windows.
GDI which is now deprecated
Says who? The Microsoft marketing department. But the same guys also claim that OpenGL was obsolete.
GDI+ builds on top of GDI and WPF has a different target audience.
how do I initialize OpenGL without it in a non-deprecated way?
Using WGL. You might find a EGL wrapper around it somewhere, but it will still fall back to WGL.
Upvotes: 1