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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Nitroreg

Pages: [1]
1
Window / Events and threads
« on: February 08, 2012, 12:58:05 am »
It works now. Thanks a lot !

2
Window / Events and threads
« on: February 07, 2012, 06:51:50 pm »
Thanks, events work in the main thread but graphics don't work if there are not in the main thread. When Display is called this error is printed on the output.
"Failed to activate the window's context"
The OpenGL context's version is 3.1

3
Window / Events and threads
« on: February 07, 2012, 06:27:18 pm »
I'm trying to handle events in a thread.
That seems not to work, "PollEvent" never returns true and "WaitEvent" never returns at all.

Is sf::Window thread-safe?
Can I call "Display" in the main thread and "PollEvent / WaitEvent" in a different thread?

Thanks

Pages: [1]