Re: cairo: multiple sprites images in one PNG

2012-03-16 Thread Lucas Levrel
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

cairo: multiple sprites images in one PNG

2012-03-15 Thread Christopher Howard
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