Le 15 mars 2012, Christopher Howard a écrit :
Question for the veterans:
--
ship_surf = cairo_image_surface_create_from_png("ship.png");
// ...
cairo_set_source_surface (cr, ship_surf, x, y);
cairo_paint (cr);
--
But what if I want, for ease of maintainability (and less system
Question for the veterans:
I'm coding a simple space combat game with GTK+. For the sprites, I know
I can do this to draw:
code:
--
ship_surf = cairo_image_surface_create_from_png("ship.png");
// ...
cairo_set_source_surface (cr, ship_surf, x, y);
cairo_paint (cr);
--
But what if