Method: video_driver.swapScenes(...)
video_driver.swapScenes(...) is a method of class dcpp::video::IVideoDriver .
The first overloading of the method is matching the first overloading of video_driver->beginScene(...). The second overloading is matching the second overloading of video_driver->beginScene(...), which makes it more lazy to use.
video_driver->swapScenes(...) is identical to "video_driver->endScene() && video_driver->beginScene(...)", it is a lazy-use of it.
Calling Sig - overloading 1:
video_driver->swapScenes( clear_flag = dcpp::uint16_kt{dcpp::video::ECBF_COLOR|dcpp::video::ECBF_DEPTH}, clear_color = dcpp::video::SColor{255, 0, 0, 0}, clear_depth = 1.0f, clear_stencil = 0, video_data = {}, source_rect = nullptr );
This is the full parameter version of overloading.
Some parameters have default values.
clear_flag: dcpp::video::ECBF_COLOR | dcpp::video::ECBF_DEPTH | dcpp::video::ECBF_STENCIL
Set them by the bitwise-or op.
Calling Sig - overloading 2:
video_driver->swapScenes( color = dcpp::video::SColor{255, 0, 0, 0}, video_data = {}, source_rect = nullptr );
This is the lazy-use parameter version of overloading.
All parameters have default values.