#include #include #include using namespace std; class buffering { private: BITMAP * buffer; vector bitmaps; public: buffering() { buffer=create_bitmap(SCREEN_W,SCREEN_H); } void add_bitmap(BITMAP *picture,int x=0,int y=0) { draw_sprite(buffer,picture,x,y); bool exists=false; for(int i=0;i