SetTo Note: If the active surface is a Bitmap, calling this function will refresh the active surface!
Sets specified OpenGL buffer image as the active rendering surface. The only possible choise for now is SCREEN_BACKBUF (the screen backbuffer). As you might guess, the screen backbuffer is the default rendering surface. Warning: You shouldn't render anything to the backbuffer during the frame before selecting a Bitmap as the active surface! Otherwise the program might not work correctly with older hardware. Also rendering a Bitmap to itself may cause undefined results. Most likely you'll get some gray pixels here and there, but it won't look like what you might expect, anyways. Examples Bitmap myBmp( ... );
// Sets myBmp as the active canvas // Canvas::SetTo( myBmp ); // Set the screen as the active canvas // Canvas::SetTo( SCREEN_BACKBUF ); Other functions of the class Canvas
Questions about SetTo? Click here. |