/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
mActorIdContainer.PushBack(id);
}
-void FrameCallback::Update(Dali::UpdateProxy& updateProxy, float /* elapsedSeconds */)
+bool FrameCallback::Update(Dali::UpdateProxy& updateProxy, float /* elapsedSeconds */)
{
// Go through Actor ID container and check if we've hit the sides.
for(auto&& i : mActorIdContainer)
}
}
}
+
+ // We don't need it to keep rendering.
+ return false;
}
#define DEMO_FRAME_CALLBACK_H
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @brief Called when every frame is updated.
* @param[in] updateProxy Used to set the world-matrix and sizes.
* @param[in] elapsedSeconds Time elapsed time since the last frame (in seconds)
+ * @return Whether we should keep rendering.
*/
- virtual void Update(Dali::UpdateProxy& updateProxy, float elapsedSeconds);
+ virtual bool Update(Dali::UpdateProxy& updateProxy, float elapsedSeconds);
private:
Dali::Vector<uint32_t> mActorIdContainer; ///< Container of Actor IDs.