Make new CameraActor creation API for 3D apps
[platform/core/uifw/dali-core.git] / dali / public-api / actors / camera-actor.cpp
index 01fc8e2..10593d7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 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.
@@ -37,6 +37,13 @@ CameraActor CameraActor::New(const Size& size)
   return CameraActor(internal.Get());
 }
 
+CameraActor CameraActor::New3DCamera()
+{
+  Internal::CameraActorPtr internal = Internal::CameraActor::New(Size::ZERO, true);
+
+  return CameraActor(internal.Get());
+}
+
 CameraActor::CameraActor(Internal::CameraActor* internal)
 : Actor(internal)
 {