PrevUpHomeNext

video_driver->beginScene(...)


Method: video_driver.beginScene(...)

video_driver.beginScene(...) is a method of class dcpp::video::IVideoDriver .

The first overloading of the method is the same as irrlicht's. The second overloading is different from irrlicht's, which makes it more lazy to use.

The application must call this method before doing any rendering.

Calling Sig - overloading 1:

video_driver->beginScene(
	clear_flag,
	clear_color,
	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->beginScene(
	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.

See Also

video_driver->swapScenes(...)

video_driver->endScene()

Back

Up

c++

Duckcpp

cppfx.xyz


PrevUpHomeNext