MCPcopy Create free account
hub / github.com/WiVRn/WiVRn / current_scene

Method current_scene

client/application.cpp:1751–1758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1749#endif
1750
1751std::shared_ptr<scene> application::current_scene()
1752{
1753 std::unique_lock _{instance().scene_stack_lock};
1754 if (!instance().scene_stack.empty())
1755 return instance().scene_stack.back();
1756 else
1757 return {};
1758}
1759
1760void application::pop_scene()
1761{

Callers 1

poll_actionsMethod · 0.80

Calls 3

instanceClass · 0.50
emptyMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected