PDA

View Full Version : OpenGL context implementation confusion



Q-Dust
08-09-2015, 06:00 PM
I apologise if this seems very obvious, though I would like to find out where the OpenGL context structure is located in memory. Would it be mapped to a particular region of the system address space which is only accessed by kernel mode programs? I know this is not information that is necessary to know unless you are developing drivers, though I am interested to know how it is roughly implemented under the hood.

Thanks :)

Alfonse Reinheart
08-10-2015, 10:30 AM
There is no (legitimate) way to find the "OpenGL context structure". And any illegitimate ways are unlikely to be cross-platform, or even cross-hardware on the same platform. Different implementations implement the specification however they wish to.

So really, there's no point to such an exercise.