2012/12/10 Carlos López González <genet...@gmail.com>:
> 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...
> ^__^


Maybe there is some widget similar to one that Qt have? -
http://doc.qt.digia.com/qt/qglwidget.html#details
I don't know if such one exists for gtk...

BTW, maybe it worth to look how rendering implemented in Uioimae's branch?
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
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to