void Image::print(Image * buffer, Coordonnees where, Coordonnees from) { SDL_Rect ou, dou; ou.x = where.x(); ou.y = where.y(); ou.w = where.w(); ou.h = where.h(); dou.x = from.x(); dou.y = from.y(); dou.w = from.w(); dou.h = from.h(); SDL_BlitSurface(image, &dou, buffer->image, &ou); }
void Image::print(Coordonnees where, Coordonnees from) { SDL_Rect ou, dou; ou.x = where.x(); ou.y = where.y(); ou.w = where.w(); ou.h = where.h(); dou.x = from.x(); dou.y = from.y(); dou.w = from.w(); dou.h = from.h(); SDL_BlitSurface(image, &dou, SDL_GetVideoSurface(), &ou); }