Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Get HGLRC for wglShareLists()
Print
Pages: [
1
]
Author
Topic: Get HGLRC for wglShareLists() (Read 3335 times)
0 Members and 1 Guest are viewing this topic.
RedFalcon
Newbie
Posts: 2
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.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
RedFalcon
Newbie
Posts: 2
Get HGLRC for wglShareLists()
«
Reply #2 on:
July 31, 2009, 02:55:58 pm »
Thank you, how i could forget about wglGetCurrentContext().
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Get HGLRC for wglShareLists()