1 min
Scene* current_scene = nullptr;
current_scene = new MenuScene();
if (!current_scene->init(renderer.get()))
{
return false;
}
As long as the functions called from current_scene are the inherited functions of Scene, MenuScene can override the functions as it wishes.
Subscribe to this blog via RSS.
Blog 17
Snake 4
Birdman 2
Blog (17) Low-level programming (17) Snake (4) Endless runner (2) Birdman (2) Chess-com (6)