Re: Reusing wl_egl_window for multiple EGL surfaces

2014-10-30 Thread Virtual Presence
I see, on the server side there are helpful APIs like wl_event_loop_add_timer and wl_event_source_timer_update to integrate timers into event loop but unfortunately not so on client side. I guess it might not make sense for libwaylandclient to have such APIs but instead the app/toolkits that implem

Re: Reusing wl_egl_window for multiple EGL surfaces

2014-10-30 Thread Pekka Paalanen
On Wed, 29 Oct 2014 08:48:12 -0700 Virtual Presence wrote: > Thank you for the detailed gyaan. I will look into the "sub-surface" > protocol as an alternative. What I do as of now is have the 2 threads on a > 3 second timer where threadA renders triangle for 3 seconds then signals a > mutex condi

Re: Reusing wl_egl_window for multiple EGL surfaces

2014-10-29 Thread Virtual Presence
Thank you for the detailed gyaan. I will look into the "sub-surface" protocol as an alternative. What I do as of now is have the 2 threads on a 3 second timer where threadA renders triangle for 3 seconds then signals a mutex condition and wakes up threadB which renders gears for 3 seconds and so on

Re: Reusing wl_egl_window for multiple EGL surfaces

2014-10-28 Thread Pekka Paalanen
On Mon, 27 Oct 2014 10:15:20 -0700 Virtual Presence wrote: > I see. Thank you for the info. What i am trying to do is have multiple > contexts with its own EGLSurface but sharing the same "window" or > wl_surface on wayland, where one thread renders a gl_triangle and the other > rendering gears.

Re: Reusing wl_egl_window for multiple EGL surfaces

2014-10-27 Thread Virtual Presence
I see. Thank you for the info. What i am trying to do is have multiple contexts with its own EGLSurface but sharing the same "window" or wl_surface on wayland, where one thread renders a gl_triangle and the other rendering gears. This was a simple client to teach myself queues and IPC of wayland, o

Re: Reusing wl_egl_window for multiple EGL surfaces

2014-10-27 Thread Pekka Paalanen
On Sat, 25 Oct 2014 17:14:32 -0700 Virtual Presence wrote: > Hi, > > I am writing a simple multi-threaded multi-context GLES2 Wayland client. As > required by Wayland and MESA EGL bindings i do create a wl_egl_window to > pass on to EGL window surface creation. I was wondering if there is any >

Reusing wl_egl_window for multiple EGL surfaces

2014-10-25 Thread Virtual Presence
Hi, I am writing a simple multi-threaded multi-context GLES2 Wayland client. As required by Wayland and MESA EGL bindings i do create a wl_egl_window to pass on to EGL window surface creation. I was wondering if there is any spec or rule that disallows reuse of the same wl_egl_window for multiple