15

It's a Windows system function that is used for creating an OpenGL rendering context, and is very cursed since you have to jump around a few hoops before you can actually use it. I barely managed to find the function signature, let alone any information on how does it work.

you are viewing a single comment's thread
view the rest of the comments
[-] Kissaki@programming.dev 6 points 11 months ago

I search with duckduckgo and the first results seem reasonable

Here's a signature and description https://www.khronos.org/opengl/wiki/Creating_an_OpenGL_Context_(WGL)#Create_Context_with_Attributes - khronos is publisher of OpenGL

here's the function I presume without attributes, so should be helpful to relate and compare https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-wglcreatecontext

this post was submitted on 07 Mar 2025
15 points (94.1% liked)

Programming

25415 readers
467 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS