FastBlit Advanced function
A faster version of Blit but works only after StartFastBlitting has been called. When you're finished calling FastBlit, you should call FinishFastBlitting. Examples // If you're about to render, say, 500 Bitmaps in a row with , you can do the following //
Bitmap bitmaps[500] = { ... }; // Start fast Blitting // Bitmap::StartFastBlitting(); // Blit all the Bitmaps to random positions in the screen // for( int i = 0; i < 500; i++ ) { bitmaps[i].FastBlit( rand()%SCREEN_W, rand()%SCREEN_H ); } // Finish rendering // Bitmap::FinishFastBlitting(); Other functions of the class Bitmap
Questions about FastBlit? Click here. |