Hi Konstantin,
I think that use a cairo_gl_surface is exactly the same than write directly
to the screen.
If you read the code to create a cairo_gl_surface in the link from the
stackoverflow thread (I've read that thread thousands times!), it creates
the surface based on the device and it is created based on the display and
the context (glX context) so I think it is for direct draw on the screen.
dpy = XOpenDisplay (NULL);
visinfo = glXChooseVisual (dpy, DefaultScreen (dpy), rgba_attribs);
ctx = glXCreateContext (dpy, visinfo, NULL, True);
device = cairo_glx_device_create (dpy, ctx);
surface = cairo_gl_surface_create (device, CAIRO_CONTENT_COLOR_ALPHA,
size, size);
In any case, use a cairo_gl_surface doesn't solve the synchronization
problems.
How do we assure that each renderer doesn't remove the results of the other
renderers if they aren't in synchronization?
I'm lack of knowledge about how the opengl programs work but I guess that
somehow there should be a buffer that would act like if it were the screen
(and where the GPU draws to) that is transferred to the screen synchronized
with the device refreshing to avoid jitter.
I'm sorry but my mind is about to explode...
^__^
2012/12/10 Konstantin Dmitriev <[email protected]>
>
> Hi, Carlos!
> Maybe my question is silly, but why you want to draw directly on the
> screen? Are there any chance to draw on cairo-gl surface?
>
> http://stackoverflow.com/questions/6105948/how-to-create-a-cairo-gl-surface-under-gtk
> K.
>
>
>
> --
> http://morevnaproject.org/
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Synfig-devl mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synfig-devl
>
--
Carlos
http://synfig.org
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl