this post was submitted on 07 Mar 2025
16 points (100.0% liked)

Programming

19223 readers
59 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 [email protected]



founded 2 years ago
MODERATORS
 

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.

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 3 weeks 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