Advertisement

Glitz

Started by December 18, 2006 06:44 AM
-1 comments, last by Kebabas 17 years, 11 months ago
Hello guys, has any of you tried Glitz ? I am trying to make some animation work, but i cant force a proper double buffering to appear. And it seems that this works even slower than a simple GTK widget drawing routine. What am i doing wrong? gint gdkcairo_expose (gdkcairo_t *self, GdkEventExpose *event) { GtkWidget *widget = self->widget; g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (event != NULL, FALSE); switch (self->backend) { case GDKCAIRO_BACKEND_GL: { glitz_drawable_t *drawable; glitz_drawable_format_t *dformat; glitz_surface_t *msurface; int width=widget->allocation.width; int height=widget->allocation.height; glitz_surface_flush (self->glitz_surface); drawTest1(self->glitz_surface); drawable = glitz_surface_get_drawable (self->glitz_surface); dformat = glitz_drawable_get_format (drawable); if (dformat->doublebuffer) { glitz_drawable_swap_buffers (drawable); } else glitz_drawable_flush (drawable); } break; default: { printf("Impossible to draw\n"); g_assert (0); } } return FALSE; }

This topic is closed to new replies.

Advertisement