Oversaturation OpenGL Context

Question: In any case, to get the OpenGL context from GLUT?


The information: I study openGL and openCL. I almost finished my first program that uses them together, everything will work wonderfully if I could only create the created openCL context, but to do this and get the exchange job I need to get the openGL context. I could figure out the process of working with X, but I was hoping to keep it as independent of the platform as possible with the smallest possible libraries. I just have to find out something else, if not. but I decided that I should at least ask before giving up. Anyway, actually, to get an OpenGL context from GLUT?

+4
source share
1 answer

You cannot get the context from GLUT, but you can get it from Windows: wglGetCurrentContext . Similarly, on X-Windows systems, you can use glXGetCurrentContext .

+3
source

Source: https://habr.com/ru/post/1388673/


All Articles