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

Author Topic: Get HGLRC for wglShareLists()  (Read 3338 times)

0 Members and 1 Guest are viewing this topic.

RedFalcon

  • Newbie
  • *
  • Posts: 2
    • View Profile
Get HGLRC for wglShareLists()
« on: July 31, 2009, 02:41:19 pm »
Hi,

i created an application which supports two windows in Dual View mode and also fullscreen. Now i want to share textures between the two without loading each texture i need twice. Is there a way to get HGLRC from RenderWindow or should i roll my own thing? I'm using C++/CLR and C# together.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Get HGLRC for wglShareLists()
« Reply #1 on: July 31, 2009, 02:53:32 pm »
SFML already shares every context it creates. If you use an external context, and then really needs to retrieve the SFML's context, then you can set the RenderWindow as active and call wglGetCurrentContext.
Laurent Gomila - SFML developer

RedFalcon

  • Newbie
  • *
  • Posts: 2
    • View Profile
Get HGLRC for wglShareLists()
« Reply #2 on: July 31, 2009, 02:55:58 pm »
Thank you, how i could forget about wglGetCurrentContext().

 

anything