Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: getting the GL context  (Read 2330 times)

0 Members and 1 Guest are viewing this topic.

Trass3r

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
getting the GL context
« on: March 12, 2011, 03:37:12 pm »
For interoperation with OpenCL I need the OpenGL context associated with the current window. (and on Windows also the DC, but I think I can get that via GetDC(window.GetSystemHandle())

Could this be made available?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
getting the GL context
« Reply #1 on: March 12, 2011, 07:29:58 pm »
wglGetCurrentContext
wglGetCurrentDC
Laurent Gomila - SFML developer

 

anything